Skip to content

Support during plan phase for azurerm_storage_account to validate for name uniqueness. #23791

@bgmonroe

Description

@bgmonroe

Is there an existing issue for this?

  • I have searched the existing issues

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

N/A

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementservice/storageupstream/terraformThis issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions