0
0
Azurecloud~10 mins

Operational excellence pillar 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 an Azure Monitor alert rule for operational excellence.

Azure
az monitor metrics alert create --name 'HighCPUAlert' --resource-group 'MyResourceGroup' --scopes [1] --condition "avg Percentage CPU > 80" --description 'Alert when CPU usage is high'
Drag options to blanks, or click blank then click option'
AMyVM
B/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/MyVM
CMyResourceGroup
D/subscriptions/12345/resourceGroups/MyResourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using only the resource name instead of full resource ID
Using resource group name as scope
2fill in blank
medium

Complete the code to enable Azure Advisor recommendations for operational excellence.

Azure
az advisor configuration update --resource-group [1] --enable true
Drag options to blanks, or click blank then click option'
AMyResourceGroup
BMySubscription
CMyAdvisorConfig
DMyVM
Attempts:
3 left
💡 Hint
Common Mistakes
Using subscription name instead of resource group
Using VM name instead of resource group
3fill in blank
hard

Fix the error in the Azure CLI command to export operational logs to a storage account.

Azure
az monitor diagnostic-settings create --name 'OpLogs' --resource [1] --storage-account 'mystorageaccount' --logs '[{"category": "Administrative", "enabled": true}]'
Drag options to blanks, or click blank then click option'
AMyVM
BMyResourceGroup
Cmystorageaccount
D/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Compute/virtualMachines/MyVM
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group name instead of full resource ID
Using storage account name instead of resource ID
4fill in blank
hard

Fill both blanks to configure an Azure Policy assignment for operational excellence.

Azure
az policy assignment create --name 'EnforceTag' --policy [1] --scope [2]
Drag options to blanks, or click blank then click option'
A/subscriptions/12345/providers/Microsoft.Authorization/policyDefinitions/require-tag
B/subscriptions/12345/resourceGroups/MyResourceGroup
C/subscriptions/12345/resourceGroups/OtherGroup
D/subscriptions/12345
Attempts:
3 left
💡 Hint
Common Mistakes
Using policy name instead of full policy definition ID
Using subscription scope instead of resource group
5fill in blank
hard

Fill all three blanks to create an Azure Automation runbook for operational excellence.

Azure
az automation runbook create --resource-group [1] --automation-account-name [2] --name [3] --type PowerShell
Drag options to blanks, or click blank then click option'
AMyResourceGroup
BMyAutomationAccount
CCleanupRunbook
DMyVM
Attempts:
3 left
💡 Hint
Common Mistakes
Using VM name instead of resource group
Confusing automation account name with runbook name