-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
Description
Terraform CLI and Provider Versions
terraform 1.9.4
random: 3.6.3
Use Cases or Problem Statement
We rely upon random_string to generate resource identifiers for Azure resources.
Today, in a particular case, it generated xbox7zw6jugefzbnlvi8dl1z.
This lead to the following error:
unexpected status 400 (400 Bad Request) with error: ReservedResourceName: The resource name 'xbox7zw6jugefzbnlvi8dl1z' or a part of the name is a trademarked or reserved word
So the generated string ran afoul of https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-reserved-resource-name and caused the Terraform apply to error out.
Proposal
Some way of configuring the random_string provider with the Azure-provided list of reserved/trademarked strings in order to guarantee that the random provider doesn't provide random strings that violate this limitation.
How much impact is this issue causing?
Medium
Additional Information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct