Azure-docs: Deploy template with parameter file via portal

Created on 27 Aug 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

Thank you for the examples of parameters, parameters files, and template deployment.

The section "Deploy template with parameter file" includes two subsections:

Deploy resources with ARM templates and Azure CLI
Deploy resources with ARM templates and Azure PowerShell

I'm trying to figure out how to use a parameter file in conjunction with template deployment via the Azure portal. I see the CLI accepts a local parameter file and the PowerShell accepts both local and external parameter files, how do I do something similar with the portal?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 awaiting-product-team-response azure-resource-managesvc cxp product-question templatesubsvc triaged

All 5 comments

@HughDevlin Thank you for your query. If you looking to deploy a custom deployment and have parameter file along with the deployment via Azure portal , you can follow through below steps

  1. Look for "Deploy a custom template"

customtemplate-1

  1. Click on "Build you own template in the editor"

customtemplate-2

  1. Copy the parameter file content you have into the parameters json file.

customtemplate-3

Please find the documentation reference on the same here.

However If above doesn't fit your scenario, can you please provide some additional information on your scenario so that we can assist you accordingly. Thank you

Thank you for your reply.

I understand every template includes an inline parameters section, and that we may edit this section via the portal.

Can we deploy a custom template, via the portal, with parameters from a separate, external parameter file? Say for example if we had multiple, modular custom templates with a common set of parameters. For example can I have a template myvm1.json and myvm2.json and deploy them with a common parameters file myvm.parameters.json?

@HughDevlin Thank you for additional information , to my understanding there isn't a possibility to refer to a single custom parameters json file for multiple ARM templates via Azure portal. However I am reviewing this with our internal team to confirm the same or there is any other possible scenario in the portal to achieve this. Will keep you updated as I hear more information. Thank you

Thank you for your efforts.

To clarify, the question is how to accomplish with the portal:

  1. what --parameters does in Azure CLI deployment

See

Deploy resources with ARM templates and Azure CLI

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-cli#parameters

  1. what -TemplateParameterFile does in Azure Powershell deployment

See

Deploy resources with ARM templates and Azure PowerShell

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-powershell#pass-parameter-values

Here is another doc page that one might think might address this question but does not:

Quickstart: Create and deploy ARM templates by using the Azure portal

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/quickstart-create-templates-use-the-portal#edit-and-deploy-the-template

@HughDevlin - thanks for this feedback. It's not possible to use a parameter file with the portal blade. I am adding that info to the article, which should be updated today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments