You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i use the name tier3 as my workload name, the script errs out with (I do not have a tier3 in my subscription):
{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'tier3' is not valid according to the validation procedure. The tracking id is 'bf1a2831-9730-4642-a2b9-4c63159e64e4'. See inner errors for details.","details":[{"code":"PreflightValidationCheckFailed","message":"Preflight validation failed. Please refer to the details for the specific errors.","details":[{"code":"StorageAccountAlreadyTaken","target":"logsyhdfpdatgh7j2","message":"The storage account named logsyhdfpdatgh7j2 is already taken."}]}]}}
i ran it 4 different times and got the exact same error each time : "StorageAccountAlreadyTaken","target":"logsyhdfpdatgh7j2"
It seems that, forwheter reason, the uniqueString(parameters('workloadName')) code in bicep isn't using anything other than the name to seed the UniqueString operation.
I assume it's also because someone else has used the script to create a tier3 and not deleted their test environment,
Hi @agoodmiller thank you for submitting a bug with helpful context and reproduction steps.
There has, very recently, been updates to the New Workload example to reduce the likelihood of a naming collision for storage accounts: #572
We have a discussion thread about this if you're interested in participating: #575
In any event, the latest version of the New Workload template should prevent this from occurring. If you still encounter this error with these latest steps, let us know:
Description
If i use the name tier3 as my workload name, the script errs out with (I do not have a tier3 in my subscription):
{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'tier3' is not valid according to the validation procedure. The tracking id is 'bf1a2831-9730-4642-a2b9-4c63159e64e4'. See inner errors for details.","details":[{"code":"PreflightValidationCheckFailed","message":"Preflight validation failed. Please refer to the details for the specific errors.","details":[{"code":"StorageAccountAlreadyTaken","target":"logsyhdfpdatgh7j2","message":"The storage account named logsyhdfpdatgh7j2 is already taken."}]}]}}
i ran it 4 different times and got the exact same error each time : "StorageAccountAlreadyTaken","target":"logsyhdfpdatgh7j2"
It seems that, forwheter reason, the uniqueString(parameters('workloadName')) code in bicep isn't using anything other than the name to seed the UniqueString operation.
I assume it's also because someone else has used the script to create a tier3 and not deleted their test environment,
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
it creates the new workload tier.
Actual behavior
It errs out before even running
Screenshots
Additional context
Operating System:windows 11
Terraform Version: N/A
Cloud (public, Azure Government, etc.): Public
The text was updated successfully, but these errors were encountered: