Is there an existing issue for this?
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Description
The azurerm_storage_account resource requires a globally unique name (global across Azure's storage account platform).
Currently, there is no validation taking place during the plan phase to check if the proposed name is, in fact, globally unique.
I would think that this should be easy enough to test for during the plan phase of a deployment, assuming the name is not "known after apply." I assume that validation could be skipped in instances where the name can't be known prior to the apply phase.
Having the plan succeed only to have the apply fail can be quite time consuming so having more checks done prior to the apply would be very helpful.
Thanks!
New or Affected Resource(s)/Data Source(s)
azurerm_storage_account
Potential Terraform Configuration
References
No response
Is there an existing issue for this?
Community Note
Description
The
azurerm_storage_accountresource requires a globally unique name (global across Azure's storage account platform).Currently, there is no validation taking place during the plan phase to check if the proposed name is, in fact, globally unique.
I would think that this should be easy enough to test for during the plan phase of a deployment, assuming the name is not "known after apply." I assume that validation could be skipped in instances where the name can't be known prior to the apply phase.
Having the plan succeed only to have the apply fail can be quite time consuming so having more checks done prior to the apply would be very helpful.
Thanks!
New or Affected Resource(s)/Data Source(s)
azurerm_storage_account
Potential Terraform Configuration
N/AReferences
No response