An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
This command is for P2S connections. I'm trying hard to find exact powershell command for S2S connections.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello, I am trying to disconnect virtual network gateway connection but getting below error: Vpn client addresspool is not specified for gateway Command i am using is below: Disconnect-AzVirtualNetworkGatewayVpnConnection -ResourceName xyz -ResourceGroupName abc -VpnConnectionId @("rgh89f-ddfr-abcg-951e-1ed145c688cd") I am not sure if i am putting the right VPn connection ID (please let me know if there is a way to get the connection id) Again i am only trying to disconnect and not delete the vpn connection.
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
This command is for P2S connections. I'm trying hard to find exact powershell command for S2S connections.
Hello,
Same issue as Subir Saha with the message
"Vpn Client operation cannot be performed without a valid VpnClientConfiguration."
Please share the your solution here
Thanks!
@Subir Saha Thank you for reaching out to us. You can fetch the VpnConnectionId by running the command mentioned here
Get-AzVirtualNetworkGatewayVpnClientConnectionHealth -VirtualNetworkGatewayName <name of the gateway> -ResourceGroupName <name of the resource group>
Copy the VpnConnectionId of the session that you want to disconnect.
Disconnect-AzVirtualNetworkGatewayVpnConnection -VirtualNetworkGatewayName <name of the gateway> -ResourceGroupName <name of the resource group> -VpnConnectionId <VpnConnectionId of the session>
You can try this via Portal if PowerShell command fails. Hope this helps! Please let me know if you are still facing the same issue. Thank you!