繁体   English   中英

如何使用 powershell 将 Azure WebApp 连接到现有的 vnet

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM