0
0
Azurecloud~20 mins

Azure PowerShell module basics - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure PowerShell Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Azure PowerShell Module Installation
You want to install the Azure PowerShell module on your machine to manage Azure resources. Which command will successfully install the latest Azure PowerShell module from the PowerShell Gallery?
AInstall-AzModule -Name Az -AllowClobber
BInstall-AzureRm -Name Az -Scope CurrentUser
CInstall-Module -Name Azure -Scope AllUsers
DInstall-Module -Name Az -AllowClobber -Scope CurrentUser
Attempts:
2 left
💡 Hint
Think about the correct cmdlet to install modules and the correct module name for Azure PowerShell.
🧠 Conceptual
intermediate
2:00remaining
Azure PowerShell Module Version Checking
After installing the Azure PowerShell module, you want to check which version is installed. Which command will correctly display the installed version of the Az module?
AShow-ModuleVersion -Name Az
BGet-AzVersion
CGet-Module -Name Az -ListAvailable | Select-Object -Property Version
DGet-InstalledModule -Name Azure
Attempts:
2 left
💡 Hint
Think about cmdlets specific to the Az module.
Configuration
advanced
2:00remaining
Connecting to Azure Account Using PowerShell
You want to connect to your Azure account using Azure PowerShell to manage resources. Which command will prompt you to log in interactively and establish the connection?
AConnect-AzAccount
BStart-AzSession
CLogin-AzureRmAccount
DNew-AzConnection
Attempts:
2 left
💡 Hint
The command should start with 'Connect' and use the current module name.
security
advanced
2:00remaining
Managing Azure PowerShell Module Permissions
You installed the Azure PowerShell module for all users on a shared machine but want to update it without admin rights. Which approach will allow you to update the module without administrator privileges?
ARun 'Update-Module -Name Az' as a normal user to update the shared module
BInstall the module again using '-Scope CurrentUser' to update it for your user only
CUse 'Set-ModulePermission -Name Az -User CurrentUser -AllowUpdate'
DModify the module files directly in the Program Files folder
Attempts:
2 left
💡 Hint
Think about user scopes and permissions when installing modules.
Architecture
expert
3:00remaining
Automating Azure Resource Management with PowerShell Scripts
You want to automate the deployment of Azure resources using PowerShell scripts that run in a CI/CD pipeline. Which practice ensures your scripts can authenticate securely without interactive login?
AUse a service principal with a certificate or secret and authenticate using Connect-AzAccount with service principal parameters
BStore your Azure username and password in plain text in the script and use Connect-AzAccount
CRun Connect-AzAccount interactively during the pipeline execution
DUse the Azure portal to manually deploy resources instead of scripts
Attempts:
2 left
💡 Hint
Think about non-interactive, secure authentication methods for automation.