AZURE

Icon

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Operational tasks for an Azure App Services, such as restarting, scaling or re-deploying.

Tasks:
  • Restart App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Swap Deployment Slots for App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Scale Up App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Scale Down App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP`
  • Scale Out Instances for App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP` by SCALE_OUT_FACTORx
  • Scale In Instances for App Service `APP_SERVICE_NAME` in Resource Group `AZ_RESOURCE_GROUP` to 1/SCALE_IN_FACTOR
  • Redeploy App Service `APP_SERVICE_NAME` from Latest Source in Resource Group `AZ_RESOURCE_GROUP`

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Queries the health of an Azure Application Gateway, returning 1 when it's healthy and 0 when it's unhealthy.

Tasks:
  • Check for Resource Health Issues Affecting Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Configuration Health of Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Backend Pool Health for Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Fetch Metrics for Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check SSL Certificate Health for Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Check Logs for Errors with Application Gateway `${APP_GATEWAY_NAME}` In Resource Group `${AZ_RESOURCE_GROUP}`
  • Generate Application Gateway Health Score

Icon 1 8 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


Performs a health check on Azure Application Gateways and the backend pools used by them, generating a report of issues and next steps.

Tasks:
  • Check for Resource Health Issues Affecting Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Configuration Health of Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Backend Pool Health for Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Log Analytics for Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Fetch Metrics for Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check SSL Certificate Health for Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • Check Logs for Errors with Application Gateway `APP_GATEWAY_NAME` In Resource Group `AZ_RESOURCE_GROUP`
  • List Related Azure Resources for Application Gateway `APP_GATEWAY_NAME` 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 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 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 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 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 8 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


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

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 in Resource Group `AZ_RESOURCE_GROUP`
  • Fetch App Service `APP_SERVICE_NAME` Utilization Metrics In Resource Group `AZ_RESOURCE_GROUP`
  • Get App Service `APP_SERVICE_NAME` Logs In Resource Group `AZ_RESOURCE_GROUP`
  • Check Configuration Health of App Service `APP_SERVICE_NAME` 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`
  • Check Logs for Errors in App Service `APP_SERVICE_NAME` In Resource Group `AZ_RESOURCE_GROUP`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-cli-codecollection


Triages issues related to a Azure Loadbalancers and its activity logs.

Tasks:
  • Check Activity Logs for Azure Load Balancer `AZ_LB_NAME`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


This CodeBundle counts the number of container images (from a configured list) outdated. It compares upstream images with those in the registry and counts the number that are outdated.

Tasks:
  • Count Outdated Images in Azure Container Registry `${ACR_REGISTRY}`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-cli-codecollection


This CodeBundle syncs images from public repostitories into an Azure Container Registry.

Tasks:
  • Sync Container Images into Azure Container Registry `ACR_REGISTRY`

Icon 1 9 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 for VMs With Public IP in resource group `${AZURE_RESOURCE_GROUP}` in Azure Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for VMs With High CPU Usage in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for Stopped VMs in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for Underutilized VMs Based on CPU Usage in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for VMs With High Memory Usage in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for Underutilized VMs Based on Memory Usage in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for Unused Network Interfaces in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Check for Unused Public IPs in resource group `${AZURE_RESOURCE_GROUP}` in Subscription `${AZURE_SUBSCRIPTION_NAME}`
  • Generate Health Score

Icon 1 8 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 With Public IP in resource group `AZURE_RESOURCE_GROUP` in Azure Subscription `AZURE_SUBSCRIPTION_NAME`
  • List for Stopped VMs in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List VMs With High CPU Usage in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List Underutilized VMs Based on CPU Usage in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List VMs With High Memory Usage in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List Underutilized VMs Based on Memory Usage in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List Unused Network Interfaces in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`
  • List Unused Public IPs in resource group `AZURE_RESOURCE_GROUP` in Subscription `AZURE_SUBSCRIPTION_NAME`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-generic-codecollection


This sli runs a user provided azure cli command and pushes the metric. The supplied command must result in distinct single metric. Command line tools like jq are available.

Tasks:
  • ${TASK_TITLE}

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-generic-codecollection


This taskset runs a user provided azure command and adds the output to the report. Command line tools like jq are available.

Tasks:
  • TASK_TITLE

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-generic-codecollection


Runs an ad-hoc user-provided command, and if the provided command outputs a non-empty string to stdout then a health score of 0 (unhealthy) is pushed, otherwise if there is no output, indicating no issues, then a 1 is pushed. User commands should filter expected/healthy content (eg: with grep) and only output found errors.

Tasks:
  • ${TASK_TITLE}

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by jon-funk

Icon 2 Codecollection: rw-generic-codecollection


Runs an ad-hoc user-provided command, and if the provided command outputs a non-empty string to stdout then an issue is generated with a configurable title and content. User commands should filter expected/healthy content (eg: with grep) and only output found errors.

Tasks:
  • TASK_TITLE

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-workspace-utils


Determines if any RunWhen Local images have available updates in the private Azure Container Registry service.

Tasks:
  • Check for Available RunWhen Helm Images in ACR Registry`${REGISTRY_NAME}`

Icon 1 1 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-workspace-utils


Checks (or applies) RunWhen image updates with Helm CLI if any updated images exist in the upstream ACR registry.

Tasks:
  • Apply Available RunWhen Helm Images in ACR Registry`REGISTRY_NAME`

Icon 1 3 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-workspace-utils


Determines if any RunWhen CodeCollection or private runner components require image updates.

Tasks:
  • Check for CodeCollection Updates against ACR Registry`${REGISTRY_NAME}`
  • Check for RunWhen Local Image Updates against ACR Registry`${REGISTRY_NAME}`
  • Count Images Needing Update and Push Metric

Icon 1 2 Troubleshooting Commands

Icon 2 Contributed by stewartshea

Icon 2 Codecollection: rw-workspace-utils


Synchronizes CodeCollection and Helm Images for the RunWhen Runner into a private ACR Registry

Tasks:
  • Sync CodeCollection Images to ACR Registry `REGISTRY_NAME`
  • Sync RunWhen Local Image Updates to ACR Registry`REGISTRY_NAME`