[Network] Surface read-only UpgradedToV2 on PublicIpAddress and PublicIpPrefix (2025-09-01) - #30018
Open
Eugenio Peña García (EugenioPena) wants to merge 3 commits into
Conversation
…cIpPrefix (2025-09-01) Ports the 2025-09-01 NRP change from Azure/azure-rest-api-specs#44807 to Az.Network: - Surface the read-only UpgradedToV2 property on PSPublicIpAddress and PSPublicIpPrefix, indicating whether the SKU has been upgraded from Standard to StandardV2. - Add table format view columns and a changelog entry. - Add record/playback scenario tests and live E2E scenarios for StandardV2 resources. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Member
|
/azp run |
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Eugenio Peña García (EugenioPena)
marked this pull request as ready for review
August 14, 2026 23:26
Contributor
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Recorded live against the SLB NRP test subscription (StandardV2 public IP and public IP prefix). Verified green in Playback. Confirms the read-only UpgradedToV2 property surfaces (StandardV2 SKU, Succeeded, UpgradedToV2 not set on fresh create). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
|
/azp run |
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
…nly property UpgradedToV2 is a niche read-only migration indicator that NRP omits on all resources except those upgraded from Standard to StandardV2. Showing it as a default table column added an almost-always-blank 10th column and caused width truncation. The property remains on PSPublicIpAddress and PSPublicIpPrefix and is still surfaced via Format-List and direct access. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Member
|
/azp run |
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
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
Ports the 2025-09-01 NRP (Network Resource Provider) change from the Swagger PR Azure/azure-rest-api-specs#44807 to the hand-written Az.Network module.
Surfaces the read-only
UpgradedToV2boolean on public IP address and public IP prefix objects, indicating whether the SKU has been upgraded from Standard to StandardV2:Get-AzPublicIpAddressoutput (PSPublicIpAddress) now exposesUpgradedToV2.Get-AzPublicIpPrefixoutput (PSPublicIpPrefix) now exposesUpgradedToV2.The property is read-only (
get; private set;on the generated SDK model on this release branch), so there is no cmdlet parameter — the value is populated by the service and mapped by name via AutoMapper. Adding the property to the PS models also satisfies the profile's strict-mode mapping validation.Corresponding Swagger PR
Azure/azure-rest-api-specs#44807
Changes
Models/PSPublicIpAddress.csandModels/PSPublicIpPrefix.cs: addUpgradedToV2.Network.generated.format.ps1xml: add anUpgradedToV2table column to both views.ChangeLog.md.Test-PublicIpAddressStandardV2UpgradedToV2andTest-PublicIpPrefixStandardV2UpgradedToV2(record/playback) plus two live E2E scenarios inLiveTests.Testing
dotnet buildonNetwork.csprojandNetwork.Test.csproj).SessionRecords/*.jsoncaptured against a live subscription (StandardV2 must be allowlisted in-region). A freshly created StandardV2 resource reportsUpgradedToV2asfalse/null; atruevalue only appears after an actual Standard to StandardV2 upgrade. Record with:Set-TestFxEnvironment -UserId <email> -SubscriptionId <sub> -TenantId <tenant> -RecorderMode "Record"thendotnet test src/Network/Network.Test --filter "FullyQualifiedName~UpgradedToV2".Checklist
ChangeLog.mdupdated under "Upcoming Release".