-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Network] CLI support for VPN Gateway Connection Certificate based authentication #32524
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: dev
Are you sure you want to change the base?
Conversation
❌AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| network vnet-gateway create | cmd network vnet-gateway create added parameter mi_system_assigned |
||
| network vnet-gateway create | cmd network vnet-gateway create added parameter mi_user_assigned |
||
| network vnet-gateway identity | sub group network vnet-gateway identity added |
||
| network vnet-gateway update | cmd network vnet-gateway update added parameter type |
||
| network vnet-gateway update | cmd network vnet-gateway update added parameter user_assigned_identities |
||
| network vpn-connection create | cmd network vpn-connection create added parameter auth_type |
||
| network vpn-connection create | cmd network vpn-connection create added parameter cert_auth |
||
| network vpn-connection update | cmd network vpn-connection update added parameter authentication_type |
||
| network vpn-connection update | cmd network vpn-connection update added parameter certificate_authentication |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
d0edfa6 to
ea0d042
Compare
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 VPN Gateway Connection Certificate-based authentication and managed identity support for VNet gateways. The changes include:
- Adding managed identity (user-assigned) support to VNet gateway create/update operations
- Adding certificate-based authentication type to VPN connection create/update commands
- Updating the Network API version from 2024-07-01 to 2025-01-01
- Adding new identity management commands for VNet gateways
Reviewed changes
Copilot reviewed 25 out of 28 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test_network_commands.py | Adds two comprehensive test classes covering managed identity and certificate authentication scenarios |
| VpnGatewayoutboundcert.pfx, VpnGatewayInboundCert.cer, VpnGatewayAuthCert.cer | Test certificate files for authentication scenarios |
| custom.py | Uncomments managed identity parameters and adds auth parameters to vpn-connection create |
| vpn_connection/*.py | AAZ-generated files updated with API version, authentication fields, and secret flags |
| vnet_gateway/*.py | AAZ-generated files updated with API version and identity support |
| vnet_gateway/identity/*.py | New identity management commands (assign/remove/show/wait) |
| _validators.py | Adds validation logic to clear shared keys when using certificate authentication |
| _template_builder.py | Updates API version and adds certificate auth parameters to template |
| _params.py | Adds auth_type and cert_auth parameters with JSON parsing support |
| _help.py | Adds documentation and examples for certificate authentication |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…onnection feat: add vpn connection authentication test fix: cli linter error fix: ci error fix: add cli example fix: dev
fc1bd7f to
e2df42e
Compare
Related command
az network vnet-gateway createaz network vnet-gateway updateaz network vpn-connection createaz network vpn-connection updateDescription
Add managed identity support to network vnet-gateway create/update
Add authentication-type and certificate-based auth to network vpn-connection create/update
Resolve #32380
aaz Azure/aaz#912
Testing Guide
live test:
azdev test test_vnet_gateway_managed_identity --live --discoverazdev test test_vpn_connection_authentication --live --discoverplayback test after recording:
azdev test test_vnet_gateway_managed_identityazdev test test_vpn_connection_authenticationHistory Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.