Skip to content

Add Aspire azd transition page and deployment notices - #1933

Draft
Mitch Denny (mitchdenny) wants to merge 1 commit into
mainfrom
mitchdenny-azd-transition-documentation
Draft

Mitch Denny (mitchdenny) wants to merge 1 commit into
mainfrom
mitchdenny-azd-transition-documentation

Conversation

@mitchdenny

Copy link
Copy Markdown
Member

Summary

  • Add a placeholder page at https://aspire.dev/deployment/azd-transition/ and a sidebar entry under Deployment > Deploy to Azure > Guidance.
  • Recommend transitioning Aspire AppHost deployments from Azure Developer CLI (azd) to aspire deploy. Explicitly clarify that Azure Developer CLI and azd up, azd provision, and azd deploy are not being retired.
  • Keep substantive transition guidance and messaging pending collaboration with the AZD team. No transition procedures, timelines, or removal commitments are introduced.
  • Add banners linking directly to the page on 13 relevant pages: four Azure deployment guides, three integration guides, one diagnostic page, and five historical release notes. Credential-only mentions are excluded; existing instructions are unchanged.

Intended destination for https://aka.ms/aspire/azd-transition: https://aspire.dev/deployment/azd-transition/. Short-link configuration is a separate step and is not performed by this PR.

Related implementation: microsoft/aspire#21230.

Third-party links and affiliations

None. Documentation links added by this change are site-relative.

Validation

  • pnpm --dir src/frontend exec vitest run --config vitest.config.ts tests/unit/banner-render.vitest.test.ts — passed, 7 tests.
  • pnpm --dir src/frontend exec vitest run --config vitest.config.ts tests/unit/seo-lengths.vitest.test.ts — passed, 3 tests.
  • pnpm --dir src/frontend exec eslint config/sidebar/deployment.topics.ts --max-warnings 0 — passed.
  • git diff --check — passed.
  • Local Astro preview: all 13 affected pages returned HTTP 200 and rendered the expected banner/link. Verified the new page's canonical URL, sidebar entry, placeholder wording, and related links.
  • playwright-cli browser verification: banner visible and contained within a 375px viewport; clicking its link navigates to the placeholder page.
  • Compared affected pages against their originals: only banner frontmatter was added; existing guidance is unchanged.
  • Production build not run locally, per repository policy. Preview-only live API requests returned expected 404s because StaticHost was not running.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 5346f301-2bdb-4056-8eef-7c4fdef7c4dd
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1933. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1933 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

David Pine (IEvangelist) pushed a commit that referenced this pull request Nov 1, 2026
## Summary

Fixes seven broken internal links in the English docs. Every locale
falls back to these pages, so each broken link appears on all 15
locales. The links validator didn't flag them because it never inspects
these two kinds of link:

- `starlight-links-validator` runs with `errorOnRelativeLinks: false`,
so it skips `./` and `../` links entirely.
- It only reads string `href` attributes. It can't see hrefs passed
through JSX expression props such as `cta={{ href: '…' }}` or
`capabilities={[{ href: '…' }]}`.

| Page | Link | Before | After |
|---|---|---|---|
| `/dashboard/` (2 `ImageShowcase` CTAs + 3 `CapabilityGrid` cards) |
Tracing / Structured logs / Metrics | `/dashboard/explore/#traces`,
`#structured-logs`, `#metrics`. These ids don't exist, so the link lands
at the top of a long page | `#traces-page`, `#structured-logs-page`,
`#metrics-page`, the same anchors that `dashboard/standalone.mdx` and
`data/dev-hub.ts` already use |
| `/reference/cli/commands/aspire-dashboard-run/` | Dashboard
configuration | `../../../dashboard/configuration/` →
`/reference/dashboard/configuration/` (**404**) |
`/dashboard/configuration/` |
| `/integrations/cloud/azure/azure-cache-redis/azure-cache-redis-host/`
| Redis Hosting integration |
`../../../caching/redis/redis-host/#…-redis-insights` →
`/integrations/cloud/caching/redis/redis-host/` (**404**), and the
anchor was misspelled |
`/integrations/caching/redis/redis-host/#add-redis-resource-with-redis-insight`
|

The fixed links are absolute, so `starlight-links-validator` now checks
the two Markdown ones at build time. A new unit test,
`tests/unit/docs-internal-links.vitest.test.ts`, covers the gap for the
English docs. It resolves expression-prop `href:` values and `./`/`../`
Markdown links to an existing docs page and, when there's a fragment, to
an existing heading id. It follows the existing pattern in
`dev-glossary.vitest.test.ts` and slugs headings with `github-slugger`,
as Starlight does. Like the validator config, it skips `/reference/api/`
and `/hub/`.

### How this was found

I crawled main's CI `frontend-dist` artifact, the production build of
`29550055` from [run
41062457941](https://github.com/microsoft/aspire.dev/actions/runs/41062457941),
covering all 8,327 non-API HTML pages. I checked every internal `<a
href>` against the built files and ids. Before this change the live site
behaves as follows:

- `https://aspire.dev/reference/dashboard/configuration/` returns 404.
- `https://aspire.dev/integrations/cloud/caching/redis/redis-host/`
returns 404.
- `https://aspire.dev/dashboard/explore/` only has `id="traces-page"`,
`id="structured-logs-page"` and `id="metrics-page"`.

The crawl also found broken links that this PR leaves alone:

- Localized `.md` page-action links: covered by #1990.
- Localized glossary links: covered by #1989.
- Bare relative links in `whats-new/aspire-9-4.mdx` and
`aspire-9-5.mdx`: these files are being edited by open PRs #1933, #1896
and #1876.
- A typo in a synced sample README (`data/samples.json`): it comes from
the upstream samples repo.

## Third-party links and affiliations

None.

## Validation

- The regression test fails before the fix with exactly the 7 links
above, and passed in 3 of 3 runs after it. Before-fix output:
  ```
dashboard/index.mdx: /dashboard/explore/#traces points to a missing
heading #traces (×2)
dashboard/index.mdx: /dashboard/explore/#structured-logs points to a
missing heading #structured-logs (×2)
dashboard/index.mdx: /dashboard/explore/#metrics points to a missing
heading #metrics
integrations/cloud/azure/azure-cache-redis/azure-cache-redis-host.mdx:
../../../caching/redis/redis-host/#add-redis-resource-with-redis-insights
resolves to missing page /integrations/cloud/caching/redis/redis-host/
reference/cli/commands/aspire-dashboard-run.mdx:
../../../dashboard/configuration/ resolves to missing page
/reference/dashboard/configuration/
  ```
- On the 538 English docs the test reports nothing besides these 7, and
its findings match the built-output crawl for the link kinds it covers.
- `npx vitest run`: 84 files passed; 1,121 tests passed and 1 skipped.
- `npx eslint . --max-warnings 0` passes, and the new test file is
Prettier-formatted.
- Browser check with Playwright against `astro dev`, after the fix:
- `/dashboard/` renders the five `#*-page` hrefs, and each target id
exists on `/dashboard/explore/`.
  - The Dashboard configuration link returns 200.
- The Redis Hosting integration link returns 200, and its anchor exists.
- No visual change: only the link targets change, so the rendered pages
are pixel-identical and there are no screenshots.

**🤖 Posted by AspireAgent (AI Agent)**

---------

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>
David Pine (IEvangelist) pushed a commit that referenced this pull request Nov 1, 2026
## Summary

The "What's new" pages for Aspire 9.4 and 9.5 contain links ported from
the old docs site that don't work on aspire.dev, plus one `[!INCLUDE]`
directive that shows up as raw text. The site's links validator misses
all of them. It runs with `errorOnRelativeLinks: false`, treats
`https://aspire.dev/...` as external, and accepts redirect sources.

**`whats-new/aspire-9-4.mdx`**

| Before | After | Problem |
|---|---|---|
| `` [Aspire SDK](`microsoft/aspire/sdk`) `` |
`/get-started/aspire-sdk/` | The target is in backticks, so it resolves
to a 404 |
| `cli-reference/aspire/` | `/reference/cli/commands/aspire/` | Bare
relative link → 404 |
| `cli-reference/aspire-config/` |
`/reference/cli/commands/aspire-config/` | Bare relative link → 404 |
| `[!INCLUDE [aspire exec feature flag
note](cli/includes/exec-feature-flag-note/)]` | Inline 🧪 **Feature
Flag** note, in the same style as the `aspire deploy` note on the same
page | Rendered as literal text, with a 404 link |
| `cli-reference/aspire-deploy/` |
`/reference/cli/commands/aspire-deploy/` | Bare relative link → 404 |
|
`fundamentals/orchestrate-resources.md#express-external-service-resources`
|
`/reference/api/csharp/aspire.hosting/externalservicebuilderextensions/`
| 404. No conceptual page covers `AddExternalService`, so it links to
the API reference |
| `https://aspire.dev/app-host/eventing/#apphost-life-cycle-events` |
`#apphost-eventing` | Anchor doesn't exist |
|
`https://aspire.dev/app-host/configuration/#aspire-version-update-notifications`
| `#version-update-notifications` | Anchor doesn't exist |

**`whats-new/aspire-9-5.mdx`**

| Before | After | Problem |
|---|---|---|
| `` [Aspire SDK](`microsoft/aspire/sdk`) `` |
`/get-started/aspire-sdk/` | The target is in backticks → 404 |
| `cli-reference/aspire-config-set/` |
`/reference/cli/commands/aspire-config-set/` | Bare relative link → 404
|
| "For more information, see [aspire exec
command](cli-reference/aspire-exec/) reference." | Sentence removed |
404. `aspire exec` is no longer in the CLI, and
`/reference/cli/commands/aspire-exec/` redirects to `aspire-resource`,
which is a different command (#1814) |
| `cli-reference/aspire-config/` |
`/reference/cli/commands/aspire-config/` | Bare relative link → 404 |
| `/integrations/reverse-proxies/yarp/#multi-stage-docker-builds` |
`#static-file-serving` | Anchor doesn't exist. The static-files section
is the one the text describes |
| `/integrations/messaging/rabbitmq/rabbitmq-client/#auto-activation` |
`/integrations/messaging/rabbitmq/rabbitmq-connect/#auto-activation` |
The old path is a meta-refresh redirect stub that drops
`#auto-activation` |

**Regression test:** the new
`tests/unit/docs-markdown-link-targets.vitest.test.ts` scans English
docs markdown (skipping code fences) for these patterns:
- `[!INCLUDE` directives
- link targets wrapped in backticks
- bare relative targets
- anchored links to redirect sources
- `https://aspire.dev/...` links to missing pages or missing heading
anchors

It skips the same paths the links validator excludes (`/reference/api/`,
`/hub/`, `/i18n/`).

**Scope:** open PR #1995 covers a different set of link gaps (dashboard
anchors and Azure pages) and doesn't touch these lines. Other open PRs
that edit these files (#1933, #1896, #1876) don't change these links
either.

## Third-party links and affiliations

None.

## Validation

- **Regression test:** fails on `main` with 15 problems across the two
files, and passes with this change (2/2).
- **Unit tests:** `bun run test:unit` → 85 files, 1122 passed, 1
skipped.
- **Lint:** `bun run lint` passes.
- **Playwright, against the local dev server:** opened both pages and
requested every changed link, checking the target anchor exists.
- Before: 12 failures (404s, missing anchors, plus the raw `[!INCLUDE`
text on 9.4).
- After: all 12 links resolve, every anchor is present, and there is no
`[!INCLUDE` text.
- **Redirect behaviour:** checked against the production build artifact
from `main` CI. `rabbitmq-client/#auto-activation` lands on
`rabbitmq-connect/` with an empty hash, so the anchor is lost.

**Before:** the 9.4 `aspire exec` section renders the raw directive.

![Before: Aspire 9.4 What's new shows literal "[!INCLUDE aspire exec
feature flag note]"
text](https://github.com/user-attachments/assets/6162ca7e-9bd6-4df9-8271-af24daae09e1)

**After:** the feature-flag note renders.

![After: Aspire 9.4 What's new shows the Feature Flag note for aspire
exec](https://github.com/user-attachments/assets/06d8656c-82b5-47b0-97f8-84b2554cda74)

**🤖 Posted by AspireAgent (AI Agent)**

---------

Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>

Copy link
Copy Markdown
Member

docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]

Recommendation: needs human

Source used: n/a — placeholder page; related implementation microsoft/aspire#21230 not checked
PR status: draft, authored by a maintainer (mitchdenny), targets main, mergeable, opened 2026-10-21 (not stale); 15 files.

Phase A — claims

  • ✅ the page makes no procedural claims and states that azd itself (azd up, azd provision, azd deploy) is not being retired.
  • ❓ The page and the banners on 13 pages are explicitly pending collaboration with the Azure Developer CLI team, and the short link aka.ms/aspire/azd-transition is not yet configured. Deployment-recommendation wording and the 'Third-party links and affiliations' section need a human decision.

Phase B — doc-tester

Not run; rendering of the changed pages is not browser-checked.

🤖 Posted by aspire.dev - squad (AI Agent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants