Skip to content

[Network] Add New/Get/Remove-AzVirtualNetworkApplianceCapability cmdlets For VNRA - #30173

Open
Mangilal Bishnoi (iml-v) wants to merge 3 commits into
Azure:release-network-2026-03-01from
iml-v:ml/pl-vnra-powershell-changes
Open

Mangilal Bishnoi (iml-v) wants to merge 3 commits into
Azure:release-network-2026-03-01from
iml-v:ml/pl-vnra-powershell-changes

Conversation

@iml-v

@iml-v Mangilal Bishnoi (iml-v) commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Adds Azure PowerShell cmdlets to manage the Virtual Network Appliance capability child
resource (Microsoft.Network/virtualNetworkAppliances/capabilities, api-version 2026-03-01).

New cmdlets (Az.Network):

  • New-AzVirtualNetworkApplianceCapability — create a capability on an appliance.
  • Get-AzVirtualNetworkApplianceCapability — get one capability, or list all on an appliance.
  • Remove-AzVirtualNetworkApplianceCapability — delete a capability.

The capability is a discriminated resource selected by -Kind, covering all four kinds:
PLGatewayFastpath, PLGateway, PLIPForwarders, and NAT64. -IpVersion is required for the
Private Link kinds (the service validates it against the kind: FastPath → DualStack;
PLGateway/PLIPForwarders → IPv6) and is not accepted for the property-less NAT64 kind.
kind, linkedResourceId, and provisioningState are read-only.

Includes: the generated SDK capability operations/models, PS model, AutoMapper-free projection,
ChangeLog.md, platyPS markdown help for all three cmdlets, module landing-page entries, and unit
tests for the client-side kind/ipVersion logic.

Cmdlet design review:

Notes for reviewers

  • Target api-version is 2026-03-01; the SDK capability types will be aligned with the official
    Network SDK regeneration for that version.
  • Full create/get/list/delete scenario test recordings are added in a follow-up once a
    feature-enabled dual-stack environment is available; client-side logic is covered by unit tests in
    this PR.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI lite review requested due to automatic review settings September 21, 2026 11:09
@azure-pipelines

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The base cmdlet contains a compilation error and does not fully validate documented capability/IP-version combinations.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 2 Medium severity

Open (3)
What changed in this PR

Adds PowerShell cmdlets for managing Virtual Network Appliance capabilities, including generated SDK support, documentation, exports, changelog, and unit tests.

Changes:

  • Added New, Get, and Remove cmdlets.
  • Added capability models and SDK operations.
  • Added help files, exports, and client-side unit tests.
File Description
VirtualNetworkApplianceCapabilityBaseCmdlet.cs Shared capability logic and payload creation
NewVirtualNetworkApplianceCapabilityCommand.cs Creates capabilities
GetVirtualNetworkApplianceCapabilityCommand.cs Retrieves capabilities
RemoveVirtualNetworkApplianceCapabilityCommand.cs Removes capabilities
PSVirtualNetworkApplianceCapability.cs PowerShell output model
Get-AzVirtualNetworkApplianceCapability.md Get cmdlet help
New-AzVirtualNetworkApplianceCapability.md New cmdlet help
Remove-AzVirtualNetworkApplianceCapability.md Remove cmdlet help
ChangeLog.md Release notes
Az.Network.psd1 Cmdlet exports
VirtualNetworkApplianceCapabilityUnitTests.cs Unit coverage
Generated SDK files API operations, models, polymorphism, and client wiring

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 21, 2026 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The create path does not enforce the documented capability kind and IP-version combinations.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
Resolved since last review (2)

@iml-v Mangilal Bishnoi (iml-v) changed the title Add PowerShell cmdlets for Virtual Network Appliance capabilities [Network] Add New/Get/Remove-AzVirtualNetworkApplianceCapability cmdlets For VNRaA Sep 21, 2026
@iml-v

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Commenter does not have sufficient privileges for PR 30173 in repo Azure/azure-powershell

Copilot AI review requested due to automatic review settings September 21, 2026 13:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The PR adds a new generated SDK surface without scenario recordings, so end-to-end API behavior requires human validation.

Review effort: Lite
Findings: 1 Low severity

Open (1)
Resolved since last review (2)

@iml-v
Mangilal Bishnoi (iml-v) marked this pull request as ready for review September 21, 2026 15:23
@iml-v
Mangilal Bishnoi (iml-v) marked this pull request as draft September 21, 2026 15:25
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@iml-v
Mangilal Bishnoi (iml-v) force-pushed the ml/pl-vnra-powershell-changes branch from f628872 to 2999ddd Compare October 1, 2026 15:30
Copilot AI lite review requested due to automatic review settings October 1, 2026 15:30
@iml-v
Mangilal Bishnoi (iml-v) changed the base branch from main to release-network-2026-03-01 October 1, 2026 15:30
@iml-v
Mangilal Bishnoi (iml-v) marked this pull request as ready for review October 1, 2026 15:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

…eCapability for create, drop stale CreateOrUpdate hierarchy

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).

@iml-v Mangilal Bishnoi (iml-v) changed the title [Network] Add New/Get/Remove-AzVirtualNetworkApplianceCapability cmdlets For VNRaA [Network] Add New/Get/Remove-AzVirtualNetworkApplianceCapability cmdlets For VNRA Oct 2, 2026
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.

3 participants