# Agents start here

Route for helping someone prepare or deploy an app with App Service Builder. Read the linked guide before acting; procedures, commands, and prerequisites live there. No skill is required.

<a id="rules-for-agents"></a>

## Rules for agents

- Start read-only. Get approval before edits, installs, builds, deployments, or permission changes. A build runs repository code, so it needs its own approval.
- Preserve the user's chosen app, source, framework, and unrelated files. Propose the smallest `builder.yaml` change and show the diff.
- Creating an app, connecting source, publishing code, and deploying are separate approvals. Local edits aren't deployed source: confirm the pushed branch tip matches before deploying.
- Don't invent commands, flags, or health endpoints. If Builder CLI is installed, check `builder --help`; if it's missing, say so rather than installing it.
- Take field names, limits, and support boundaries from these docs, not from another Azure service.
- A successful build or accepted request doesn't prove the app serves the right content. Verify the app URL and the app's own health endpoint if it has one.
- If an outcome is unknown or times out, inspect the existing app and operation read-only before any retry; don't create or deploy again.

<a id="read-the-markdown-docs"></a>

## Read the Markdown docs

The [Markdown documentation index](/docs/llms.txt) lists every article. [Read this map as Markdown](/docs/quickstarts/agents-start-here.md); for any article, replace the final `/` in its URL with `.md` (`/docs/guides/builder-yaml/` is `/docs/guides/builder-yaml.md`). Both formats come from the same content, including all client tabs, warnings, and sample descriptions. Agents don't find `llms.txt` automatically; give them the link.

<a id="follow-the-journey"></a>

## Follow the journey

1. **Check access and supported scope.** Read [preview availability and limitations](/docs/resources/feature-status.md), [runtime support](/docs/reference/runtimes.md), and [access and sign-in](/docs/guides/access-and-sign-in.md). Check [regions](/docs/resources/regions.md), [networking and app URLs](/docs/guides/networking.md), and [durable storage boundaries](/docs/guides/storage.md). See [preview terms and support](/docs/resources/preview.md) and [cost guidance](/docs/resources/cost.md).
2. **Choose the client and source route.** Follow the [Builder CLI](/docs/quickstarts/builder-cli.md) or [Portal](/docs/quickstarts/portal.md) first-app journey for GitHub source, including [repository authorization](/docs/guides/source-control.md#github-authorization), or the [ZIP deployment walkthrough](/docs/guides/deploy-zip-source.md) for local source.
3. **Map the app to its manifest.** Use the [manifest guide](/docs/guides/builder-yaml.md) to choose the app shape and separate source roots, build output, startup, ports, and public URLs. Look up exact fields in the [YAML reference](/docs/reference/builder-yaml.md). GitHub source without a manifest can use [best-effort generation](/docs/guides/builder-yaml.md#if-you-dont-provide-builderyaml). Review its YAML and errors; copy, correct, and commit it before extending the app. ZIP uploads still need a manifest.
4. **Review checks and proposed changes.** Read [local manifest validation](/docs/guides/builder-yaml.md#validate-your-manifest). For settings, see [variables](/docs/guides/variables.md), [visitor sign-in](/docs/guides/authentication.md), and [managed identity](/docs/guides/managed-identity.md).
5. **Deploy and verify.** Follow [completion and active-version checks](/docs/guides/deployments.md#track-completion) and use [health semantics](/docs/reference/builder-yaml.md#health-semantics) to tell reachability from the responses you need to test.
6. **Diagnose before retrying.** Use [the failing-stage checklist](/docs/troubleshooting.md#find-the-failing-stage), [diagnostics](/docs/guides/logging-and-monitoring.md), and [safe retry guidance](/docs/guides/deployments.md#retry-safely).

<a id="choose-optional-agent-instructions"></a>

## Choose optional agent instructions

[Agent skills](/docs/quickstarts/agent-skills.md) covers installing the optional skill; the routes above don't need it.

<a id="check-automation-separately"></a>

## Check automation separately

Before designing CI/CD, read [automation boundaries](/docs/guides/source-control.md#automatic-deployment-policy), [ARM deployment requests](/docs/guides/deploy-with-arm.md), and [CLI headless-session limits](/docs/guides/access-and-sign-in.md#cli-sessions-and-automation). For resource definitions, use [ARM or Bicep provisioning](/docs/guides/provision-with-templates.md). Don't assume an interactive deployment workflow supplies unattended authentication.
