Skip to content

[docs] Document WithUniqueResourceNaming for Azure Container App environments - #1443

Merged
David Pine (IEvangelist) merged 2 commits into
release/13.5from
docs/aca-unique-resource-naming-18737-c2a57aec70c80a86
Aug 7, 2026
Merged

[docs] Document WithUniqueResourceNaming for Azure Container App environments#1443
David Pine (IEvangelist) merged 2 commits into
release/13.5from
docs/aca-unique-resource-naming-18737-c2a57aec70c80a86

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18737

@mitchdenny

Targeting release/13.5 based on the source PR milestone 13.5.

Why

microsoft/aspire#18737 adds WithUniqueResourceNaming(), a new experimental (ASPIREACANAMING002) extension method on AzureContainerAppEnvironmentResource. By default, the generated Azure Container Apps managed environment name keeps only lowercase letters from the resource name, so AddAzureContainerAppEnvironment("cae1") and AddAzureContainerAppEnvironment("cae2") deployed to the same resource group both resolve to the same physical environment name, causing collisions (ManagedEnvironmentOperationInProgress). Publish/deploy now fail fast with guidance pointing callers at WithUniqueResourceNaming(). This new public API and diagnostic weren't covered anywhere on the docs site.

What changed

  • Added a new diagnostics reference page src/frontend/src/content/docs/diagnostics/aspireacanaming002.mdx (modeled on the existing aspirecompute001.mdx / aspireacadomains001.mdx pattern) documenting the ASPIREACANAMING002 experimental-API warning, an example that triggers it, and the three standard suppression methods.
  • Registered the new diagnostic in the sidebar at src/frontend/config/sidebar/reference.topics.ts.
  • Added an "Avoid managed environment name collisions" section to src/frontend/src/content/docs/integrations/cloud/azure/configure-container-apps.mdx (next to the existing WithAzdResourceNaming naming-conventions section) explaining the collision scenario, showing how to call WithUniqueResourceNaming() on each colliding environment, and calling out via <Aside type="caution"> that it changes the managed environment name (so it should only be applied to already-deployed environments deliberately) and links to the new diagnostics page.

Files changed

  • src/frontend/src/content/docs/diagnostics/aspireacanaming002.mdx (new)
  • src/frontend/config/sidebar/reference.topics.ts (modified — added sidebar entry)
  • src/frontend/src/content/docs/integrations/cloud/azure/configure-container-apps.mdx (modified — added new section)

Generated by PR Documentation Check · auto · 78.8 AIC · ⌖ 7.5 AIC · ⊞ 17.8K ·

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Aug 7, 2026
@IEvangelist
David Pine (IEvangelist) marked this pull request as ready for review August 7, 2026 06:37
Copilot AI lite review requested due to automatic review settings August 7, 2026 06:37

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated against microsoft/aspire#18737. The collision scenario, opt-in naming behavior, migration caution, experimental diagnostic, and resolver precedence are documented accurately.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for the new experimental WithUniqueResourceNaming() API on Azure Container Apps environments and its associated diagnostic (ASPIREACANAMING002), to help users avoid managed environment naming collisions during publish/deploy.

Changes:

  • Added a new diagnostics reference page for ASPIREACANAMING002, including an example and suppression options.
  • Added a new section to the Azure Container Apps configuration doc describing the collision scenario and how to apply WithUniqueResourceNaming().
  • Registered ASPIREACANAMING002 in the diagnostics sidebar.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/frontend/src/content/docs/integrations/cloud/azure/configure-container-apps.mdx Documents the naming collision scenario and the WithUniqueResourceNaming() mitigation.
src/frontend/src/content/docs/diagnostics/aspireacanaming002.mdx New diagnostics page describing ASPIREACANAMING002 and suppression patterns.
src/frontend/config/sidebar/reference.topics.ts Adds ASPIREACANAMING002 to the diagnostics sidebar list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #1443 artifacts

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

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 32c349b4-907d-42e9-aad8-2f0edc267779
@IEvangelist
David Pine (IEvangelist) merged commit 70e59c9 into release/13.5 Aug 7, 2026
10 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/aca-unique-resource-naming-18737-c2a57aec70c80a86 branch August 7, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants