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
Unable to create a nested folder structure more than 2 levels deep #5398
Comments
This regex mentioned above, also will cause anything with nested folders and a hyphen in the name to fail with the same error as mentioned above. Example: |
I added a PR #7382 to fix the hyphen bug in the comment from @JeremiahInMN I adjusted the regex to allow this provider to accept multiple levels of nested directories, but the Azure API rejected it. This provider would have to implement some looping to get it to work -- not just a regex fix.
|
Fixed via #7382 |
This has been released in version 2.16.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.16.0"
}
# ... other configuration ... |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.19
+ provider.AzureRM v1.40.0
Affected Resource(s)
azurerm_storage_share_directory
Terraform Configuration Files
Panic Output
Expected Behavior
It should have created a directory structure starting with
Folder1
, then a sub folderFolder2
and finallyFolder3
underneath that.I would have also expected the following plan.
Actual Behavior
It says the directory name has failed validation. However, I believe this is actually caused by this regex not being able to handle a 3 level nested folder structure.
Storage.go Line 15
Steps to Reproduce
terraform init
terraform apply
Important Factoids
I tested this with a 2 level nested structure and Terraform was able to deploy it.
References
The text was updated successfully, but these errors were encountered: