Skip to content

[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
Azure:release-network-2025-09-01from
EugenioPena:ps-upgradedToV2-2025-09-01
Open

[Network] Surface read-only UpgradedToV2 on PublicIpAddress and PublicIpPrefix (2025-09-01)#30018
Eugenio Peña García (EugenioPena) wants to merge 3 commits into
Azure:release-network-2025-09-01from
EugenioPena:ps-upgradedToV2-2025-09-01

Conversation

@EugenioPena

Copy link
Copy Markdown
Member

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 UpgradedToV2 boolean on public IP address and public IP prefix objects, indicating whether the SKU has been upgraded from Standard to StandardV2:

  • Get-AzPublicIpAddress output (PSPublicIpAddress) now exposes UpgradedToV2.
  • Get-AzPublicIpPrefix output (PSPublicIpPrefix) now exposes UpgradedToV2.

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.cs and Models/PSPublicIpPrefix.cs: add UpgradedToV2.
  • Network.generated.format.ps1xml: add an UpgradedToV2 table column to both views.
  • ChangeLog.md.
  • Tests: Test-PublicIpAddressStandardV2UpgradedToV2 and Test-PublicIpPrefixStandardV2UpgradedToV2 (record/playback) plus two live E2E scenarios in LiveTests.

Testing

  • Module and test project compile cleanly (dotnet build on Network.csproj and Network.Test.csproj).
  • Verified the property surfaces on both models by importing the built module.
  • Draft: the new scenario tests still need their SessionRecords/*.json captured against a live subscription (StandardV2 must be allowlisted in-region). A freshly created StandardV2 resource reports UpgradedToV2 as false/null; a true value only appears after an actual Standard to StandardV2 upgrade. Record with:
    Set-TestFxEnvironment -UserId <email> -SubscriptionId <sub> -TenantId <tenant> -RecorderMode "Record" then
    dotnet test src/Network/Network.Test --filter "FullyQualifiedName~UpgradedToV2".

Checklist

  • ChangeLog.md updated under "Upcoming Release".
  • Read-only property, no help/cmdlet-parameter changes required.
  • Test recordings captured (pending live subscription).

…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>
@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 3 pipeline(s).

@EugenioPena
Eugenio Peña García (EugenioPena) marked this pull request as ready for review August 14, 2026 23:26
@azure-pipelines

Copy link
Copy Markdown
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>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
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>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 3 pipeline(s).

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.

2 participants