Azure – How to change Azure RM deployment name when deploying through Azure Portal link

azure

When deploying a template through Azure Portal, i.e. by following the link:

https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F{template name}%2Fazuredeploy.json

All deployments created this wah are named Microsoft.Template (and subsequent ones Microsoft.Template_1, Microsoft.Template_2, etc.) in the Deployments section of the portal:

Azure Portal deployments

Is it possible to customize the name (either by modifying the template, or provide a different name when deploying)?

Guessing, I tried adding name at the root level of the azuredeploy.json, but it gets refused with a wrong syntax message.

Best Answer

I do not think this is possible from the Portal. I tested modifying the URL in the portal, and also after validation.

If you modify the URL the portal redirects to the Marketplace.

https://portal.azure.com/#create/test/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fvm-disk-performance-meter%2Fazuredeploy.json

After the template was validated, I could modify the URL to https://portal.azure.com/#create/test and the deployment still gets created as Microsoft.Template

The Template itself also does not impact the deployment name. If you need to change the deployment name you may need to deploy from PowerShell or API