Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a free Azure account with initial credits.
Azure
az account create --offer-type [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using PayAsYouGo instead of FreeTrial
Confusing EnterpriseAgreement with free account
Using VisualStudio offer which is not free trial
✗ Incorrect
The FreeTrial offer type is used to create a free Azure account with initial credits.
2fill in blank
mediumComplete the command to check your remaining Azure free credits.
Azure
az consumption budget show --name [1] --resource-group MyResourceGroup Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect budget names like FreeCredits
Assuming budget names are case insensitive
Not specifying the correct resource group
✗ Incorrect
The budget named TrialBudget is commonly used to track free trial credits.
3fill in blank
hardFix the error in the command to activate Azure free credits.
Azure
az account [1] --offer-type FreeTrial Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'activate' instead of 'create'
Using 'enable' which is invalid here
Trying 'start' which is not a valid command
✗ Incorrect
The correct command to create a free trial account is az account create.
4fill in blank
hardFill both blanks to set a spending limit and check remaining credits.
Azure
az consumption budget create --amount [1] --name [2] --resource-group MyResourceGroup
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Setting amount to 100 instead of 200
Using incorrect budget names
Omitting resource group parameter
✗ Incorrect
Set the budget amount to 200 dollars and name it TrialBudget to track free credits.
5fill in blank
hardFill all three blanks to list all subscriptions and filter the free trial one.
Azure
az account list --query "[?[1]=='[2]'].[3]"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Filtering by wrong property like 'state'
Using incorrect offer type string
Returning wrong field like 'state' instead of 'name'
✗ Incorrect
This command filters subscriptions where offerType equals FreeTrial and returns their name.