Skip to content

Provision Entra API identifier URIs, scopes, and caller permissions - #21278

Merged
Eric Erhardt (eerhardt) merged 18 commits into
mainfrom
eerhardt-entra-api-identifier-uris-scopes
Oct 28, 2026
Merged

Eric Erhardt (eerhardt) merged 18 commits into
mainfrom
eerhardt-entra-api-identifier-uris-scopes

Conversation

@eerhardt

@eerhardt Eric Erhardt (eerhardt) commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Description

Completes the delegated web-to-API provisioning slice for Aspire.Hosting.Azure.EntraId through Azure.Provisioning-generated Graph Bicep.

API side

  • WithApplicationIdUri() / WithApplicationIdUri(string): default api://{clientId} or a custom URI.
  • WithScope(name, description, configure?): explicit delegated scopes with stable, derived GUIDs (or an explicit EntraIdScope.Id).
  • WithPreAuthorizedApplication(client, scopes).
  • EntraIdApplicationResource.GetScopeUri(scope) builds the full scope name.

Caller side

  • WithApiPermissions(api, scopes) for Aspire-modeled APIs and WithApiPermissions(EntraIdApi, EntraIdApiPermission[]) for first-party APIs (EntraIdApi.MicrosoftGraph, AzureResourceManager, AzureStorage, FromApplicationId). Delegated and application permissions stay distinct, names resolve through a catalog, and unknown names are rejected.
  • WithAdminConsent(...) is the only thing that grants anything: delegated scopes become an AllPrincipals oauth2PermissionGrant, application permissions become appRoleAssignedTo. Declaring a permission never consents. A permission must be declared before it is consented.

Configuration flow to consumers

  • Referencing a client registration injects one Microsoft.Identity.Web DownstreamApis entry per API it declared permissions to: {root}__{name}__Scopes__{n}, with full scope URIs for delegated permissions. Application permissions (first-party APIs) are a separate {name}AppOnly entry using .default and RequestAppToken=true. Graph and ARM also get a BaseUrl.
  • For an API registration in the AppHost, {name} is the name of each resource that references it (like service discovery); first-party APIs use their display name. Entries with the same name throw.
  • WithReference(entra, connectionName, downstreamApisConfigKey) changes the root key (default DownstreamApis).
  • Referencing a registration that exposes scopes also sets AzureAd__Scopes (the enabled scope names, for [RequiredScope]).
    Design decisions validated against a real tenant
  • Self-reference (api://{clientId}): a second declaration of the same application under the same uniqueName sets identifierUris from the first declaration's appId. Graph treats this as a PATCH, so nothing from the first declaration is lost. api://{clientId} is what default tenant policy accepts; a custom URI is passed through and fails the deployment if tenant policy rejects it.
  • Scope retirement: Graph rejects removing an enabled scope (CannotDeleteOrUpdateEnabledEntitlement). Setting IsEnabled = false and deploying, then removing, works and is documented.
  • Pre-authorization (API module needs the client's ID) and declaration (client module needs the API's ID) would form a module cycle, so using both between the same pair is rejected with a clear error.
  • Existing registrations stay configuration-only (WithScope with an explicit ID and WithApplicationIdUri are config).
  • App role assignment for Aspire-modeled APIs remains a separate roadmap item.

Validation

  • dotnet test for Aspire.Hosting.Azure.EntraId.Tests: 350 passed (new EntraIdApiProvisioningTests use Verify snapshots of generated Bicep, plus publish tests for cross-module wiring).
  • Deployed the generated artifacts (main.bicep plus modules) to a test tenant, twice for idempotency:
    • identifierUris, scopes, pre-authorization, requiredResourceAccess, AllPrincipals grants and the Graph app role assignment were all created and stable across redeployment.
    • Delegated token through a pre-authorized client: aud = the API's client ID, scp = the requested scope, with no consent prompt.
    • App-only token for Microsoft Graph: roles = User.Read.All, and a Graph call succeeded. App-only token for the API: aud = the API's client ID.
    • Two-step scope retirement (disable, then remove) succeeded.
  • Test objects in the tenant were deleted afterwards.
  • Not added: an extension of the Linux-only AzureEntraIdDeploymentTests Hex1b E2E, since it cannot run locally. The scenarios above were verified manually.

Fixes #21070

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21278

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21278"

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Oct 22, 2026
@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 22, 2026 23:57
@github-actions

This comment has been minimized.

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.

🟡 Changes recommended

Unresolved permission-validation and provisioning defects can grant unintended access, retain removed configuration, or miswire API dependencies.

6 open issues
What changed in this PR

Extends Aspire.Hosting.Azure.EntraId to provision API identities and caller permissions through generated Microsoft Graph Bicep, addressing #21070 while keeping existing registrations configuration-only.

Changes:

  • Adds application ID URIs, explicit delegated scopes with stable IDs, and client pre-authorization.
  • Separates permission declarations from explicit admin consent for modeled and external APIs.
  • Adds validation, dependency-cycle checks, documentation, and generated-artifact tests.
File Description
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithScope_UsesDefaultApplicationIdUriSetBySecondDeclaration.verified.bicep Captures default URI and scope provisioning.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithPreAuthorizedApplication_WritesClientIdsAndScopeIds.verified.bicep Captures client pre-authorization.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithApplicationIdUri_Default_ExposesApiWithoutScopes.verified.bicep Captures default URI without scopes.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithApplicationIdUri_Custom_IsWrittenToTheApplicationWithoutASecondDeclaration.verified.bicep Captures custom URI and scope options.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithApiPermissions_ExistingApi_UsesConfiguredScopeIdsAndClientId.verified.bicep Captures permissions targeting existing APIs.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithApiPermissions_Declares_ButDoesNotGrantOrConsent.verified.bicep Captures declarations without consent.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithApiPermissions_AcceptsPermissionsOutsideTheCatalogById.verified.bicep Captures explicit permission IDs.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.WithAdminConsent_GrantsDelegatedScopesToAllUsersAndAppRolesToTheServicePrincipal.verified.bicep Captures delegated grants and role assignments.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#02.verified.bicep Captures the caller module.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#01.verified.bicep Captures the API module.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#00.verified.bicep Captures cross-module dependencies.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​Snapshots/​EntraIdApiProvisioningTests.ExistingRegistrationsDoNotCreateDependencyCycles.verified.bicep Captures existing-client references without cycles.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdApiProvisioningTests.cs Tests validation, stable IDs, consent separation, and publishing.
src/​Aspire.Hosting.Azure.EntraId/​README.md Documents API exposure, consent, and scope retirement.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​MicrosoftGraphServicePrincipal.cs Adds existing service-principal lookup by application ID.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​MicrosoftGraphPermissionGrants.cs Models delegated grants and app-role assignments.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​MicrosoftGraphApplication.cs Adds Graph application permission properties.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​MicrosoftGraphApiConstructs.cs Models scopes, pre-authorization, and required access.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​EntraIdBicepConstants.cs Adds output and grant resource constants.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​EntraIdApiProvisioning.cs Generates API configuration and consent resources.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdValidation.cs Validates application ID URIs and scope names.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdResourceExtensions.cs Adds fluent configuration APIs and dependency validation.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdApplicationResource.cs Stores API configuration and derives scope IDs and URIs.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdApiAccess.cs Tracks declarations, consent, and pre-authorized clients.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdApi.cs Defines API catalogs, permission types, and scope options.

Review effort: Balanced

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Code review: 5 findings, none duplicating the existing threads. Categories: 2 correctness, 1 validation, 1 documentation, 1 test coverage.

Add application ID URI, exposed scopes, pre-authorization, required resource
access, and opt-in admin consent (delegated grants and app role assignments)
to Entra ID application registrations, including first-party APIs such as
Microsoft Graph.

Fixes #21070

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

This comment has been minimized.

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.

…ation

Referencing a client registration now injects one Microsoft.Identity.Web
DownstreamApis entry per API it declared permissions to. Entries for APIs
modeled in the AppHost are named after the resources that reference them, like
service discovery; first-party APIs use their display name. Delegated scopes
are full scope URIs, and application permissions are a separate {name}AppOnly
entry using .default. WithReference accepts downstreamApisConfigKey to change
the root key. Referencing a registration that exposes scopes also sets
AzureAd__Scopes.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@eerhardt
Eric Erhardt (eerhardt) marked this pull request as ready for review October 26, 2026 23:30
@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 26, 2026 23:31

@eerhardt Eric Erhardt (eerhardt) left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Code review of the latest commit and the full PR: 4 new findings (2 correctness, 1 design/validation, 1 test coverage). Existing threads were not duplicated.

@github-actions

This comment has been minimized.

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.

…e URIs

- EntraIdApi.FromApplicationId takes the API's application ID URI instead of
  assuming api://{appId}.
- An existing API registration without an application ID URI is rejected, not
  guessed.
- Two API registrations referenced by the same resource that a client declares
  permissions to are rejected before startup by a validate-{name}-api-access
  pipeline step, with an actionable message.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
- Validate permission and scope names against Graph's value rules (no spaces,
  no leading period, allowed characters), so a name can't smuggle a second
  permission into a consent grant.
- Reject an explicit permission ID that belongs to a different catalog name.
- WithApplicationIdUri() overrides an earlier custom URI; reject file URIs
  consistently across platforms.
- Limit the OpenID scope exclusion in DownstreamApis to Microsoft Graph.
- Send an API's scope and pre-authorization lists in full, even when empty,
  once it is declared, so the last scope or pre-authorized client can be removed.
- Correct the admin-consent role guidance for Microsoft Graph application
  permissions and the docs for the exceptions that are thrown.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

This comment has been minimized.

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.

Parameters and resources written for API permissions were named from display
text, so orders-api and ordersApi, or two custom APIs with one display name,
produced the same Bicep symbol. A repeated parameter binding silently kept
only the last API. Names are now allocated per template from the API's
identity (resource name or application ID), made unique against everything
else in the template, and always start with a letter.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

This comment has been minimized.

Graph can reject api://{clientId} on an application that it created seconds earlier, the same replication lag as the service principal and federated credential errors that the deployment helper already retries.

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

Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deployment tests starting on PR #21278...

This will deploy to real Azure infrastructure. Results will be posted here when complete.

View workflow run

@github-actions

This comment has been minimized.

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.

🟡 Changes recommended

Fresh registrations can fail their first deployment because the provisioning path lacks bounded, cancellation-aware recovery for transient application ID replication delays.

1 open issue
1 resolved since last review

Review effort: Balanced

Eric Erhardt (eerhardt) added a commit that referenced this pull request Oct 28, 2026
## Description

Adds `EntraIdAppRole` and `WithAppRole(EntraIdAppRole)` to declare
application roles (for example `User` and `Admin`) on Entra
registrations created by Aspire. Roles are written to the application's
`appRoles` in the generated Graph Bicep.

- Role IDs are derived from the resource name and role value (or
supplied with `id`), so they stay stable across deployments. The tenant
resource suffix is not part of the ID.
- `AllowedMemberTypes` are open-ended strings passed through to Graph
(default `["User"]`).
- Existing registrations are never modified: `WithAppRole` throws for
them.
- `AppRoles` on the resource is a read-only list; roles are added only
through `WithAppRole`.

**Removal behavior** (verified against a real tenant using Bicep
generated from this code):
- Dropping a role that is still enabled fails with
`CannotDeleteOrUpdateEnabledEntitlement`, and the directory is
unchanged.
- Deploying the role with `isEnabled: false` and then dropping it
succeeds.
- `appRoles` is sent only when the application declares at least one
role, matching the restraint of the scopes work in #21278. To retire the
last role, leave it declared with `isEnabled: false`. This is documented
in the README.

**Not included** (follow-ups): role assignments
(`Microsoft.Graph/appRoleAssignedTo`), consent, and real-token
`roles`/audience verification, which depends on assignments. This will
conflict with #21278 in `MicrosoftGraphApplication` and the README, so
whichever lands second needs a rebase.

Part of #21083.

## Checklist

- Is this feature complete?
  - [ ] Yes. Ready to ship.
  - [x] No. Follow-up changes expected.
- Are you including unit tests for the changes and scenario tests if
relevant?
  - [x] Yes
  - [ ] No
- Did you add public API?
  - [x] Yes
    - If yes, did you have an API Review for it?
      - [ ] Yes
      - [x] No
- Did you add `<remarks />` and `<code />` elements on your triple slash
comments?
      - [x] Yes
      - [ ] No
  - [ ] No
- Does the change make any security assumptions or guarantees?
  - [ ] Yes
    - If yes, have you done a threat model and had a security review?
      - [ ] Yes
      - [ ] No
  - [x] No

Fixes: #21083

---------

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: cfaafd3e-55f3-48d0-a51e-8da68dcbeb54
…entifier-uris-scopes

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

Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

This comment has been minimized.

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.

🟡 Changes recommended

The README can leave scope authorization unenforced, disabled scopes can still be emitted, and Graph configuration uses incorrect endpoints for sovereign clouds.

3 open issues
1 resolved since last review

Review effort: Balanced

Re-validate scope references when the model is complete, so a scope disabled after WithApiPermissions or WithPreAuthorizedApplication fails with a clear error. Add an optional baseUrl to EntraIdApi.FromApplicationId so sovereign-cloud APIs can be defined. Show RequiredScope with its configuration key and Authorize in the README.

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

Copilot-Session: 1a24c9b5-39fc-4b24-ac51-9b12595eaac5
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

2 / 100 PR test projects · 1 PR job, from 39 changed files.

Selected PR test projects (2 / 100)

Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

Selected PR jobs (1)

typescript-api-compat


How these were chosen — grouped by what changed

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdApi.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdApiAccess.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdApplicationResource.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdReferenceAnnotation.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdResourceExtensions.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/EntraIdValidation.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/EntraIdApiProvisioning.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/EntraIdBicepConstants.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/EntraIdSymbolNames.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphApiConstructs.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphApplication.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphPermissionGrants.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.EntraId/Provisioning/MicrosoftGraphServicePrincipal.cs (changed source)
→ 2 directly: Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Aspire.Hosting.Azure.EntraId.Tests.csproj (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdApiProvisioningTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdResourceBuilderTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdStarterScenarioPublishTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.ExistingRegistrationsDoNotCreateDependencyCycles.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#00.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#01.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.Publish_WiresApiOutputsIntoTheCallerModuleAndPreAuthorizedClientsIntoTheApiModule#02.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.Symbols_ApisWhoseNamesDifferOnlyByHyphenOrCaseKeepSeparateParameters.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.Symbols_CustomApisWithTheSameDisplayNameKeepSeparateSymbols.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithAdminConsent_GrantsDelegatedScopesToAllUsersAndAppRolesToTheServicePrincipal.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithApiPermissions_AcceptsPermissionsOutsideTheCatalogById.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithApiPermissions_Declares_ButDoesNotGrantOrConsent.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithApiPermissions_ExistingApi_UsesConfiguredScopeIdsAndClientId.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithApplicationIdUri_Custom_IsWrittenToTheApplicationWithoutASecondDeclaration.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithApplicationIdUri_Default_ExposesApiWithoutScopes.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithPreAuthorizedApplication_WritesClientIdsAndScopeIds.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdApiProvisioningTests.WithScope_UsesDefaultApplicationIdUriSetBySecondDeclaration.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdStarterScenarioPublishTests.Publish_StarterWithEntra_ConfiguresTheApiAndTheWebFrontEnd#00.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdStarterScenarioPublishTests.Publish_StarterWithEntra_ConfiguresTheApiAndTheWebFrontEnd#01.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdStarterScenarioPublishTests.Publish_StarterWithEntra_ConfiguresTheApiAndTheWebFrontEnd#02.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdStarterScenarioPublishTests.Publish_StarterWithEntra_ConfiguresTheApiAndTheWebFrontEnd#03.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/Snapshots/EntraIdStarterScenarioPublishTests.Publish_StarterWithEntra_ConfiguresTheApiAndTheWebFrontEnd#04.verified.bicep (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

Job reasons

Job Triggered by
typescript-api-compat affected project Aspire.Hosting.Azure.EntraId

Selection computed for commit 52aa738.

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.

🔵 Needs a closer look

Human assessment is needed to evaluate how application ID matching affects API definitions with different resource URIs or base URLs.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

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

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provision Entra API identifier URIs, scopes, and caller permission relationships

3 participants