Skip to content
Agentmart
Submit a tool

diagnose-azure-container-app

Diagnoses why an Azure Container App is failing to start by retrieving system events and application console logs.

Skill by RascalTwo

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying diagnose-azure-container-app?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/rascaltwo-diagnose-azure-container-app

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Diagnoses why an Azure Container App is failing to start by retrieving system events and application console logs. Use when a deploy fails due to a health check timeout, startup probe failure, or the container app is crash-looping.

Use cases: devops, cloud

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 1, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/diagnose-azure-container-app

What's inside

Skill name
diagnose-azure-container-app
Description
Diagnoses why an Azure Container App is failing to start by retrieving system events and application console logs. Use when a deploy fails due to a health check timeout, startup probe failure, or the container app is crash-looping.
License
MIT
Instructions
68 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Azure Container App Log Diagnosis

Use this skill when a deployment fails because a Container App health check timed out, a startup probe failed, or the app is crash-looping. The goal is to get the actual application logs that explain *why* the container can't start.

## Prerequisites

- `az` CLI authenticated (`az login` already done)
- Know the container app name and resource group (or discover them below)

## Step 1: Identify the Container App

If you don't already know the app name and resource group:

```bash
az containerapp list --query "[].{name:name, resourceGroup:resourceGroup}" -o table
```

## Step 2: Get System Events

System events show whether the container is pulling images, failing probes, or crash-looping:

```bash
az containerapp logs show -n <APP_NAME> -g <RESOURCE_GROUP> --type system --tail 100
```

Look for:
- `ReplicaUnhealthy` / `Startup probe failed` — app isn't binding to its port in time
- `ContainerBackOff` / `Persistent Failure to start container` — crash loop
- `ImagePullBackOff` — image registry or tag issue

## Step 3: Get Application Console Logs via Log Analytics

The `az containerapp logs show --type console` often returns empty results for crashed containers. Use Log Analytics instead.

### 3a: Get the Log Analytics workspace ID

```bash
ENV_NAME=$(az containerapp show -n <APP_NAME> -g <RESOURCE_GROUP> --query "properties.managedEnvironmentId" -o tsv | xargs -I{} basename {})
WORKSPACE_ID=$(az containerapp env show -n "$ENV_NAME" -g <RESOURCE_GROUP> --query "properties.appLogsConfiguration.logAnalyticsConfiguration.customerId" -o tsv)
```

### 3b: Query console logs

```bash
az monitor log-analytics query -w "$WORKSPACE_ID" \
  --analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == '<APP_NAME>' | where TimeGenerated > ago(1h) | order by TimeGenerated desc | take 80 | project TimeGenerated, Log_s, RevisionName_s" \
  -o table
```

The output may be large — read the full output and look for:
- **Stack traces / exceptions** — the root cause (e.g., `BeanDefinitionStoreException`, `ConflictingBeanDefinitionException`, missing config)
- **`Application run failed`** — confirms the app crashed during startup
- Lines from the **most recent revision** (highest `--NNNNNN` suffix)

## Step 4: Interpret and Fix

Common failure patterns:
| Log Pattern | Likely Cause |
|---|---|
| `ConflictingBeanDefinitionException` | Duplicate Spring bean names across packages |
| `connection refused` on DB/external service | Missing or wrong env vars / secrets |
| `NoSuchBeanDefinitionException` | Missing dependency or config class |
| `Port already in use` / never binds | Wrong `SERVER_PORT` or app crash before listen |
| `ImagePullBackOff` | Wrong image tag, registry auth, or ACR not accessible |

After identifying the cause, fix the source code or configuration and redeploy.

From RascalTwo/ai-setup, MIT.

More from RascalTwo/ai-setup

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Oct 24, 2026 (8 days ago)
Last release
Oct 24, 2026 (9 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from RascalTwo

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get diagnose-azure-container-app running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying diagnose-azure-container-app?

CallGet help
Cite this page

diagnose-azure-container-app skill. Agent Mart. https://agentmart.dev/skills/rascaltwo-diagnose-azure-container-app (last updated 2026-10-24)