Challenge - 5 Problems
Azure PowerShell Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ service_behavior
intermediate2: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?
Attempts:
2 left
💡 Hint
Think about the correct cmdlet to install modules and the correct module name for Azure PowerShell.
✗ Incorrect
The correct cmdlet to install PowerShell modules is Install-Module. The Azure PowerShell module is named 'Az'. The option -AllowClobber helps avoid conflicts, and -Scope CurrentUser installs it for the current user without needing admin rights.
🧠 Conceptual
intermediate2: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?
Attempts:
2 left
💡 Hint
Think about cmdlets specific to the Az module.
✗ Incorrect
Get-AzVersion is not a valid cmdlet. To check the installed version of the Az module, use 'Get-Module -Name Az -ListAvailable | Select-Object -Property Version'. Get-InstalledModule -Name Azure uses the wrong module name, and Show-ModuleVersion does not exist.
❓ Configuration
advanced2: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?
Attempts:
2 left
💡 Hint
The command should start with 'Connect' and use the current module name.
✗ Incorrect
Connect-AzAccount is the correct command to log in interactively to Azure using the Az module. Login-AzureRmAccount is from the older AzureRM module and deprecated.
❓ security
advanced2: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?
Attempts:
2 left
💡 Hint
Think about user scopes and permissions when installing modules.
✗ Incorrect
Without admin rights, you cannot update modules installed for all users. Installing the module again with '-Scope CurrentUser' installs or updates it just for your user account.
❓ Architecture
expert3: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?
Attempts:
2 left
💡 Hint
Think about non-interactive, secure authentication methods for automation.
✗ Incorrect
Using a service principal with a certificate or secret allows scripts to authenticate securely without user interaction. Storing passwords in plain text or requiring interactive login is insecure or impossible in automation.