Skip to content

Add section about using InfrastructureResolver classes to the Customize Azure resources article #4229

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

Conversation

alistairmatthews
Copy link
Collaborator

@alistairmatthews alistairmatthews commented Aug 6, 2025

Summary

Added a section to the Customize Azure resources article describing how to use an overridden InfrastructureResolver class to alter the Bicep generated for Azure resources. Includes snippets.

Fixes #3857


Internal previews

📄 File 🔗 Preview link
docs/azure/customize-azure-resources.md Customize Azure resources

Copy link
Contributor

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

This PR adds a new section to the "Customize Azure resources" documentation that explains how to use custom InfrastructureResolver classes to modify Azure Bicep generation. The addition provides developers with an alternative approach to customizing Azure resource provisioning beyond the existing methods.

Key changes:

  • Added documentation section explaining InfrastructureResolver usage
  • Created complete code example demonstrating how to override resource properties
  • Provided snippet showing how to register the custom resolver in the AppHost

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/azure/customize-azure-resources.md Added new section documenting InfrastructureResolver customization approach
docs/azure/snippets/customize-azure-with-infrastructure-resolver/AppHost.cs Example code showing custom resolver implementation and registration
docs/azure/snippets/customize-azure-with-infrastructure-resolver/CustomizeAzureWithInfrastructureResolver.csproj Project file for the code example
docs/azure/snippets/customize-azure-with-infrastructure-resolver/customize-azure-with-infrastructure-resolver.sln Solution file for the code example
docs/azure/snippets/customize-azure-with-infrastructure-resolver/appsettings.json Application settings for the example
docs/azure/snippets/customize-azure-with-infrastructure-resolver/appsettings.Development.json Development-specific settings for the example
docs/azure/snippets/customize-azure-with-infrastructure-resolver/Properties/launchSettings.json Launch configuration for the example project

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@IEvangelist IEvangelist enabled auto-merge (squash) August 8, 2025 13:08
@IEvangelist IEvangelist merged commit a1f0544 into dotnet:main Aug 8, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how to use AzureProvisioningOptions and InfrastructureResolvers to modify bicep
2 participants