Challenge - 5 Problems
Azure CLI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:00remaining
What is the primary purpose of the Azure CLI?
Choose the best description of what the Azure CLI is used for.
Attempts:
2 left
💡 Hint
Think about how you interact with Azure using commands.
✗ Incorrect
The Azure CLI is a command-line tool that lets you create, manage, and monitor Azure resources using commands typed in a terminal.
❓ Configuration
intermediate1:00remaining
Which command logs you into Azure using the CLI?
Select the exact Azure CLI command that initiates the login process.
Attempts:
2 left
💡 Hint
The command starts with 'az' and is followed by a simple word meaning 'enter'.
✗ Incorrect
The command 'az login' opens a browser window or prompts for credentials to authenticate your Azure CLI session.
❓ service_behavior
advanced1:30remaining
What happens if you run 'az login' without a browser available?
Choose the correct behavior of the Azure CLI when logging in on a machine without a browser.
Attempts:
2 left
💡 Hint
Think about how you can log in on a server without a graphical interface.
✗ Incorrect
When no browser is available, 'az login' provides a code and URL for device login, allowing authentication from another device.
❓ security
advanced1:30remaining
Which Azure CLI command logs you in using a service principal securely?
Select the correct command to log in with a service principal using Azure CLI.
Attempts:
2 left
💡 Hint
Look for the option that uses --service-principal and tenant info.
✗ Incorrect
The correct command uses --service-principal with app ID, password, and tenant ID to authenticate securely.
✅ Best Practice
expert1:00remaining
After installing Azure CLI, which command verifies the installed version?
Choose the exact Azure CLI command that shows the installed version number.
Attempts:
2 left
💡 Hint
The command uses two dashes before 'version'.
✗ Incorrect
The command 'az --version' displays the Azure CLI version and installed extensions.