![](/img/trans.png)
[英]How do you associate an Azure web app with a vnet using PowerShell Az?
[英]How to connect Azure WebApp to an existing vnet using powershell
我已按照https://azure.microsoft.com/en-us/documentation/articles/web-sites-integrate-with-vnet/上的说明将 Azure WebApp 连接到现有虚拟网络,并且效果很好。 我想通过 powershell 做到这一点,这样我就可以将它与我的其余部署方案一起自动化。 我查看了 powershell 命令“New-AzureWebApp”、“New-AzureAppServicePlan”,但没有看到任何指定虚拟网络和子网的选项。
谢谢
如果需要,请使用Set-AzureVNetConfig
替换整个 vnet 配置https://msdn.microsoft.com/en-us/library/azure/dn495195.aspx
为您的云服务编辑ServiceConfiguration.Cloud.cscfg
文件https://msdn.microsoft.com/en-us/library/azure/ee758710.aspx
realeted 是NetworkConfiguration
部分https://msdn.microsoft.com/en-us/library/azure/jj156091.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.