Azure Resource Manager Flashcards

1
Q

ARM Templates: $schema element

A

Required!

Location of the JSON schema file that describes the version of the template language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ARM Templates: contentVersion element

A

Required.

Version of the template (e.g., 1.0.0.0),

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ARM Templates: parameters element

A

Not required

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

"parameters": {
    "" : {
        "type" : "",
        "defaultValue": "",
        "allowedValues": [ "" ],
        "minValue": ,
        "maxValue": ,
        "minLength": ,
        "maxLength": ,
        "metadata": {
        "description": ""
        }
    }
}
e.g. (parameters for a VMS password and username)
"parameters": {
  "adminUsername": {
    "type": "string",
    "metadata": {
      "description": "Username for the Virtual Machine."
    }
  },
  "adminPassword": {
    "type": "securestring",
    "metadata": {
      "description": "Password for the Virtual Machine."
    }
  }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ARM Templates: variables (element)

A

Not Required.

Values that are used as JSON fragments in the template to simplify template language expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ARM Templates: functions (element)

A

Not required.

User-defined functions that are available within the template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ARM Templates: resources (element)

A

Required

Resource types that are deployed or updated in a resource group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ARM Templates: outputs (element)

A

Not Required,

Values that are returned after deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using parameters (defined in the parameters element) in the resources element

A

parameters(‘param_name’)

"resources": [
     {
       ...
       "sku": {
         "name": "[parameters('storageAccountType')]"
       },
       ...
     }
   ]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Outputs element example.

A
"outputs": {
   "": {
       "condition": "",
       "type": "",
       "value": "",
       "copy": {
           "count": ,
           "input": 
       }
   }
}
"outputs": {
       "storageEndpoint": {
           "type": "object",
           "value": "[reference('learntemplatestorage123').primaryEndpoints]"
       }
   }
How well did you know this?
1
Not at all
2
3
4
5
Perfectly