Skip to content

[docs] Entra Graph provisioning customization via ConfigureInfrastructure - #2043

Closed
aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21724-41730292571-1-5ee02227e96a2ca5
Closed

aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-21724-41730292571-1-5ee02227e96a2ca5

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21724

Author: @eerhardt (source PR author per the workflow actor)

Target branch: Targeting release/17.0 based on the source PR milestone 17.0 (exact_match).

Why: The source PR makes the Microsoft Graph provisioning models used by AddEntraIdApplication public (C#) and adds the experimental Aspire.Hosting.Azure.Provisioning.EntraId package for polyglot AppHosts. The docs had no coverage of this.

Changes:

  • Added the new provisioning package to the opt-in table.
  • Added a "Customize Microsoft Entra ID applications" section with C# and TypeScript examples and caveats (tags are string arrays, existing registrations aren't modified, the duplicate applications declaration for the default `(redacted) URI).

Files modified (updated, none new):

  • src/frontend/src/content/docs/integrations/cloud/azure/customize-resources.mdx

Generated by PR Documentation Check for #21724 · copilot · auto · 25.8 AIC · ⌖ 1.18 AIC · ⊞ 7.4K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Nov 3, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

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

VS Code: Open PR #2043 artifacts

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

@eerhardt

Copy link
Copy Markdown
Member

Superseded by #2086 which consolidates the Entra ID docs.

Eric Erhardt (eerhardt) added a commit that referenced this pull request Nov 11, 2026
## Summary

Documents the Microsoft Entra ID hosting integration (epic
microsoft/aspire#21060) as one consolidated set of pages under
`integrations/security/microsoft-entra-id/`. It replaces ten independent
bot-written draft PRs that overlapped, edited the same files, and in
places contradicted the shipped API. Every claim was checked against
`microsoft/aspire` (README, code, `[AspireExport]` attributes, polyglot
fixtures, tests, and the end-to-end deployment tests).

New pages:

| Page | Covers |
| --- | --- |
| Overview (`index`) | Preview posture, prerequisites, package install,
run vs publish, settings workloads receive, connection names |
| Secure a web app and API | Web-to-API walkthrough, local vs Azure
deployment |
| Redirect URIs and sign-in | Endpoint-derived, host-parameter, and
literal URIs, browser origins, ID-token issuance, audiences, sovereign
clouds |
| Client credentials | Secret, local developer certificate, managed
identity federation, Key Vault certificate (+ automatic cert-read RBAC),
store, file, `x5c` |
| Expose and call APIs | Scopes, application ID URI, API permissions,
`DownstreamApis`, consent, pre-authorization, Graph and custom APIs |
| Application roles | `WithAppRole`, retirement rules,
`PublishWithAppRoleAssignment` for managed identities |
| Existing registrations | `AddExistingEntraApplication` vs
`AsExistingApplication`, supported vs rejected settings |
| Customize infrastructure | `ConfigureInfrastructure`, tags,
`serviceManagementReference`, experimental
`Aspire.Hosting.Azure.Provisioning.EntraId`
(`ASPIREAZUREPROVISIONING001`) |
| Lifecycle and permissions | Permissions matrix,
create/redeploy/cleanup, tenant suffix, owners, retained grants,
limitations, transient Graph failures, troubleshooting |

Other changes: sidebar group under Security & identity, a Microsoft
Entra ID row in the Azure provisioning package table, and cross-links
from the local provisioning, user-assigned identity, and Key Vault
pages.

Superseded drafts (closed after this PR opens): #1928, #1934, #1944,
#1964, #1973, #1991, #2027, #2028, #2031, #2043.

### Consolidation notes and assumptions

- Defects in the drafts that were not carried over: `apphost.ts` titles,
the wrong `syncKey`, C# before TypeScript, a nonexistent `prerelease`
prop on `InstallPackage`, an unverified `shortName`, aligned fluent
indentation, the stale "add URL callbacks before `WithRedirectUris`"
note (resolution now waits for all URL customizations), and a claim that
`local-provisioning.mdx` documents "Missing subscription configuration".
- The 17.0 what's-new page is intentionally not edited (#1928 only
touched that page), per the task instructions.
- TypeScript samples are not `twoslash`-annotated because the bundled
twoslash data predates the Entra package. The method names and option
shapes were verified against `apphost.mts` and the `[AspireExport]`
attributes. C#-only APIs (`WithCredential`, `EntraIdApi`,
`EntraIdApiPermission`, `EntraIdAppRole`) show C# only or use the
TypeScript DTO equivalents.
- Nested sidebar items carry no per-item locale translations, matching
every other nested integration group in `integrations.topics.ts`.
- `integration-docs.json` mappings were intentionally not added.
`reconcileIntegrationDocs` prunes official-package entries missing from
`aspire-integrations.json`, so `pnpm test:unit:structured-data` fails
until the packages appear on NuGet. They can be added by the
integrations updater afterwards.
- No `<ApiReference>` components are used because no generated API data
exists for these packages yet.

### Open questions and unverifiable claims

- Epic items still open and not reflected as final: API review (#21075),
security review (#21080), release docs/samples (#21079), platform and
failure-path dispositions (#21078).
- "Azure CLI with Bicep 0.36.1 or later" comes only from the integration
README and playground README.
- The `AzureAd` Microsoft.Identity.Web snippets were checked against
Microsoft.Identity.Web source
(`AddMicrosoftIdentityMessageHandler(IConfiguration, string)`,
`EnableTokenAcquisitionToCallDownstreamApi`,
`AddMicrosoftIdentityWebApi`) but not executed end to end.
- The app-role sample's use of `WithAllowWebApiToBeAuthorizedByACL`
follows the shipped end-to-end deployment test. The exact
Microsoft.Identity.Web rejection behavior for tokens without `roles` is
from that test and the option's XML doc.
- Transient Graph failures after registration creation are documented as
a known limitation with "deploy again" guidance, per #21372. No
automatic retry exists in 17.0.

## Third-party links and affiliations

None. All added links point to Microsoft-owned sites
(learn.microsoft.com, entra.microsoft.com, aka.ms,
devblogs.microsoft.com, nuget.org package pages) and the existing
aspire.dev docs.

## Validation

Run from `src/frontend`; `pnpm build` was not run, per repository
policy:

- `pnpm install --frozen-lockfile`: passed
- `pnpm test:unit:structured-data`: passed (5 files, 99 tests)
- `pnpm exec vitest run --config vitest.config.ts`: passed (97 files,
1398 passed, 1 skipped), including `seo-lengths`,
`typescript-first-apphost-tabs`, and `twoslash-blocks`
- `pnpm exec eslint config/sidebar/integrations.topics.ts --max-warnings
0`: passed
- `pnpm exec prettier --write config/sidebar/integrations.topics.ts`:
applied
- A script that resolves every internal link and anchor in the new and
edited pages: all OK
- Style sweep for em dashes, bold lead-in bullets, `Overview` headings,
non-TypeScript-first tabs, bad `syncKey`/titles, and missing trailing
slashes: clean
- Three independent read-only fact-check passes against the
microsoft/aspire sources; all reported discrepancies were fixed before
this commit
- Regenerated `.starlight-icons/*` and `twoslash/aspire.d.ts` were
restored and are not in the commit

---------

Co-authored-by: Copilot App <[email protected]>
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.

1 participant