ARM Templates, BASH and Powershell Commands Flashcards

1
Q

What command do you use to connect to Azure via Powershell

A

Connect-AzAccount

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

What dose CLI stand for?

A

Command Line Interface

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

What dose Azure CLI achieve?

A

It’s a cross-platform command-line program to connect and execute administrative commands on Azure resources.

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

Create a resource group using CLI?

A

az group create –name StorageRG –location westus

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

Create a storage account using CLI?

A

az storage account create –name WLblobSA123 –reseource-group storageRG –ksu Standard_RAGRS –kind StorageV2

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

Command used to login to CLI?

A

az login

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

Create VM using CLI?

A

az VM create –resource-group WLRG –name WLVM1 –image UbuntuLTS

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

Azure CLI command group for the following:
Resource Groups
Key Vault
SQL Databases
Storage Accounts
Virtual Machines
Web Applications

A

az group
az keyvault
az sql server
az storage account
az vm
az webapp

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

What are the Azure CLI command groups?

A

Resource Groups
Key Vault
SQL Databases
Storage Accounts
Virtual Machines
Web Applications

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

In an ARM template what is the element $schema used for

A

This describes the version of the template language.

Example below
“$schema”: “https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#”,

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

In an ARM template what is the element contentVersion used for

A

This is the version of the template.

Example below
“contentVersion”: “1.0.0.0”,

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

In an ARM template what is the element resource used for

A

This is the main section where you define the resources that need to be deployed as part of the template.

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

In an ARM template what is the element parameters used for

A

These are values that can be provided to template that can be used to customize the deployment of the resources.

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

In an ARM template what is the element variables used for

A

These are values that can be reused in the template.

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

In an ARM template what is the element functions used for

A

These are user-defined functions that can be used in the template.

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

In an ARM template what is the element outputs used for

A

These are values that are returned after the deployments.

17
Q

What are the resources that can be deployed using ARM

A

Storage Accounts for VMs
Availability Sets for VMs
Virtual Networks for Load Balancers and VMs
Network Interfaces for VMs
Load Balancers
Virtual Machines

18
Q

What file type is used for ARM Teplates

A

JSON files

19
Q

What dose JSON stand for

A

JavaScript Object Notation

20
Q

How can you deploy ARM Teplates?

A

Either via the Azure Portal (Azure Resource Manager) or Azure CLI Bash

21
Q

How would you deploy ARM template via CLI

A

az deployment group create –resource-group <resourcegroupname> --template-file template.json</resourcegroupname>

22
Q

Where can you use Azure Powershell?

A

You can use Azure Powershell either on your local powershell client and login to Azure or you can use CloudShell via the Azure Portal

23
Q
A