AzureRM Deployment Fails: See inner errors for details

Running an Azure RM Template and it errors with:

Error: Code=InvalidTemplateDeployment; Message=The template deployment 'test_analytics' is not valid according to the validation procedure. The tracking id is 'XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX'. See inner 
errors for details. Please see https://aka.ms/arm-deploy for usage details.

A simple PowerShell command will get you the verbose error log, to assist you with troubleshooting your Azure RM Template, -CorrelationId will be the tracking id mentioned above:

Get-AzureRmLog -CorrelationId XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX

With this I was able to find the test storage account name I was attempting to use was already taken, snippet from the verbose output:

[{"code":"StorageAccountAlreadyTaken","target":"thomastestsa","message":"The storage account named thomastestsa is already taken."}]}]}}

A quick blog to hopefully assist you once you receive this error 🙂

1 comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s