-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add NVA In VNet support for Network VirtualAppliance #28776
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
base: release-network-2025-03-01
Are you sure you want to change the base?
Add NVA In VNet support for Network VirtualAppliance #28776
Conversation
…)update mapper 3)add check for either virtualhub or nvanicinterfaceconfig property exists
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this 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 support for Network Virtual Appliance (NVA) interface configurations for NVAs deployed in VNet. The key changes enable users to configure network interface settings for NVAs that are deployed directly into virtual networks, as an alternative to deploying them into virtual hubs.
- Adds new model classes for NVA interface configurations
- Introduces two new cmdlets for creating interface configurations
- Updates the
New-AzNetworkVirtualAppliancecmdlet to support the new interface configuration parameter - Includes AutoMapper configurations for bidirectional mapping between PowerShell and SDK models
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
| NewNetworkVirtualApplianceCommand.cs | Modified to make VirtualHubId optional, added NvaInterfaceConfigurations parameter, and added mutual exclusivity validation |
| NvaInVnetBaseCmdlet.cs | New base class for NVA-in-VNet cmdlets (placeholder for future functionality) |
| NewNvaInterfaceConfigurationsCommand.cs | New cmdlet to build multiple interface configurations from an array |
| NewNvaInterfaceConfigurationCommand.cs | New cmdlet to build individual interface configuration objects |
| Network.generated.format.ps1xml | Updated formatting definition to display NvaInterfaceConfigurations property |
| Network.format.ps1xml | Updated formatting definition to display NvaInterfaceConfigurations property |
| PSNetworkVirtualApplianceInterfaceConfig.cs | New model classes for interface configurations |
| PSNetworkVirtualAppliance.cs | Added NvaInterfaceConfigurations property to the model |
| NetworkResourceManagerProfile.cs | Added AutoMapper configurations for bidirectional mapping of interface configuration models |
| ChangeLog.md | Documented the new feature and cmdlets |
| Az.Network.psd1 | Exported the two new cmdlets |
src/Network/Network/NetworkVirtualAppliance/NewNetworkVirtualApplianceCommand.cs
Outdated
Show resolved
Hide resolved
src/Network/Network/NetworkVirtualAppliance/NewNetworkVirtualApplianceCommand.cs
Show resolved
Hide resolved
src/Network/Network/NetworkVirtualAppliance/NVAInVnet/NewNvaInterfaceConfigurationsCommand.cs
Outdated
Show resolved
Hide resolved
src/Network/Network/NetworkVirtualAppliance/NVAInVnet/NewNvaInterfaceConfigurationCommand.cs
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…pplianceCommand.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…terfaceConfigurationsCommand.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…terfaceConfigurationCommand.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
/azp run |
…onfig.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Azure Pipelines successfully started running 3 pipeline(s). |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
correct indentation Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Was mistakenly added for reviewing the PR, I am not from PS team, thanks |
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.