Complete the code to create a budget with a specified amount in Azure.
az consumption budget create --amount [1] --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup
The --amount parameter requires a positive number representing the budget amount. '1000' is a valid positive number.
Complete the code to list all budgets in a subscription.
az consumption budget list --scope /subscriptions/[1]The --scope parameter requires the subscription scope in the form '/subscriptions/{subscriptionId}', where the ID is a GUID like '12345678-1234-1234-1234-123456789abc'.
Fix the error in the command to create a budget with a time period.
az consumption budget create --amount 2000 --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc --time-grain [1]
The --time-grain parameter accepts 'monthly' or 'annually'. 'monthly' is the correct option here.
Fill both blanks to set an alert condition for a budget threshold and notification contact.
az consumption budget update --name MyBudget --scope /subscriptions/12345678-1234-1234-1234-123456789abc/resourceGroups/MyResourceGroup --thresholds [1] --contact-emails [2]
The --thresholds should be a number like 80 representing 80% of the budget. The --contact-emails should be a valid email address like 'user@example.com'.
Fill all three blanks to create a budget with amount, time grain, and category.
az consumption budget create --amount [1] --scope /subscriptions/12345678-1234-1234-1234-123456789abc --time-grain [2] --category [3] --name MyBudget
The --amount is a positive number like 5000. The --time-grain is 'monthly'. The --category is 'cost' to specify the budget type.