While testing the deployment of an ARM template I received the following error message.
1 |
Test-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile $template -TemplateParameterFile $parms -Mode Incremental -Verbose <br>Code: InvalidTemplateDeployment Message : The template deployment 'f65837b7-e245-4dec-a04e-613aeb3c4f29' is not valid according to the validation procedure. The tracking id is '89c36edf-22ef-4b2e-b24b-9323521a28dd'. <br>See inner errors for details. Please see https://aka.ms/arm-deploy for usage details. <br>Details : {Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSResourceManagerError} |
If you said to yourself “That’s great, however, how do I find the inner errors for details?” You’re in luck, because I am going to tell you! First, save the deployment test to a variable like the following.
1 |
$test = Test-AzResourceGroupDeployment -ResourceGroupName $rg -TemplateFile $template -TemplateParameterFile $parms -Mode Incremental -Verbose |
If