PrepAway - Latest Free Exam Questions & Answers

Which template element should you modify?

You are an administrator of the Azure subscription for your company.
You are updating an Azure Resource Manager (ARM) template.
You need to ensure that the JSON file uses the latest version available.
Which template element should you modify?

PrepAway - Latest Free Exam Questions & Answers

A.
parameters

B.
resources

C.
$schema

D.
variables

Explanation:
This example shows a typical resource section of a template for creating a specified number of VMs:
“resources”: [
{
“apiVersion”:”2016-04-30-preview”,
“type”: “Microsoft.Compute/virtualMachines”,
“name”: “[concat(‘myVM’, copyindex())]”,
Etc.
When you deploy resources using a template, you have to specify a version of the API to use. The example
shows the virtual machine resource using this apiVersion element:
“apiVersion”: “2016-04-30-preview”,
The version of the API you specify in your template affects which properties you can define in the template. In
general, you should select the most recent API version when creating templates. For existing templates, you
can decide whether you want to continue using an earlier API version, or update your template for the latest
version to take advantage of new features.
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/template-description

16 Comments on “Which template element should you modify?

    1. Mo says:

      agreed..

      $schema = Location of the JSON schema file that describes the version of the template language. Use the URL shown in the preceding example

      parameters = Values that are provided when deployment is executed to customize resource deployment




      1



      0
  1. johannesburg says:

    parameters > Values that are provided when deployment is executed to customize resource deployment.
    resources > Types of services that are deployed or updated in a resource group.
    $schema > Location of the JSON schema file that describes the version of the template language.
    variables > Values that are used as JSON fragments in the template to simplify template language expressions.

    Answer is $schema




    2



    0
  2. jagudero says:

    Option is B

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/template-description#api-version

    When you deploy resources using a template, you have to specify a version of the API to use. The example shows the virtual machine resource using this apiVersion element:

    “apiVersion”: “2016-04-30-preview”,
    The version of the API you specify in your template affects which properties you can define in the template. In general, you should select the most recent API version when creating templates. For existing templates, you can decide whether you want to continue using an earlier API version, or update your template for the latest version to take advantage of new features.




    2



    0

Leave a Reply