适用于 VPN 网关的 Azure PowerShell 示例Azure PowerShell samples for VPN Gateway

下表包含 Azure PowerShell 脚本的链接:The following table includes links to Azure Powershell scripts:

创建 VPN 网关Create a VPN gateway 创建基于路由的 VPN 网关。Creates a route-based VPN gateway.
创建 VPN 网关和 P2S 配置 - RADIUSCreate a VPN gateway and P2S configuration - RADIUS 创建基于路由的 VPN 网关和使用 RADIUS 用户名/密码身份验证的 P2S 配置。Creates a route-based VPN gateway and a P2S configuration that uses RADIUS username/password authentication.
创建 VPN 网关和 P2S 配置 - 证书身份验证Create a VPN gateway and P2S configuration - certificate authentication 创建基于路由的 VPN 网关和使用本机 Azure 证书身份验证的 P2S 配置。Creates a route-based VPN gateway and a P2S configuration that uses native Azure certificate authentication.
创建 VPN 网关和站点到站点连接Create a VPN gateway and Site-to-Site connection 创建基于路由的 VPN 网关和 S2S 连接。Creates a route-based VPN gateway and a S2S connection.
创建 VNet 到 VNet 连接Create vnet-to-vnet connections 创建 VNet 到 VNet 连接。Create vnet-to-vnet connections.
下载 VPN 设备模板Download VPN device template 下载 VPN 设备模板。Download VPN device template.