0
0
Azurecloud~10 mins

Azure PowerShell module basics - Interactive Code Practice

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

Complete the code to install the Azure PowerShell module.

Azure
Install-Module -Name [1]
Drag options to blanks, or click blank then click option'
AAzureRM
BAz
CAzureCLI
DAzureSDK
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AzureRM' which is deprecated.
Confusing Azure PowerShell with Azure CLI modules.
2fill in blank
medium

Complete the code to connect to your Azure account using PowerShell.

Azure
Connect-AzAccount -[1]
Drag options to blanks, or click blank then click option'
ATenantId
BSubscriptionId
CCredential
DEnvironment
Attempts:
3 left
💡 Hint
Common Mistakes
Using SubscriptionId which is not a parameter for Connect-AzAccount.
Confusing TenantId with credentials.
3fill in blank
hard

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

Azure
Get-AzResourceGroup | Where-Object [1] {$_.Location -eq 'eastus'}
Drag options to blanks, or click blank then click option'
A-FilterScript
B-filter
C-Property
Dfilter
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-filter' which is not a valid parameter for Where-Object.
Using 'filter' without a dash which causes syntax error.
4fill in blank
hard

Fill both blanks to create a new Azure resource group in PowerShell.

Azure
New-AzResourceGroup -Name [1] -Location [2]
Drag options to blanks, or click blank then click option'
AMyResourceGroup
Beastus
Cwestus
DResourceGroup1
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid region names.
Confusing resource group name with location.
5fill in blank
hard

Fill all three blanks to update the Azure PowerShell module and then import it.

Azure
Update-Module -Name [1]
Import-Module [2] -[3]
Drag options to blanks, or click blank then click option'
AAz
BForce
CAz.Accounts
DRecurse
Attempts:
3 left
💡 Hint
Common Mistakes
Using different module names for update and import.
Omitting the -Force parameter causing old version to stay loaded.