Replace az deployment group create
with az deployment group what-if
- doing this will do a mock/test deploy and will output deployment success or error message.
I got this error:
PreflightValidationCheckFailed - Preflight validation failed. Please refer to the details for the specific errors.
StorageAccountAlreadyTaken - The storage account named <storage_account_name> is already taken.
Likewise, I changed name and displayName for storage account resource and ran deploy with what-if
until I got a success message.
In my case, when following ARM template sandbox tutorial my name and displayName wasn't unique enough.