Queries on Providing Azure app service details in the ARM template

sns 9,226 Reputation points

Suppose I want to create Azure app service and plan, then my question is why need to give these values in both places like in template file and also in parameters file. Please clarify, is it not enough to give in either of these places?

User's image

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,033 questions
{count} votes

Accepted answer
  1. VenkateshDodda-MSFT 19,061 Reputation points Microsoft Employee

    @sns Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    In the first image, you are passing the values of declared Parameters in deploy.json file using the parameters.deploy.json and these values will be taken into consideration while deploying/creating the infrastructure resources.

    If you are passing the Parameter values in the deploy.json using the default value that means that this value will take as parameter value if it is not provided during the deployment.

    You can refer to this documentation to know more information about Default values and its usage in ARM template.

    Feel free to reach back to me if you have any further questions on this.

0 additional answers

Sort by: Most helpful