Ch. 3 Deploy and manage Azure Compute Resources Flashcards
VM Scale Sets (VMSS)
VM scale sets provide the unique ability to scale out certain types of workloads to handle large processing problems, and they optimize cost by only running instances when needed.
Azure Resource Manager templates (ARM)
authored using JavaScript Object Notation (JSON)
provide the ability to define the configuration of resources, such as virtual machines, storage accounts, and so on in a declarative manner.
The basic structure of a resource manager template has most of the following elements:
{ “$schema”: “https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#”, “contentVersion”: “1.0.0.0”, “parameters”: { }, “variables”: { }, “functions”: [ ], “resources”: [ ], “outputs”: { } }
$schema The JSON schema file
the reference to the standard structure defined for an ARM template
contentVersion
source control to track the changes made in your template.
You can provide any value for this element
When deploying resources using the template, this value can be used to make sure that the right template is being used.
parameters
define the various values that are passed at runtime without changing the exact template file
The parameters can be changed by the azuredeploy.parameters.json file or in the PowerShell script that is used to deploy your template
The parameters are key elements when dealing with nested templates to pass the values from parent template to the child templates
variables
Defines values which are used in your template to simplify template language
hard-coded values, but they also can be created dynamically using parameters or standard template functions.
functions
The complex expressions that are being used multiple times in the template can be defined as a function once.
You need to create your own namespace and create member functions as needed.
You cannot access variables or any other user-defined functions within your function.
resources
contains resources that are deployed or updated in a resource group
You can define the condition to control the provisioning of each resource.
the dependsOn determines which resources must be deployed