Skip to content

[release/17.0] Address API review feedback from #22185 - #22217

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
eerhardt-api-review-fixes-17-0
Nov 13, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
release/17.0from
eerhardt-api-review-fixes-17-0

Conversation

@eerhardt

Copy link
Copy Markdown
Member

Description

Addresses API review feedback on the 17.0 API surface from #22185, so the new APIs ship with their final shape in 17.0.

Changes:

  • Legacy AddProject overloads (r4552196643): the [Obsolete] messages are clearer and point users to the replacement API.

  • Parameter optionality (r4552196666):

    • WithOptional/WithRequired are replaced with parameterless AsOptional()/AsRequired() methods.
    • The ParameterResource.Required setter is now internal.
  • Entra ID (r4552196738): AddExistingEntraApplication is renamed to AddExistingEntraIdApplication.

  • OpenAI client builders (r4552196760): the OpenAI and Azure OpenAI client builders take disableMetrics as a constructor parameter.

  • Diagnostic IDs (r4552196701): ASPIREAZURE003 is meant for networking APIs. Four non-networking experimental Azure APIs that used it now have their own IDs:

    • AzureResourceInfrastructure.BicepExtensions uses ASPIREAZURE004.
    • IBicepOutputReferenceProvider uses ASPIREAZURE005.
    • ManagedIdentityRequiredAnnotation uses ASPIREAZURE006.
    • TenantScopedResourceAnnotation uses ASPIREAZURE007.

    Pages for the new IDs still need to be added to aspire.dev.

Callers, tests, snapshots, READMEs, the playground and the polyglot apphosts are updated to match. The generated API files are not edited.

Not addressed:

Validation

These targeted test runs passed (dotnet test --project <proj> --no-launch-profile -- --filter-class ... --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"):

  • Aspire.Hosting.Azure.Tests: the affected classes passed 237/237.
  • Aspire.Hosting.Azure.EntraId.Tests: 694/694 passed.
  • Parameter, OpenAI and other affected test classes: passed, with snapshots updated.

These were not validated locally:

  • MSBuildTests: some fail locally and were skipped.
  • Java polyglot apphosts: javac is unavailable locally, so they were not compiled.

Fixes # (issue)

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

- Clarify Obsolete messages on legacy AddProject overloads.
- Rename ParameterResource WithOptional/WithRequired to AsOptional/AsRequired and make Required setter internal.
- Rename AddExistingEntraApplication to AddExistingEntraIdApplication.
- Make disableMetrics a constructor parameter on OpenAI client builders.
- Update tests, codegen snapshots, polyglot apphosts, playground, and README.

Co-authored-by: Copilot App <[email protected]>
Give BicepExtensions, IBicepOutputReferenceProvider, ManagedIdentityRequiredAnnotation, and TenantScopedResourceAnnotation their own diagnostic IDs (ASPIREAZURE004-007) since ASPIREAZURE003 is for networking APIs.

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

Or

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

@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Nov 12, 2026
@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.

🟢 Approval recommended

No active review issues are reported for the Aspire 17.0 API alignment changes.

No open issues 🎉

What changed in this PR

Finalizes Aspire 17.0 API shapes following #22185, aligning hosting APIs, OpenAI client builders, and polyglot consumers before release.

Changes:

  • Introduces AsOptional()/AsRequired(), restricts the Required setter, renames the existing Entra ID factory, and clarifies legacy project migration messages.
  • Moves disableMetrics into OpenAI builder constructors and assigns separate diagnostic IDs to four non-networking Azure APIs.
  • Updates callers, tests, generated snapshots, documentation, and examples to match.
File Description
tests/​PolyglotAppHosts/​Aspire.Hosting/​TypeScript/​apphost.mts Uses renamed parameter optionality methods.
tests/​PolyglotAppHosts/​Aspire.Hosting/​Python/​apphost.py Updates optionality methods and constructor options.
tests/​PolyglotAppHosts/​Aspire.Hosting/​Java/​AppHost.java Uses renamed parameter optionality methods.
tests/​PolyglotAppHosts/​Aspire.Hosting/​Go/​apphost.go Uses renamed parameter optionality methods.
tests/​PolyglotAppHosts/​Aspire.Hosting.Azure.EntraId/​TypeScript/​apphost.mts Uses renamed Entra ID factory.
tests/​PolyglotAppHosts/​Aspire.Hosting.Azure.EntraId/​Rust/​apphost.rs Uses renamed Entra ID factory.
tests/​PolyglotAppHosts/​Aspire.Hosting.Azure.EntraId/​Java/​AppHost.java Uses renamed Entra ID factory.
tests/​PolyglotAppHosts/​Aspire.Hosting.Azure.EntraId/​Go/​apphost.go Uses renamed Entra ID factory.
tests/​Aspire.OpenAI.Tests/​OpenAIPublicApiTests.cs Supplies the new constructor argument.
tests/​Aspire.Hosting.Tests/​ProjectResourceTests.cs Checks clearer deprecation messages.
tests/​Aspire.Hosting.Tests/​MSBuildTests.cs Updates expected compiler diagnostic text.
tests/​Aspire.Hosting.Tests/​ExecutionConfigurationGathererTests.cs Uses AsOptional() in environment coverage.
tests/​Aspire.Hosting.Tests/​AddParameterTests.cs Updates optionality behavior tests.
tests/​Aspire.Hosting.CodeGeneration.TypeScript.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.ts Reflects optionality APIs and deprecation messages.
tests/​Aspire.Hosting.CodeGeneration.TypeScript.Tests/​Snapshots/​AtsTypeScriptCodeGeneratorTests.Generate_LegacyAddProject_RetainsDeprecatedBuilderMethod.verified.ts Updates generated deprecation guidance.
tests/​Aspire.Hosting.CodeGeneration.TypeScript.Tests/​AtsTypeScriptCodeGeneratorTests.cs Updates deprecation metadata assertions.
tests/​Aspire.Hosting.CodeGeneration.Rust.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.rs Reflects renamed parameter methods.
tests/​Aspire.Hosting.CodeGeneration.Python.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.py Reflects optionality methods and options.
tests/​Aspire.Hosting.CodeGeneration.Python.Tests/​AtsPythonCodeGeneratorTests.cs Verifies updated optionality option dispatch.
tests/​Aspire.Hosting.CodeGeneration.Java.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.java Reflects parameterless optionality methods.
tests/​Aspire.Hosting.CodeGeneration.Go.Tests/​Snapshots/​TwoPassScanningGeneratedAspire.verified.go Reflects optionality methods; removes obsolete options.
tests/​Aspire.Hosting.Azure.Tests/​TestBicepOutputReferenceProvider.cs Updates output-provider diagnostic suppression.
tests/​Aspire.Hosting.Azure.Tests/​ProvisioningContextProviderTests.cs Updates tenant-scope diagnostic suppression.
tests/​Aspire.Hosting.Azure.Tests/​AzureUserAssignedIdentityTests.cs Updates managed-identity diagnostic suppression.
tests/​Aspire.Hosting.Azure.Tests/​AzureInfrastructureExtensionsTests.cs Updates Bicep-extension diagnostic suppression.
tests/​Aspire.Hosting.Azure.Tests/​AzureEnvironmentResourceTests.cs Updates output-provider diagnostic suppression.
tests/​Aspire.Hosting.Azure.Tests/​AzureEnvironmentResourceExtensionsTests.cs Updates tenant-scope diagnostic suppression.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​MicrosoftIdentityWebConfigurationTests.cs Uses renamed factory in configuration tests.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​LocalDeveloperCertificateTests.cs Updates existing-registration factory call.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdResourceBuilderTests.cs Renames factory calls and related tests.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdProvisioningTests.cs Updates factory, messages, and diagnostic suppressions.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdPolyglotTests.cs Uses renamed export adapter.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdKeyVaultCertificateTests.cs Uses renamed factory in certificate tests.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdInitializationTests.cs Updates factory calls and expected guidance.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdAppRoleAssignmentTests.cs Updates factory and managed-identity suppression.
tests/​Aspire.Hosting.Azure.EntraId.Tests/​EntraIdApiProvisioningTests.cs Uses renamed factory throughout provisioning tests.
src/​Components/​Aspire.OpenAI/​AspireOpenAIExtensions.cs Passes metrics configuration through construction.
src/​Components/​Aspire.OpenAI/​AspireOpenAIClientBuilder.cs Makes metrics configuration constructor-supplied.
src/​Components/​Aspire.Azure.AI.Extensions.OpenAI/​AspireAzureProjectOpenAIExtensions.cs Passes metrics configuration to project builders.
src/​Components/​Aspire.Azure.AI.Extensions.OpenAI/​AspireAzureProjectOpenAIClientBuilder.cs Forwards the new metrics constructor argument.
src/​Components/​Aspire.Azure.AI.Extensions.OpenAI/​AspireAzureOpenAIExtensions.cs Passes metrics configuration to Azure builders.
src/​Components/​Aspire.Azure.AI.Extensions.OpenAI/​AspireAzureOpenAIClientBuilder.cs Forwards the new metrics constructor argument.
src/​Aspire.Hosting/​ProjectResourceBuilderExtensions.cs Clarifies replacement API in deprecation messages.
src/​Aspire.Hosting/​ParameterResourceBuilderExtensions.cs Introduces parameterless optionality methods.
src/​Aspire.Hosting/​ApplicationModel/​ParameterResource.cs Restricts setter and documents builder alternatives.
src/​Aspire.Hosting.Azure/​TenantScopedResourceAnnotation.cs Assigns diagnostic ID ASPIREAZURE007.
src/​Aspire.Hosting.Azure/​ManagedIdentityRequiredAnnotation.cs Assigns diagnostic ID ASPIREAZURE006.
src/​Aspire.Hosting.Azure/​IBicepOutputReferenceProvider.cs Assigns diagnostic ID ASPIREAZURE005.
src/​Aspire.Hosting.Azure/​AzureResourcePreparer.cs Separates experimental API diagnostic suppressions.
src/​Aspire.Hosting.Azure/​AzureResourceInfrastructure.cs Assigns Bicep extensions ASPIREAZURE004.
src/​Aspire.Hosting.Azure/​AzurePublishingContext.cs Updates output-provider diagnostic suppression.
src/​Aspire.Hosting.Azure/​AzureProvisioningResource.cs Updates Bicep-extension diagnostic suppression.
src/​Aspire.Hosting.Azure/​AzureProvisioningController.cs Updates tenant-scope diagnostic suppression.
src/​Aspire.Hosting.Azure.EntraId/​README.md Updates factory references and examples.
src/​Aspire.Hosting.Azure.EntraId/​Provisioning/​EntraIdApiProvisioning.cs Names the replacement factory in errors.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdResourceExtensions.cs Renames factory and export; updates guidance.
src/​Aspire.Hosting.Azure.EntraId/​EntraIdApplicationResource.cs Updates diagnostics, documentation, and error guidance.
src/​Aspire.Hosting.Azure.AppService/​AzureAppServiceWebsiteContext.cs Updates output-provider diagnostic suppression.
src/​Aspire.Hosting.Azure.AppContainers/​BaseContainerAppContext.cs Updates output-provider diagnostic suppression.
playground/​EntraId/​EntraId.AppHost/​AppHost.cs Uses renamed Entra ID factory.

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.

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

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

@eerhardt Eric Erhardt (eerhardt) added the Servicing-consider Issue for next servicing release review label Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

54 / 101 PR test projects · 4 PR jobs, from 60 changed files.

Selected PR test projects (54 / 101)

Aspire.Azure.AI.Extensions.OpenAI.Tests, Aspire.Cli.EndToEnd.Tests, Aspire.Hosting.Analyzers.Tests, Aspire.Hosting.Azure.EntraId.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Kusto.Tests, Aspire.Hosting.Azure.Provisioning.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Browsers.Tests, Aspire.Hosting.CodeGeneration.Go.Tests, Aspire.Hosting.CodeGeneration.Java.Tests, Aspire.Hosting.CodeGeneration.Python.Tests, Aspire.Hosting.CodeGeneration.Rust.Tests, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Aspire.Hosting.Containers.Tests, Aspire.Hosting.DevTunnels.Tests, Aspire.Hosting.Docker.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.EntityFrameworkCore.Tests, Aspire.Hosting.Foundry.Tests, Aspire.Hosting.Garnet.Tests, Aspire.Hosting.Go.Tests, Aspire.Hosting.Java.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Kafka.Tests, Aspire.Hosting.Keycloak.Tests, Aspire.Hosting.Kubernetes.Tests, Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests, Aspire.Hosting.MongoDB.Tests, Aspire.Hosting.MySql.Tests, Aspire.Hosting.Nats.Tests, Aspire.Hosting.OpenAI.Tests, Aspire.Hosting.Oracle.Tests, Aspire.Hosting.Orleans.Tests, Aspire.Hosting.PostgreSQL.Tests, Aspire.Hosting.Python.Tests, Aspire.Hosting.Qdrant.Tests, Aspire.Hosting.RabbitMQ.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Redis.Tests, Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests, Aspire.Hosting.Seq.Tests, Aspire.Hosting.SqlServer.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Hosting.Valkey.Tests, Aspire.Hosting.Yarp.Tests, Aspire.OpenAI.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests

Selected PR jobs (4)

cli-starter-validation, extension-e2e, polyglot, typescript-api-compat


How these were chosen — grouped by what changed

⚠️ 34 of the 54 selected test projects come from a single change — src/Aspire.Hosting/ApplicationModel/ParameterResource.cs.

🔧 src/Aspire.Hosting/ApplicationModel/ParameterResource.cs (changed source)
→ 34 via the project graph

show 34

Aspire.Hosting.Analyzers.Tests (2 hops), Aspire.Hosting.Browsers.Tests (2 hops), Aspire.Hosting.Containers.Tests (2 hops), Aspire.Hosting.DevTunnels.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.EntityFrameworkCore.Tests (2 hops), Aspire.Hosting.Garnet.Tests (2 hops), Aspire.Hosting.Go.Tests (2 hops), Aspire.Hosting.Java.Tests (2 hops), Aspire.Hosting.JavaScript.Tests (2 hops), Aspire.Hosting.Kafka.Tests (2 hops), Aspire.Hosting.Keycloak.Tests (2 hops), Aspire.Hosting.Kubernetes.Tests (2 hops), Aspire.Hosting.Maui.Tests, Aspire.Hosting.Milvus.Tests (2 hops), Aspire.Hosting.MongoDB.Tests (2 hops), Aspire.Hosting.MySql.Tests (2 hops), Aspire.Hosting.Nats.Tests (2 hops), Aspire.Hosting.OpenAI.Tests (2 hops), Aspire.Hosting.Oracle.Tests (2 hops), Aspire.Hosting.Orleans.Tests (2 hops), Aspire.Hosting.PostgreSQL.Tests (2 hops), Aspire.Hosting.Python.Tests (2 hops), Aspire.Hosting.Qdrant.Tests (2 hops), Aspire.Hosting.RabbitMQ.Tests (2 hops), Aspire.Hosting.Redis.Tests (2 hops), Aspire.Hosting.RemoteHost.Tests, Aspire.Hosting.Rust.Tests (2 hops), Aspire.Hosting.Seq.Tests (2 hops), Aspire.Hosting.SqlServer.Tests (2 hops), Aspire.Hosting.Testing.Tests (2 hops), Aspire.Hosting.Valkey.Tests (2 hops), Aspire.Hosting.Yarp.Tests (2 hops), Aspire.Playground.Tests

🔧 src/Aspire.Hosting.Azure/AzureProvisioningController.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 4 via the project graph: Aspire.Hosting.Azure.Kusto.Tests (2 hops), Aspire.Hosting.Azure.Provisioning.Tests (2 hops), Aspire.Hosting.Docker.Tests (2 hops), Aspire.Hosting.Foundry.Tests (2 hops)

🧪 tests/Aspire.Hosting.Tests/AddParameterTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Tests
→ 3 via the project graph: Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.Radius.Tests

📦 affected project Aspire.Hosting.Dotnet
→ 2 tests: Aspire.Cli.EndToEnd.Tests, Aspire.Templates.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/EntraIdResourceExtensions.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

🧪 tests/Aspire.Hosting.Azure.Tests/AzureEnvironmentResourceExtensionsTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.Tests
→ 1 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests

📦 affected project Aspire.Hosting
→ 1 test: Aspire.Cli.EndToEnd.Tests

📄 playground/EntraId/EntraId.AppHost/AppHost.cs (changed)
→ 1 directly: Aspire.Playground.Tests

🔧 src/Aspire.Hosting.Azure.AppContainers/BaseContainerAppContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure.AppService/AzureAppServiceWebsiteContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/AzureProvisioningResource.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/AzurePublishingContext.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/AzureResourceInfrastructure.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/AzureResourcePreparer.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/IBicepOutputReferenceProvider.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/ManagedIdentityRequiredAnnotation.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Aspire.Hosting.Azure/TenantScopedResourceAnnotation.cs (changed source)
→ 1 directly: Aspire.Hosting.Azure.Tests

🔧 src/Components/Aspire.Azure.AI.Extensions.OpenAI/AspireAzureOpenAIClientBuilder.cs (changed source)
→ 1 directly: Aspire.Azure.AI.Extensions.OpenAI.Tests

🔧 src/Components/Aspire.Azure.AI.Extensions.OpenAI/AspireAzureOpenAIExtensions.cs (changed source)
→ 1 directly: Aspire.Azure.AI.Extensions.OpenAI.Tests

🔧 src/Components/Aspire.Azure.AI.Extensions.OpenAI/AspireAzureProjectOpenAIClientBuilder.cs (changed source)
→ 1 directly: Aspire.Azure.AI.Extensions.OpenAI.Tests

🔧 src/Components/Aspire.Azure.AI.Extensions.OpenAI/AspireAzureProjectOpenAIExtensions.cs (changed source)
→ 1 directly: Aspire.Azure.AI.Extensions.OpenAI.Tests

🔧 src/Components/Aspire.OpenAI/AspireOpenAIClientBuilder.cs (changed source)
→ 1 directly: Aspire.OpenAI.Tests

🔧 src/Components/Aspire.OpenAI/AspireOpenAIExtensions.cs (changed source)
→ 1 directly: Aspire.OpenAI.Tests

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

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

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

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

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

🧪 tests/Aspire.Hosting.Azure.EntraId.Tests/EntraIdProvisioningTests.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/LocalDeveloperCertificateTests.cs (changed test)
→ 1 directly: Aspire.Hosting.Azure.EntraId.Tests

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

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

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

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

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

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

🧪 tests/Aspire.Hosting.CodeGeneration.Go.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.go (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Go.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Java.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.java (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Java.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/AtsPythonCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.py (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Python.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.Rust.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.rs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.Rust.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/AtsTypeScriptCodeGeneratorTests.cs (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/AtsTypeScriptCodeGeneratorTests.Generate_LegacyAddProject_RetainsDeprecatedBuilderMethod.verified.ts (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

🧪 tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/TwoPassScanningGeneratedAspire.verified.ts (changed test)
→ 1 directly: Aspire.Hosting.CodeGeneration.TypeScript.Tests

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

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

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

🧪 tests/Aspire.OpenAI.Tests/OpenAIPublicApiTests.cs (changed test)
→ 1 directly: Aspire.OpenAI.Tests

Job reasons

Job Triggered by
cli-starter-validation affected project Aspire.Hosting.Redis
extension-e2e • src/Aspire.Hosting/ApplicationModel/ParameterResource.cs, src/Aspire.Hosting/ParameterResourceBuilderExtensions.cs, src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs
• affected project Aspire.Hosting
polyglot • tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Go/apphost.go, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Java/AppHost.java, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Python/apphost.py, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/Rust/apphost.rs, tests/PolyglotAppHosts/Aspire.Hosting.Azure.EntraId/TypeScript/apphost.mts, tests/PolyglotAppHosts/Aspire.Hosting/Go/apphost.go, tests/PolyglotAppHosts/Aspire.Hosting/Java/AppHost.java, tests/PolyglotAppHosts/Aspire.Hosting/Python/apphost.py, tests/PolyglotAppHosts/Aspire.Hosting/TypeScript/apphost.mts
• affected project Aspire.Hosting.Azure.AppContainers
• affected project Aspire.Hosting.Azure.Provisioning.AppContainers
typescript-api-compat affected project Aspire.Hosting.Azure.AppContainers

Selection computed for commit 8d4ff77.

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.

🟢 Approval recommended

No active review issues block the API-alignment changes.

No open issues 🎉

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.

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

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

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 22abe75 into release/17.0 Nov 13, 2026
1760 of 1780 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 13, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

✅ No documentation update needed.

excluded → base_branch_is_release, title_release_prefix. The PR is prefixed [release/17.0] and targets release/17.0, so signals.json marks it out of scope (excluded: true). Triggered signals (not evaluated further): experimental_attribute_added, integration_readme_changed, new_public_type, obsolete_attribute_added, pr_body_has_cli_flag_mention, pr_body_has_deprecation_marker. Note: the PR body says pages for the new diagnostic IDs ASPIREAZURE004–007 still need to be added to aspire.dev, and that AddExistingEntraApplication was renamed to AddExistingEntraIdApplication; a follow-up docs change should cover these.

James Newton-King (JamesNK) added a commit to microsoft/aspire.dev that referenced this pull request Nov 16, 2026
microsoft/aspire#22217 replaced WithOptional/WithRequired(bool) with AsOptional/AsRequired. Update samples and prose, use aspire do publish-manifest, and add the new ParameterResource members to the twoslash type shims so TypeScript samples type-check.

Co-authored-by: Copilot <[email protected]>
James Newton-King (JamesNK) added a commit to microsoft/aspire.dev that referenced this pull request Nov 16, 2026
microsoft/aspire#22217 replaced WithOptional/WithRequired(bool) with AsOptional/AsRequired. Update samples and prose, use aspire do publish-manifest, and add the new ParameterResource members to the twoslash type shims so TypeScript samples type-check.

Co-authored-by: Copilot <[email protected]>
Eric Erhardt (eerhardt) added a commit to microsoft/aspire.dev that referenced this pull request Nov 16, 2026
## Summary

Adds diagnostic pages for the four experimental IDs introduced in
microsoft/aspire#22217, which moved non-networking Azure APIs off
`ASPIREAZURE003`:

- `ASPIREAZURE004`: `AzureResourceInfrastructure.BicepExtensions`
- `ASPIREAZURE005`: `IBicepOutputReferenceProvider`
- `ASPIREAZURE006`: `ManagedIdentityRequiredAnnotation`
- `ASPIREAZURE007`: `TenantScopedResourceAnnotation`

Each page follows the existing 17.0 diagnostic page format and covers
the default compiler message, an explanation, a C# example, and
suppression options. The APIs aren't exported to TypeScript AppHosts, so
the pages have no TypeScript tabs. Also adds the IDs to the diagnostics
overview table and the reference sidebar.

## Third-party links and affiliations

None

## Validation

- Measured `seoTitle` and `description` lengths manually. All fall
within the 30-65 / 80-200 ranges that
`tests/unit/seo-lengths.vitest.test.ts` enforces. The vitest suite
wasn't run locally because dependencies aren't installed in this
worktree, so CI covers it.
- Checked API names and semantics against the upstream source in
microsoft/aspire#22217.
- Didn't compile the C# examples. Reviewers should confirm the 006 and
007 snippets.

Co-authored-by: Copilot App <[email protected]>
Eric Erhardt (eerhardt) added a commit to Azure/aspire-templates that referenced this pull request Nov 20, 2026
## Summary

Adds a new `aspire-entra-starter` template. It is the Aspire starter (a
Blazor frontend and an ASP.NET Core API on Azure Container Apps) secured
end to end with **Microsoft Entra ID**: users sign in to the frontend,
and the frontend calls the API with a JWT access token. It is a
templatized version of
[eerhardt/aspire-entra@eerhardt/AddEntra](https://github.com/eerhardt/aspire-entra/tree/eerhardt/AddEntra).

```
aspire new --template-repository https://github.com/Azure/aspire-templates --template-path templates/aspire-entra-starter
```

## What the template does

**AppHost** (`Aspire.Hosting.Azure.EntraId`)
- `apiservice-entra`: an app registration for the API that exposes an
`access_as_user` scope.
- `webfrontend-entra`: an app registration for the web frontend:
  - API permission to `access_as_user`.
- Redirect URIs (`/signin-oidc`, `/signout-callback-oidc`) bound to the
frontend's `https` endpoint.
  - `RunWithLocalDeveloperCertificateCredential()` for local dev.
  - `PublishWithFederatedManagedIdentityCredential()` for deployment.
- Each registration is referenced by its project. Aspire injects the
`AzureAd__*` and `DownstreamApis__apiservice__Scopes__*` configuration.

**API** (`Microsoft.Identity.Web` 4.18)
- `AddMicrosoftIdentityWebApi` JWT bearer auth, with `/weatherforecast`
requiring authorization.

**Web frontend** (`Microsoft.Identity.Web` 4.18)
- OIDC sign-in via `AddMicrosoftIdentityWebApp`, plus token acquisition
with an in-memory token cache.
- The typed `HttpClient` for the API uses
`AddMicrosoftIdentityMessageHandler` to attach access tokens.
- `/authentication/login` and `/authentication/logout` endpoints
(`MapLoginAndLogout`).
- `AuthorizeRouteView` and cascading auth state.
- A new `UserInfo` component in the layout shows sign-in status and
sign-in/out links.
- The Weather page is `[Authorize]`. It uses
`BlazorAuthenticationChallengeHandler` to handle consent and step-up
challenges.

## Notable differences from `aspire-azure-starter`
- **Targets Aspire 17:**
- `aspirecli.host.json` resolves the Aspire packages from
`[17.0.0-0,18.0.0-0)`.
- `Aspire.Hosting.Azure.EntraId` allows prereleases, because it has no
stable 17.x release yet. Its `dotnet new` default is
`17.0.0-preview.1.26567.5`; the other packages default to `17.0.0`.
  - New `HostingAzureEntraIdVersion` symbol.
- **No `Aspire.AppHost.Sdk`:** it is obsolete in 17.0 (ASPIRE012). The
AppHost uses `Microsoft.NET.Sdk` with explicit package references and
calls `AddDotnetProject`.
- **Removed:**
- The Redis cache option, and output caching, since the only cached page
now requires sign-in.
  - The test project option.
- `NoHttps` / `HasHttpsProfile`, because Entra redirect URIs require the
`https` endpoint.
  - `LICENSE` and `nuget.config` from the template output.
- **`.slnx`** solution instead of `.sln`.
- New identity, groupIdentity and GUIDs, and an `Identity`
classification. All 14 localization files are updated.
- Root `README.md` lists the new template and adds a prerequisites
section: Azure subscription and Entra permissions, `az login`, the
dashboard's Azure prompts, tenant-scoped registrations with
`Azure:TenantResourceSuffix`, and the https requirement.

## Notes / caveats
- App registrations are provisioned **even in run mode**, so running the
AppHost requires an Azure subscription and permission to create Entra
app registrations.
- The `Aspire.Hosting.Azure.EntraId` API is still preview and may change
(microsoft/aspire#22217).

## Validation
- `dotnet new` with nuget.org only: the `net10.0` and `net11.0` variants
built with 0 errors.
- `aspire new --template-path` with Aspire CLI 17.0.0: resolved `17.0.0`
for the Aspire packages and `17.0.0-preview.1.26567.5` for EntraId, and
the AppHost built.

---------

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

area-integrations Issues pertaining to Aspire Integrations packages Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants