Interview Prep/Azure/Policy, Cost, AWS Mapping and Rapid-fire

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
Azure All Azure questions

More on Policy, Cost, AWS Mapping and Rapid-fire