Rapid-fire: monitoring and governance commands.
IntermediateConceptPolicy, Cost, AWS Mapping and Rapid-fire
Answer
az monitor metrics list --resource <aksId> --metric node_cpu_usage_percentage --interval PT5M -o table
az monitor log-analytics query -w <workspaceCustomerId> --analytics-query "KubeEvents | where Reason == 'BackOff' | take 20" -o table
az monitor action-group create -g rg -n ag-oncall --short-name oncall --action email ops [email protected]
az monitor metrics alert create -g rg -n aks-cpu --scopes <aksId> \
--condition "avg node_cpu_usage_percentage > 80" --window-size 5m --action ag-oncall
az policy state summarize --subscription <subId>
az policy assignment list --disable-scope-strict-match -o table
az lock list -o table
az resource list --tag env=dev --query "[].{name:name, type:type}" -o table
More on Policy, Cost, AWS Mapping and Rapid-fire
What is Azure Policy and what effects can a policy have?BeginnerAzure Policy vs RBAC: what is the difference?BeginnerShow an Azure Policy definition that denies public IPs on NICs.AdvancedHow do remediation tasks and policy exemptions work?AdvancedWhat is Microsoft Defender for Cloud?IntermediateWhat tools does Azure offer for cost management?Beginner