Skip to content

CLI for VPN Gateway Connection Certificate based authentication #32380

@brandonv191

Description

@brandonv191

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

Related command

Azure/azure-powershell#28642 Powershell PR with changes

Added - New-AzVirtualNetworkGatewayCertificateAuthentication.

Added -AuthenticationType and -CertificateAuthentication parameters to New-AzVirtualNetworkGatewayConnection and Set-AzVirtualNetworkGatewayConnection

Added -Identity and -UserAssignedIdentityId parameter to Set-AzVirtualNetworkGateway to New-AzVirtualNetworkGateway

Resource Provider

Microsoft.Network

Description of Feature or Work Requested

We have implemented certificate-based authentication for in the latest powershell and swagger releases for vpn gateway connections. This needs to be extended to azure cli.

The PR is linked below for the swagger.

  • User should be able to create/update a virtual network gateway with a managed identity
  • Support should be added to create/update vpn gateway connections with certificate based authentication.
  • Connections should have an option to specify authentication type and CertificateAuthentication object. More information can also be found on the public api

https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-gateway-connections/create-or-update?view=rest-network-gateway-2025-01-01&viewFallbackFrom=rest-network-gateway-2024-05-01&tabs=HTTP

Minimum API Version Required

2025-01-01

Swagger PR link / SDK link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/network/resource-manager/Microsoft.Network/stable/2025-01-01/virtualNetworkGateway.json

Pull request: Azure/azure-rest-api-specs#37176

Request Example

No response

Target Date

2025-12-15

PM Contact

[email protected]

Engineer Contact

[email protected], [email protected]

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions