HEALTH

Icon

Icon 1 6 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Queries the health status of an App Service, and returns 0 when it's not healthy, and 1 when it is.

Tasks:
  • Check for Resource Health Issues Affecting App Service `${APP_SERVICE_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check App Service `${APP_SERVICE_NAME}` Health Check Metrics In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check App Service `${APP_SERVICE_NAME}` Configuration Health In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Deployment Health of App Service `${APP_SERVICE_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Fetch App Service `${APP_SERVICE_NAME}` Activities In Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate App Service Health Score for `${APP_SERVICE_NAME}` in resource group `${AZ_RESOURCE_GROUP}`

Icon 1 4 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Runs diagnostic checks against an AKS cluster.

Tasks:
  • Check for Resource Health Issues Affecting AKS Cluster `AKS_CLUSTER` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Configuration Health of AKS Cluster `AKS_CLUSTER` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Network Configuration of AKS Cluster `AKS_CLUSTER` In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Activities for AKS Cluster `AKS_CLUSTER` In Resource Group `AZ_RESOURCE_GROUP`

Icon 1 4 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Generates a composite score about the health of an AKS cluster using the AZ CLI. Returns a 1 if all checks pass, 0 if they all fail, and value between 0 and 1 for partial success/fail. Checks the upstream service for reported errors. Looks for Critical or Error activities within a specified time period. Checks the overall configuration for provisioning failures.

Tasks:
  • Check for Resource Health Issues Affecting AKS Cluster `${AKS_CLUSTER}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Fetch Activities for AKS Cluster `${AKS_CLUSTER}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Configuration Health of AKS Cluster `${AKS_CLUSTER}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate AKS Cluster Health Score

Icon 1 12 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Triages an Azure Function App and its workloads, checking its status and logs and verifying key metrics.

Tasks:
  • Check for Resource Health Issues Affecting Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Function App `FUNCTION_APP_NAME` Health in Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Function App `FUNCTION_APP_NAME` Plan Utilization Metrics In Resource Group `AZ_RESOURCE_GROUP`
  • Check Individual Function Invocations Health for Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Get Function App `FUNCTION_APP_NAME` Logs In Resource Group `AZ_RESOURCE_GROUP`
  • Check Configuration Health of Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Deployment Health of Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Function App `FUNCTION_APP_NAME` Activities In Resource Group `AZ_RESOURCE_GROUP`
  • Check Logs for Errors in Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Azure Recommendations and Notifications for Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Recent Activities for Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Diagnostic Logs for Function App `FUNCTION_APP_NAME` In Resource Group `AZ_RESOURCE_GROUP`

Icon 1 6 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Queries the health status of an Function App, and returns 0 when it's not healthy, and 1 when it is.

Tasks:
  • Check for Resource Health Issues Affecting Function App `${FUNCTION_APP_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Function App `${FUNCTION_APP_NAME}` Health Check Metrics In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Function App `${FUNCTION_APP_NAME}` Configuration Health In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Deployment Health of Function App `${FUNCTION_APP_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Fetch Function App `${FUNCTION_APP_NAME}` Activities In Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate Function App Health Score for `${FUNCTION_APP_NAME}` in resource group `${AZ_RESOURCE_GROUP}`

Icon 1 10 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Runs diagnostic checks to check the health of APIM instances

Tasks:
  • Gather APIM Resource Information for APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check for Resource Health Issues Affecting APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Key Metrics for APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check Logs for Errors with APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check Activity Logs for APIM Management Operations `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check Application Insights Integration for APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check Key Vault Dependencies for APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Verify APIM Policy Configurations for `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Check APIM SSL Certificates for `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Inspect Dependencies and Related Resources for APIM `APIM_NAME` in Resource Group `AZ_RESOURCE_GROUP`

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Runs diagnostic checks to check the health of APIM instances

Tasks:
  • Check for Resource Health Issues Affecting APIM `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Fetch Key Metrics for APIM `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Logs for Errors with APIM `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Verify APIM Policy Configurations for `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Check APIM SSL Certificates for `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Inspect Dependencies and Related Resources for APIM `${APIM_NAME}` in Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate APIM Health Score

Icon 1 4 Troubleshooting Commands

Icon 2 Contributed by Nbarola

Icon 2 Codecollection: rw-cli-codecollection


Runs diagnostic checks against Azure VMs to monitor disk utilization, memory utilization, uptime, patch status and system health.

Tasks:
  • Check Disk Utilization for VMs in Resource Group `AZ_RESOURCE_GROUP`
  • Check Memory Utilization for VMs in Resource Group `AZ_RESOURCE_GROUP`
  • Check Uptime for VMs in Resource Group `AZ_RESOURCE_GROUP`
  • Check Last Patch Status for VMs in Resource Group `AZ_RESOURCE_GROUP`

Icon 1 5 Troubleshooting Commands

Icon 2 Contributed by Nbarola

Icon 2 Codecollection: rw-cli-codecollection


Calculates Azure VM health by checking disk, memory, uptime, and patch status.

Tasks:
  • Check Disk Utilization for VMs in Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Memory Utilization for VMs in Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Uptime for VMs in Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Last Patch Status for VMs in Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate Comprehensive VM Health Score

Icon 1 6 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: rw-cli-codecollection


Check Azure Key Vault health by checking availability metrics, configuration settings, expiring items (secrets/certificates/keys), log issues, and performance metrics

Tasks:
  • Check Key Vault Resource Health in resource group `AZURE_RESOURCE_GROUP`
  • Check Key Vault Availability in resource group `AZURE_RESOURCE_GROUP`
  • Check Key Vault Configuration in resource group `AZURE_RESOURCE_GROUP`
  • Check Expiring Key Vault Items in resource group `AZURE_RESOURCE_GROUP`
  • Check Key Vault Logs for Issues in resource group `AZURE_RESOURCE_GROUP`
  • Check Key Vault Performance Metrics in resource group `AZURE_RESOURCE_GROUP`

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: rw-cli-codecollection


Counts Azure Key Vault health by checking availability metrics, configuration settings, expiring items (secrets/certificates/keys), log issues, and performance metrics

Tasks:
  • Count Key Vault Resource Health in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Key Vault Availability in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Key Vault configuration in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Expiring Key Vault Items in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Key Vault Log Issues in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Key Vault Performance Metrics in resource group `${AZURE_RESOURCE_GROUP}`
  • Generate Comprehensive Key Vault Health Score

Icon 1 3 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-cli-codecollection


Runs diagnostic checks against virtual machine scaled sets and generates reports from key metrics.

Tasks:
  • Check Scale Set `VMSCALESET` Key Metrics In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch VM Scale Set `VMSCALESET` Config In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Activities for VM Scale Set `VMSCALESET` In Resource Group `AZ_RESOURCE_GROUP`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-cli-codecollection


Checks VM Scale Set key metrics and returns a 1 when healthy, or 0 when not healthy.

Tasks:
  • Check Scale Set `${VMSCALESET}` Key Metrics In Resource Group `${AZ_RESOURCE_GROUP}`

Icon 1 9 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


List databases that are publicly accessible, without replication, without high availability configuration, with high CPU usage, high memory usage, high cache miss rate, and low availability in Azure

Tasks:
  • List Database Availability in resource group `AZURE_RESOURCE_GROUP`
  • List Publicly Accessible Databases in resource group `AZURE_RESOURCE_GROUP`
  • List Databases Without Replication in resource group `AZURE_RESOURCE_GROUP`
  • List Databases Without High Availability in resource group `AZURE_RESOURCE_GROUP`
  • List Databases With High CPU Usage in resource group `AZURE_RESOURCE_GROUP`
  • List All Databases With High Memory Usage in resource group `AZURE_RESOURCE_GROUP`
  • List Redis Caches With High Cache Miss Rate in resource group `AZURE_RESOURCE_GROUP`
  • List Database Resource Health in resource group `AZURE_RESOURCE_GROUP`
  • List Database Changes in resource group `AZURE_RESOURCE_GROUP`

Icon 1 10 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


Count databases that are publicly accessible, without replication, without high availability configuration, with high CPU usage, high memory usage, high cache miss rate, low availability, and risky configuration changes in Azure

Tasks:
  • Score Database Availability in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Publicly Accessible Databases in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Databases Without Replication in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Databases Without High Availability in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Databases With High CPU Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Databases With High Memory Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Redis Caches With High Cache Miss Rate in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Databases With Health Issues in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Risky Database Configuration Changes in resource group `${AZURE_RESOURCE_GROUP}`
  • Generate Health Score

Icon 1 10 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


List Virtual machines that are publicly accessible, have high CPU usage, underutilized memory, stopped state, unused network interfaces, and unused public IPs in Azure

Tasks:
  • List VMs Health in resource group `AZURE_RESOURCE_GROUP`
  • List VMs With Public IP in resource group `AZURE_RESOURCE_GROUP`
  • List Stopped VMs in resource group `AZURE_RESOURCE_GROUP`
  • List VMs With High CPU Usage in resource group `AZURE_RESOURCE_GROUP`
  • List Underutilized VMs Based on CPU Usage in resource group `AZURE_RESOURCE_GROUP`
  • List VMs With High Memory Usage in resource group `AZURE_RESOURCE_GROUP`
  • List Underutilized VMs Based on Memory Usage in resource group `AZURE_RESOURCE_GROUP`
  • List Unused Network Interfaces in resource group `AZURE_RESOURCE_GROUP`
  • List Unused Public IPs in resource group `AZURE_RESOURCE_GROUP`
  • List VMs Agent Status in resource group `AZURE_RESOURCE_GROUP`

Icon 1 11 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


Count Virtual machines that are publicly accessible, have high CPU usage, underutilized memory, stopped state, unused network interfaces, and unused public IPs in Azure

Tasks:
  • Check Azure VM Health in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for VMs With Public IP in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for Stopped VMs in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for VMs With High CPU Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for Underutilized VMs Based on CPU Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for VMs With High Memory Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for Underutilized VMs Based on Memory Usage in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for Unused Network Interfaces in resource group `${AZURE_RESOURCE_GROUP}`
  • Check for Unused Public IPs in resource group `${AZURE_RESOURCE_GROUP}`
  • Check VMs Agent Status in resource group `${AZURE_RESOURCE_GROUP}`
  • Generate Health Score

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


Check Azure storage health by identifying unused disks, snapshots, and storage accounts

Tasks:
  • Check Azure Storage Resource Health in resource group `AZURE_RESOURCE_GROUP`
  • List Unused Azure Disks in resource group `AZURE_RESOURCE_GROUP`
  • List Unused Azure Snapshots in resource group `AZURE_RESOURCE_GROUP`
  • List Unused Azure Storage Accounts in resource group `AZURE_RESOURCE_GROUP`
  • List Storage Containers with Public Access in resource group `AZURE_RESOURCE_GROUP`
  • List Storage Account Misconfigurations in resource group `AZURE_RESOURCE_GROUP`
  • List Storage Account Changes in resource group `AZURE_RESOURCE_GROUP`

Icon 1 8 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: azure-c7n-codecollection


Check Azure storage health by identifying unused disks, snapshots, and storage accounts

Tasks:
  • Count Azure Storage Accounts with Health Status of `Available` in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Unused Disks in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Unused Snapshots in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Unused Storage Accounts in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Storage Containers with Public Access in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Storage Account Misconfigurations in resource group `${AZURE_RESOURCE_GROUP}`
  • Count Storage Account Changes with Critical/High Security Risk in resource group `${AZURE_RESOURCE_GROUP}`
  • Generate Health Score