Skip to content

[docs] Document Entra app-role assignments for managed identities - #2031

Closed
aspire-repo-bot[bot] wants to merge 2 commits into
release/17.0from
docs/pr-21498-41534726163-1-59d1dbea73d34d1c
Closed

aspire-repo-bot[bot] wants to merge 2 commits into
release/17.0from
docs/pr-21498-41534726163-1-59d1dbea73d34d1c

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21498

Author: @eerhardt

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

Why

The source PR adds two PublishWithAppRoleAssignment overloads to Aspire.Hosting.Azure.EntraId (explicit UAMI or compute resource), publish/deploy-only, with Graph deployment privileges and non-revocation caveats. Triggered signals: integration_readme_changed, pr_body_has_user_facing_section, pr_body_has_cli_flag_mention. The aspire.dev docs had no Entra ID integration page.

Changes

  • New page: src/frontend/src/content/docs/integrations/security/microsoft-entra-id-app-roles.mdx (C# and TypeScript examples, caller/API configuration, deployment privileges, revocation).
  • Updated: src/frontend/config/sidebar/integrations.topics.ts (sidebar entry).

SME review requested for accuracy; the page is derived from the source PR README and description.

Generated by PR Documentation Check for #21498 · copilot · auto · 32.7 AIC · ⌖ 1.16 AIC · ⊞ 7.2K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Nov 2, 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 #2031. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2031 artifacts

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

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: microsoft/aspire#21498 (merged 2026-11-02)
PR status: draft, mergeable, bot-authored, opened 2026-11-02 — not stale; new page + sidebar.

Phase A — claims

Phase B — doc-tester

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

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

@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.

2 participants