Azure-断开Powershell中的VNet集成 [英] Azure - Disconnect VNet Integration in Powershell

查看:76
本文介绍了Azure-断开Powershell中的VNet集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过Azure门户,我可以断开VNet集成,请参见下文.我需要使用Az模块在Powershell脚本中执行此操作.这可能吗?

Through the Azure portal I can disconnect my VNet integration, see below. I need to do this in a Powershell script, using the Az module. Is this possible?

推荐答案

只需使用以下命令,它对我而言就可以正常工作.

Just use the command below, it works fine on my side.

Remove-AzResource -ResourceGroupName "<resource-group-name>" -ResourceType "Microsoft.Web/sites/config" -ResourceName "<webapp-name>/virtualNetwork" -Force

Remove-AzResource -ResourceId "/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Web/sites/<webapp-name>/config/virtualNetwork" -Force

这篇关于Azure-断开Powershell中的VNet集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆