Skip to content

Refine polyglot exports for Aspire.Hosting.Azure.Sql#15011

Merged
davidfowl merged 2 commits intorelease/13.2from
sebros/polyglot-sql
Mar 7, 2026
Merged

Refine polyglot exports for Aspire.Hosting.Azure.Sql#15011
davidfowl merged 2 commits intorelease/13.2from
sebros/polyglot-sql

Conversation

@sebastienros
Copy link
Copy Markdown
Contributor

@sebastienros sebastienros commented Mar 6, 2026

Description

  • Adds and completes AspireExport / AspireExportIgnore coverage for Aspire.Hosting.Azure.Sql.
  • Normalizes the TypeScript ValidationAppHost to match the repository’s standard validation pattern and updates the regenerated SDK assets.
  • Keeps validation limited to targeted build plus TypeScript compilation, without runtime execution.

sebastienros and others added 2 commits March 5, 2026 20:16
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 6, 2026 17:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

🚀 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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15011

Or

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refines polyglot export surface for Aspire.Hosting.Azure.Sql by annotating resources/members for export/ignore, and updates the TypeScript ValidationAppHost to align with the repo validation pattern and regenerated assets.

Changes:

  • Added AspireExport(ExposeProperties = true) and AspireExportIgnore annotations to Azure SQL resource types/members.
  • Updated Azure SQL extension method export/ignore metadata for polyglot consumption.
  • Normalized the TypeScript ValidationAppHost and updated its .aspire package settings to include Azure Storage.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Aspire.Hosting.Azure.Sql/AzureSqlServerResource.cs Exposes server resource properties for polyglot while explicitly excluding non-polyglot members.
src/Aspire.Hosting.Azure.Sql/AzureSqlExtensions.cs Ignores subnet API for polyglot and exports the admin deployment script storage configuration API.
src/Aspire.Hosting.Azure.Sql/AzureSqlDatabaseResource.cs Exposes database resource properties for polyglot while excluding non-polyglot members.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.Sql/ValidationAppHost/apphost.ts Expands TypeScript coverage to validate exported APIs and properties in a standardized pattern.
playground/polyglot/TypeScript/Aspire.Hosting.Azure.Sql/ValidationAppHost/.aspire/settings.json Adds Azure Storage package dependency to support ValidationAppHost usage.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

🎬 CLI E2E Test Recordings

The following terminal recordings are available for commit e2a4583:

Test Recording
AddPackageInteractiveWhileAppHostRunningDetached ▶️ View Recording
AddPackageWhileAppHostRunningDetached ▶️ View Recording
AgentCommands_AllHelpOutputs_AreCorrect ▶️ View Recording
AgentInitCommand_DefaultSelection_InstallsSkillOnly ▶️ View Recording
AgentInitCommand_MigratesDeprecatedConfig ▶️ View Recording
AspireUpdateRemovesAppHostPackageVersionFromDirectoryPackagesProps ▶️ View Recording
Banner_DisplayedOnFirstRun ▶️ View Recording
Banner_DisplayedWithExplicitFlag ▶️ View Recording
CreateAndDeployToDockerCompose ▶️ View Recording
CreateAndDeployToDockerComposeInteractive ▶️ View Recording
CreateAndPublishToKubernetes ▶️ View Recording
CreateAndRunAspireStarterProject ▶️ View Recording
CreateAndRunAspireStarterProjectWithBundle ▶️ View Recording
CreateAndRunJsReactProject ▶️ View Recording
CreateAndRunPythonReactProject ▶️ View Recording
CreateAndRunTypeScriptStarterProject ▶️ View Recording
CreateEmptyAppHostProject ▶️ View Recording
CreateStartAndStopAspireProject ▶️ View Recording
CreateStartWaitAndStopAspireProject ▶️ View Recording
CreateTypeScriptAppHostWithViteApp ▶️ View Recording
DescribeCommandResolvesReplicaNames ▶️ View Recording
DescribeCommandShowsRunningResources ▶️ View Recording
DetachFormatJsonProducesValidJson ▶️ View Recording
DoctorCommand_DetectsDeprecatedAgentConfig ▶️ View Recording
DoctorCommand_WithSslCertDir_ShowsTrusted ▶️ View Recording
DoctorCommand_WithoutSslCertDir_ShowsPartiallyTrusted ▶️ View Recording
LogsCommandShowsResourceLogs ▶️ View Recording
PsCommandListsRunningAppHost ▶️ View Recording
PsFormatJsonOutputsOnlyJsonToStdout ▶️ View Recording
SecretCrudOnDotNetAppHost ▶️ View Recording
SecretCrudOnTypeScriptAppHost ▶️ View Recording
StagingChannel_ConfigureAndVerifySettings_ThenSwitchChannels ▶️ View Recording
StopAllAppHostsFromAppHostDirectory ▶️ View Recording
StopAllAppHostsFromUnrelatedDirectory ▶️ View Recording
StopNonInteractiveMultipleAppHostsShowsError ▶️ View Recording
StopNonInteractiveSingleAppHost ❌ Upload failed
StopWithNoRunningAppHostExitsSuccessfully ❌ Upload failed
TypeScriptAppHostWithProjectReferenceIntegration ❌ Upload failed

📹 Recordings uploaded automatically from CI run #22775173678

@sebastienros sebastienros requested a review from davidfowl March 6, 2026 18:55
/// peSubnet.AddPrivateEndpoint(sql);
/// </code>
/// </example>
[AspireExportIgnore(Reason = "Azure subnet resources are not currently available to polyglot app hosts.")]
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.

Why?

@davidfowl davidfowl merged commit bcd2458 into release/13.2 Mar 7, 2026
390 checks passed
@davidfowl davidfowl deleted the sebros/polyglot-sql branch March 7, 2026 16:58
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 7, 2026
Copilot AI pushed a commit that referenced this pull request Mar 10, 2026
* Add Azure SQL polyglot export coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Normalize Azure SQL validation apphost

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
radical pushed a commit that referenced this pull request Mar 10, 2026
* Add Azure SQL polyglot export coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Normalize Azure SQL validation apphost

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants