This document provides a comprehensive reference for Azure PowerShell cmdlets related to Azure Virtual Network Gateway VPN client connection management, specifically focusing on cmdlets that interact with or are managed by scaling plugins.
Azure Virtual Network Gateway enables secure, cross-premises connectivity to your Azure virtual networks. VPN client connection management is crucial for ensuring secure access for remote users and devices. This section details cmdlets that leverage scaling plugins for managing these connections, often related to performance tuning, load balancing, or dynamic resource allocation.
Retrieves the VPN client connection configuration for an Azure Virtual Network Gateway.
Get-AzVirtualNetworkGatewayVpnClientConnectionConfiguration
-VirtualNetworkGatewayName <String>
-ResourceGroupName <String>
[-DefaultProfile <IAzureContextContainer>]
-VirtualNetworkGatewayName: The name of the virtual network gateway.
-ResourceGroupName: The name of the resource group.
Get-AzVirtualNetworkGatewayVpnClientConnectionConfiguration -ResourceGroupName "MyResourceGroup" -VirtualNetworkGatewayName "MyVpnGateway"
Modifies the VPN client connection configuration for an Azure Virtual Network Gateway. This may involve adjustments for scaling or plugin-specific settings.
Set-AzVirtualNetworkGatewayVpnClientConnectionConfiguration
-VirtualNetworkGatewayName <String>
-ResourceGroupName <String>
[-VpnClientConnectionConfiguration <PSVirtualNetworkGatewayVpnClientConnectionConfiguration>]
[-ScalingPluginSettings <PSVirtualNetworkGatewayScalingPluginSettings>]
[-DefaultProfile <IAzureContextContainer>]
-VirtualNetworkGatewayName: The name of the virtual network gateway.
-ResourceGroupName: The name of the resource group.
-VpnClientConnectionConfiguration: The new VPN client connection configuration object.
-ScalingPluginSettings: Configuration settings for scaling plugins.
$gateway = Get-AzVirtualNetworkGateway -ResourceGroupName "MyResourceGroup" -Name "MyVpnGateway"
$newConfig = $gateway.VpnClientConnectionConfigurations[0]
$newConfig.EgressNatIp.Add("1.2.3.4") # Example modification
$scalingSettings = New-Object Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGatewayScalingPluginSettings
$scalingSettings.PluginName = "MyCustomPlugin"
$scalingSettings.Settings = @{"MaxConnections" = "1000"}
Set-AzVirtualNetworkGatewayVpnClientConnectionConfiguration -ResourceGroupName "MyResourceGroup" -VirtualNetworkGatewayName "MyVpnGateway" -VpnClientConnectionConfiguration $newConfig -ScalingPluginSettings $scalingSettings
Creates a new VPN client connection configuration for an Azure Virtual Network Gateway.
New-AzVirtualNetworkGatewayVpnClientConnectionConfiguration
-VirtualNetworkGatewayName <String>
-ResourceGroupName <String>
-VpnClientAddressPool <String[]>
[-RadiusServer <String>]
[-RadiusSecret <SecureString>]
[-GatewayVpnClientConfiguration <PSVirtualNetworkGatewayVpnClientConfiguration>]
[-DefaultProfile <IAzureContextContainer>]
-VirtualNetworkGatewayName: The name of the virtual network gateway.
-ResourceGroupName: The name of the resource group.
-VpnClientAddressPool: The IP address pool for VPN clients.
-RadiusServer: The RADIUS server address.
-RadiusSecret: The shared secret for the RADIUS server.
-GatewayVpnClientConfiguration: The gateway VPN client configuration object.
New-AzVirtualNetworkGatewayVpnClientConnectionConfiguration -ResourceGroupName "MyResourceGroup" -VirtualNetworkGatewayName "MyVpnGateway" -VpnClientAddressPool "10.0.0.0/24" -RadiusServer "192.168.1.10" -RadiusSecret "MySecretPassword"
Removes a VPN client connection configuration from an Azure Virtual Network Gateway.
Remove-AzVirtualNetworkGatewayVpnClientConnectionConfiguration
-VirtualNetworkGatewayName <String>
-ResourceGroupName <String>
-Name <String>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
-VirtualNetworkGatewayName: The name of the virtual network gateway.
-ResourceGroupName: The name of the resource group.
-Name: The name of the VPN client connection configuration to remove.
-Force: Suppresses confirmation prompts.
Remove-AzVirtualNetworkGatewayVpnClientConnectionConfiguration -ResourceGroupName "MyResourceGroup" -VirtualNetworkGatewayName "MyVpnGateway" -Name "DefaultVpnConfig" -Force
Scaling plugins in Azure Virtual Network Gateways are designed to enhance performance, manage load, and facilitate dynamic scaling of VPN client connection handling. When you use cmdlets that mention scaling plugins, you are typically interacting with configurations that influence how the gateway distributes connections, manages resources under load, or integrates with custom scaling solutions.