“InvalidTemplateDeployment” error while deploying ARM Template
I was working on a PowerShell script today to deploy a service fabric cluster using ARM template and came across a weird error –
I went straight to the Activity Log for my Resource Group in which I was deploying the cluster to and looked for the last “Validate Deployment” operation which has failed.
Upon Expanding the Json, I verified the same error that I have received while executing my PowerShell script –
I clicked on the JSON tab and scrolled down till the “properties” field –
Looking at the status message, I figured out the storage account name I was passing in my template was invalid – either it had unsupported characters or it had more than 24 characters –
Fixing the storage account name an retrying the deployment worked for me!