Rename NameOutput to NameOutputReference in Aspire.Hosting.Azure.Network#16004
Merged
eerhardt merged 2 commits intomicrosoft:mainfrom Apr 9, 2026
Merged
Rename NameOutput to NameOutputReference in Aspire.Hosting.Azure.Network#16004eerhardt merged 2 commits intomicrosoft:mainfrom
eerhardt merged 2 commits intomicrosoft:mainfrom
Conversation
Rename NameOutput properties to NameOutputReference across all Azure Network resource types to be consistent with the naming convention used by other Azure hosting integrations (e.g. CosmosDB, Redis, Storage, KeyVault, etc.). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16004Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16004" |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aligns the Azure Network hosting integration with the broader Aspire Azure hosting convention by renaming NameOutput properties to NameOutputReference across Azure Network resource types.
Changes:
- Renames
NameOutputtoNameOutputReferenceon Azure Network resource types and updates internal usages accordingly. - Updates
AzurePrivateEndpointExtensionsto reference the renamed property. - Removes
DisablePackageBaselineValidationfrom the Azure Network project.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Aspire.Hosting.Azure.Network/AzureVirtualNetworkResource.cs | Renames NameOutput to NameOutputReference and updates existing-resource wiring. |
| src/Aspire.Hosting.Azure.Network/AzurePublicIPAddressResource.cs | Renames NameOutput to NameOutputReference and updates existing-resource wiring. |
| src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointResource.cs | Renames NameOutput to NameOutputReference and updates existing-resource wiring. |
| src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointExtensions.cs | Updates reference to DNS zone name output property. |
| src/Aspire.Hosting.Azure.Network/AzurePrivateDnsZoneResource.cs | Renames NameOutput to NameOutputReference (internal type). |
| src/Aspire.Hosting.Azure.Network/AzureNetworkSecurityGroupResource.cs | Renames NameOutput to NameOutputReference and updates existing-resource wiring. |
| src/Aspire.Hosting.Azure.Network/AzureNatGatewayResource.cs | Renames NameOutput to NameOutputReference and updates existing-resource wiring. |
| src/Aspire.Hosting.Azure.Network/Aspire.Hosting.Azure.Network.csproj | Re-enables package baseline validation by removing the disabling flag. |
8 tasks
mitchdenny
approved these changes
Apr 9, 2026
eerhardt
added a commit
to eerhardt/aspire
that referenced
this pull request
Apr 10, 2026
The NameOutput property was renamed to NameOutputReference in microsoft#16004, and the baseline version was bumped in microsoft#16008. Add CP0002 suppressions for the removed NameOutput getters on the 5 affected network resources. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Rename
NameOutputproperties toNameOutputReferenceacross all Azure Network resource types inAspire.Hosting.Azure.Networkto be consistent with the naming convention used by all other Azure hosting integrations (e.g. CosmosDB, Redis, Storage, KeyVault, ServiceBus, etc.).This is acceptable breaking change because this library has an Experimental attribute on it:
aspire/src/Aspire.Hosting.Azure.Network/AssemblyInfo.cs
Line 6 in a50892b
Updated files:
AzureNatGatewayResource.csAzureNetworkSecurityGroupResource.csAzurePrivateDnsZoneResource.csAzurePrivateEndpointResource.csAzurePrivateEndpointExtensions.csAzurePublicIPAddressResource.csAzureVirtualNetworkResource.csChecklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: