Skip to content

Update Azure.Provisioning API from experimental to stable version #4058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 18, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 15, 2025

Updated documentation to use the stable Azure.Provisioning API instead of the experimental version that was used before .NET Aspire 9.0.

Changes Made

  • Updated docs/troubleshooting/name-is-already-in-use.md to use the new stable Azure.Provisioning API:
    • Replaced old experimental callback signature (resource, construct, store) => with ConfigureInfrastructure(infra =>
    • Replaced store.AssignProperty(p => p.Name, "'noncalculatedname'"); with direct property assignment appConfigStore.Name = "noncalculatedname";
    • Added proper using statement for Azure.Provisioning.AppConfiguration

Before

var appConfig = builder.AddAzureAppConfiguration(
    "appConfig",
    (resource, construct, store) =>
{
    store.AssignProperty(p => p.Name, "'noncalculatedname'");
});

After

using Azure.Provisioning.AppConfiguration;

var appConfig = builder.AddAzureAppConfiguration("appConfig")
    .ConfigureInfrastructure(infra =>
    {
        var appConfigStore = infra.GetProvisionableResources()
                                  .OfType<AppConfigurationStore>()
                                  .Single();
        
        appConfigStore.Name = "noncalculatedname";
    });

Verification

  • ✅ Confirmed no other files contain old Azure.Provisioning experimental patterns
  • ✅ Verified all existing snippet files are already using the correct stable API
  • ✅ Ensured the updated example follows the same pattern as other Azure.Provisioning examples in the docs

The changes align with the Azure.Provisioning version update that moved from experimental/preview packages to stable versions in .NET Aspire 9.0, as documented in the breaking changes.

Fixes #1652.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/troubleshooting/name-is-already-in-use.md docs/troubleshooting/name-is-already-in-use

@Copilot Copilot AI changed the title [WIP] Update Aspire docs for new Azure.Provisioning version in 9.0 Update Azure.Provisioning API from experimental to stable version Jul 15, 2025
@Copilot Copilot AI requested a review from IEvangelist July 15, 2025 17:44
Copilot finished work on behalf of IEvangelist July 15, 2025 17:44
@IEvangelist IEvangelist marked this pull request as ready for review July 15, 2025 20:19
@IEvangelist IEvangelist requested review from tdykstra and adegeo July 15, 2025 20:21
@IEvangelist IEvangelist enabled auto-merge (squash) July 17, 2025 18:49
@IEvangelist IEvangelist merged commit df0067b into main Jul 18, 2025
11 checks passed
@IEvangelist IEvangelist deleted the copilot/fix-1652 branch July 18, 2025 16:07
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.

Update Aspire docs for new Azure.Provisioning version in 9.0
4 participants