-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since: v3.96: azurerm_storage_share_file - status 400 received with no body #25353
Comments
Additional info, I tested with v3.95 and TF 1.6.x and with TF 1.7.x and both works fine. |
@JasBonker Thanks for reporting this bug. I suspected a possible issue with handling backslash-delimited paths in the name, but in testing I was unable to reproduce this. Would you be able to provide a debug log (i.e. by setting the |
@JasBonker would you be able to upgrade to |
Hi @tombuildsstuff and @manicminer, |
Thanks for the additional info @JasBonker! I've identified some bugs in path handling, along with some gaps in our test coverage that allowed this to slip by unnoticed. I've opened tombuildsstuff/giovanni#113 to address these bugs, and #25404 for the test coverage. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
v1.7.5
AzureRM Provider Version
v3.96.0
Affected Resource(s)/Data Source(s)
azurerm_storage_share_file
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Ideally:
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Or otherwise:
│ Error: A resource with the ID "https://xxxxxxxxxxxx.file.core.windows.net/xxxxxxxxxxxx/data\\xxxxxxxxxxxx\\xxxxxxxxxxxx\\install\\resources/xxxxxxxxxxxx.xml" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_storage_share_file" for more information.
│
│ with azurerm_storage_share_file.xxxxxxxxxxxx,
│ on main.tf line 131, in resource "azurerm_storage_share_file" "xxxxxxxxxxxx":
│ 131: resource "azurerm_storage_share_file" "xxxxxxxxxxxx" {
Actual Behaviour
│ Error: checking for existing File "xxxxxxxxxxxx.xml" (Directory Path "data\xxxxxxxxxxxx\xxxxxxxxxxxx\install\resources" / Share Name "xxxxxxxxxxxx" / Account "Account "xxxxxxxxxxxx" (IsEdgeZone false / ZoneName "" / Subdomain Type "file" / DomainSuffix "core.windows.net")"): executing request: unexpected status 400 received with no body
│
│ with azurerm_storage_share_file.xxxxxxxxxxxx,
│ on main.tf line 131, in resource "azurerm_storage_share_file" "xxxxxxxxxxxx":
│ 131: resource "azurerm_storage_share_file" "xxxxxxxxxxxxv" {
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: