Azure Virtual Network Gateway VPN Client Connection Overview Cmdlets

This section provides an overview of the Azure PowerShell cmdlets used to manage and configure VPN client connections for Azure Virtual Network Gateways. These cmdlets are essential for establishing secure connectivity between your on-premises networks or individual clients and your Azure Virtual Networks.

Key Cmdlets

Get-AzVirtualNetworkGatewayVpnClientConnectionConfiguration

Retrieves the VPN client connection configuration for a Virtual Network Gateway.

Set-AzVirtualNetworkGatewayVpnClientConnectionConfiguration

Configures the VPN client connection settings for a Virtual Network Gateway.

Add-AzVirtualNetworkGatewayVpnClientRootCertificate

Adds a root certificate for VPN client authentication to a Virtual Network Gateway.

Remove-AzVirtualNetworkGatewayVpnClientRootCertificate

Removes a root certificate from a Virtual Network Gateway.

Get-AzVirtualNetworkGatewayVpnClientRootCertificate

Retrieves the root certificates configured for VPN client authentication on a Virtual Network Gateway.

Add-AzVirtualNetworkGatewayVpnClientRevokedCertificate

Adds a revoked client certificate to a Virtual Network Gateway to prevent specific clients from connecting.

Remove-AzVirtualNetworkGatewayVpnClientRevokedCertificate

Removes a revoked client certificate from a Virtual Network Gateway.

Get-AzVirtualNetworkGatewayVpnClientRevokedCertificate

Retrieves the revoked client certificates configured for a Virtual Network Gateway.

Common Parameters

Most of these cmdlets accept common Azure PowerShell parameters such as:

Example Usage

Here's an example of how to retrieve the VPN client connection configuration for a gateway:


Get-AzVirtualNetworkGatewayVpnClientConnectionConfiguration `
    -ResourceGroupName "MyResourceGroup" `
    -VirtualNetworkGatewayName "MyVpnGateway"
            
Ensure you have the latest version of the Az.Network module installed to access these cmdlets. You can update it using Update-Module -Name Az.Network.