0
0
Azurecloud~5 mins

Azure PowerShell module basics - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the Azure PowerShell module used for?
It is used to manage Azure resources and services from the command line using PowerShell commands.
Click to reveal answer
beginner
How do you install the Azure PowerShell module?
Run the command Install-Module -Name Az -AllowClobber -Scope CurrentUser in PowerShell.
Click to reveal answer
beginner
What command do you use to sign in to your Azure account using PowerShell?
Use Connect-AzAccount to log in interactively to your Azure account.
Click to reveal answer
beginner
How can you list all Azure subscriptions available to your account in PowerShell?
Use the command Get-AzSubscription to see all subscriptions.
Click to reveal answer
intermediate
What is the purpose of the Set-AzContext command?
It sets the active subscription and context for your Azure PowerShell session.
Click to reveal answer
Which command installs the Azure PowerShell module for the current user?
ANew-Module -Name Azure
BInstall-Azure -User
CInstall-Module -Name Az -Scope CurrentUser
DAdd-AzModule -UserScope
What command do you use to log in to Azure in PowerShell?
ALogin-Azure
BConnect-AzAccount
CStart-AzSession
DEnter-Azure
How do you check which Azure subscriptions you have access to?
AGet-AzSubscription
BShow-AzAccounts
CList-AzureSubs
DGet-AzureAccounts
Which command changes the active subscription context in Azure PowerShell?
ASelect-AzAccount
BSwitch-AzSubscription
CChange-AzSubscription
DSet-AzContext
What is the first step after installing the Azure PowerShell module to start managing Azure?
AConnect-AzAccount
BSet-AzContext
CRun Get-AzResource
DInstall-AzModule
Explain the process to install and start using the Azure PowerShell module for managing Azure resources.
Think about the steps from installation to setting the active subscription.
You got /4 concepts.
    Describe how you would switch between different Azure subscriptions in PowerShell.
    Focus on commands that help you view and select subscriptions.
    You got /2 concepts.