📌  相关文章
📜  将应用程序添加到 VNET 集成的 Powershell 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:14.496000             🧑  作者: Mango

代码示例1
$subscription_id = ""
$NetworkName = ""
$location = ""
$netrgname = ""
$AppServiceName = ""
 $props = @{
      "vnetResourceId" = "/subscriptions/$subscription_id/resourcegroups/$netrgname/providers/Microsoft.ClassicNetwork/virtualNetworks/$NetworkName";
      "certThumbprint"= "";
      "certBlob"= "";
      "routes" = $null;
      }

New-AzureRMResource -ResourceName "$AppServiceName/$AppServiceName-to-$NetworkName" -Location $location  -ResourceGroupName MarcusWebsites -ResourceType Microsoft.Web/sites/virtualNetworkConnections -PropertyObject $props -ApiVersion "2015-08-01" -force