All skills
microsoft avatar

/azure-diagnostics

@ae5e585
by microsoftmicrosoft/skills3.1k stars
351

Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, troubleshoot functions, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, service bus dead letter.

Use this Skill: https://skilld.dev/gh/microsoft/skills/azure-diagnostics

This session only. Nothing lands on disk.

troubleshootingmessagingazure-servicebus-java.md

≈571 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Service Bus SDK — Java

Package: azure-messaging-servicebus | README | Full Troubleshooting Guide

Common Errors

Exception Cause Fix
AmqpException (unauthorized-access) Bad credentials or missing permissions Verify connection string, SAS, or RBAC roles
AmqpException (connection:forced) Idle connection or transient network issue Auto-recovers; no action needed
ServiceBusException (MESSAGE_LOCK_LOST) Lock expired during processing Reduce processing time, disable auto-complete, settle manually

Key Issues

Processor hangs with high prefetch + maxConcurrentCalls

Update disposition request timed out. — Client stops processing new messages.

Cause: Thread starvation when thread pool size ≤ maxConcurrentCalls.

Fix:

# Increase reactor thread pool
-Dreactor.schedulers.defaultBoundedElasticSize=<value greater than concurrency>

Also set prefetchCount(0) to disable prefetch. This is more frequent in AKS environments.

Implicit prefetch in ServiceBusReceiverClient

Even with prefetch disabled in the builder, receiveMessages API can re-enable prefetch implicitly. See SyncReceiveAndPrefetch.

Autocomplete issues

Autocomplete and auto-lock-renewal have known issues with buffered/prefetched messages.

Fix: Use disableAutoComplete() and .maxAutoLockRenewalDuration(Duration.ZERO), then settle messages explicitly.

Enable Logging

Configure via SLF4J:

<logger name="com.azure.messaging.servicebus" level="DEBUG"/>

See Java SDK logging docs for details.

Filing Issues

Include: namespace tier, entity type/config, machine specs, max heap (-Xmx), maxConcurrentCalls, prefetchCount, autoComplete setting, traffic pattern, and DEBUG-level logs (±10 min from issue).

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill is designed for Azure diagnostics and troubleshooting, providing a comprehensive set of guides and scripts that utilize standard tools like the Azure CLI and kubectl. It includes some security considerations, such as the ingestion of logs which provides a surface for indirect prompt injection, and the use of privileged debug pods for advanced diagnostics. These are used within the skill's intended functionality and are accompanied by appropriate guidance for user approval.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

Signed by skilld at ae5e585. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
metadata
{
  "author": "Microsoft",
  "version": "1.2.6"
}

README badge

README badge for microsoft/skills/azure-diagnostics