0
0
PowerShellscripting~10 mins

Azure PowerShell module - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import the Azure PowerShell module.

PowerShell
Import-Module [1]
Drag options to blanks, or click blank then click option'
AAzureRM
BAzure
CAz
DAzureAD
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AzureRM' which is the older module.
Using 'AzureAD' which is for Azure Active Directory only.
2fill in blank
medium

Complete the code to connect to your Azure account.

PowerShell
Connect-[1]
Drag options to blanks, or click blank then click option'
AAz
BAzAccount
CAzureAccount
DAzureRmAccount
Attempts:
3 left
💡 Hint
Common Mistakes
Using Connect-AzureRmAccount which is deprecated.
Using Connect-AzureAccount which is not a valid command.
3fill in blank
hard

Fix the error in the command to list all Azure resource groups.

PowerShell
Get-[1]ResourceGroup
Drag options to blanks, or click blank then click option'
AAzure
BAz
CAzureRm
DAzureAD
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Get-AzureRmResourceGroup' which is deprecated.
Using 'Get-AzureResourceGroup' which is invalid.
4fill in blank
hard

Fill both blanks to create a new Azure resource group in the EastUS location.

PowerShell
New-[1]ResourceGroup -Name "MyResourceGroup" -Location [2]
Drag options to blanks, or click blank then click option'
AAz
BAzureRm
CEastUS
DWestUS
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AzureRm' prefix which is deprecated.
Using 'WestUS' instead of 'EastUS' when the instruction says EastUS.
5fill in blank
hard

Fill all three blanks to update the tags of an existing resource group.

PowerShell
Update-[1]ResourceGroup -Name "MyResourceGroup" -Tag @{ [2] = '[3]' }
Drag options to blanks, or click blank then click option'
AAz
BEnvironment
CProduction
DAzureRm
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AzureRm' prefix which is deprecated.
Using incorrect tag keys or values.