0
0
Azurecloud~10 mins

Cost management and budgets in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a budget with a specified amount in Azure.

Azure
az consumption budget create --amount [1] --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup
Drag options to blanks, or click blank then click option'
A1000
B5000
Cabc
D-100
Attempts:
3 left
💡 Hint
Common Mistakes
Using a negative number for the budget amount.
Entering non-numeric characters in the amount.
2fill in blank
medium

Complete the code to list all budgets in a subscription.

Azure
az consumption budget list --scope /subscriptions/[1]
Drag options to blanks, or click blank then click option'
AMyBudget
BMyResourceGroup
C12345678-1234-1234-1234-123456789abc
Deastus
Attempts:
3 left
💡 Hint
Common Mistakes
Using a resource group name instead of a subscription ID.
Using a budget name instead of a subscription ID.
3fill in blank
hard

Fix the error in the command to create a budget with a time period.

Azure
az consumption budget create --amount 2000 --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc --time-grain [1]
Drag options to blanks, or click blank then click option'
Adaily
Bweek
Cyearly
Dmonthly
Attempts:
3 left
💡 Hint
Common Mistakes
Using unsupported time grains like 'week' or 'daily'.
Using 'yearly' instead of 'annually'.
4fill in blank
hard

Fill both blanks to set an alert condition for a budget threshold and notification contact.

Azure
az consumption budget update --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup --thresholds [1] --contact-emails [2]
Drag options to blanks, or click blank then click option'
A80
B90
Cuser@example.com
Dadmin@domain.com
Attempts:
3 left
💡 Hint
Common Mistakes
Using threshold as a decimal or with a % sign.
Entering invalid email formats.
5fill in blank
hard

Fill all three blanks to create a budget with amount, time grain, and category.

Azure
az consumption budget create --amount [1] --scope /subscriptions/12345678-1234-1234-1234-123456789abc --time-grain [2] --category [3] --name MyBudget
Drag options to blanks, or click blank then click option'
A5000
Bmonthly
Ccost
Ddaily
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid time grains like 'daily'.
Using incorrect category names.