automate Azure tasks using scripts Flashcards
1
Q
What adminatrive tool is this?
- az vm create \
A
Azure CLI
2
Q
What Adminastrive tool is this?
- New-azVm `
A
Azure PowerShell
3
Q
Whare can you use Azure CLI and Azure PowerShell
A
Azure Cloud Shell, or with a local install
4
Q
What does this command do?
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery
A
Install Azure module for the current user
5
Q
What does this command do?
Update-Module -Name Az
A
Updated the Azure module
6
Q
What Azure PowerShell command can you use to retrieve all resource groups within a subscription?
A
Get-AzResourceGroup
Get-AzResourceGroup | Format-Table
7
Q
Command to setup a resourcegroup in north europe
A
New-AzResourceGroup -Name test -Location North Europe