$mySubscriptionName=“订阅名称"
Select-AzureSubscription -SubscriptionName $mySubscriptionName
Get-AzureVNetConfig -ExportToFile c:NetworkConfig.xml
Set-AzureVNetConfig -ConfigurationPath c:NetworkConfig.xml
Get-AzureVNetSite -VNetName $VNetName
New-AzureVNetGateway -VNetName $VNetName -GatewayType "DynamicRouting" -GatewaySKU "Default"
New-AzureVNetGateway -VNetName $VNetName -GatewayType "DynamicRouting" -GatewaySKU "Default"
Set-AzureVNetGatewayKey -VNetName $VNetName -LocalNetworkSiteName $LocalNetworkSiteName -SharedKey $Password
Set-AzureVNetGatewayKey -VNetName $VNetName -LocalNetworkSiteName $LocalNetworkSiteName -SharedKey $Password
(Get-AzureVNetConfig).XMLConfiguration