You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

App Service VNet集成报“Only supports nested resources.”错误,无法断开VNet如何解决?

解决Azure App Service断开VNet集成时「Only supports nested resources.」错误的方法

当在Azure Portal操作断开App Service与VNet的集成时遇到这个错误,直接用Azure CLI或PowerShell命令行工具就能绕开Portal的限制,具体步骤如下:

方法一:使用Azure CLI

  1. 打开终端,登录Azure账号:
    az login
    
  2. 切换到目标资源所在的订阅:
    az account set --subscription <你的订阅ID>
    
  3. 执行移除VNet集成的命令,替换占位符为你的实际资源信息:
    az webapp vnet-integration remove --name <App Service名称> --resource-group <资源组名称>
    

方法二:使用Azure PowerShell

  1. 打开PowerShell,登录Azure账号:
    Connect-AzAccount
    
  2. 切换到目标订阅:
    Set-AzContext -Subscription <你的订阅ID>
    
  3. 移除VNet集成连接:
    $webapp = Get-AzWebApp -Name <App Service名称> -ResourceGroupName <资源组名称>
    Remove-AzWebAppVnetConnection -WebApp $webapp
    

额外排查点

如果命令执行仍失败,检查目标App Service或所在资源组是否设置了资源锁(比如只读锁),锁会阻止修改/删除操作,需要先在Azure Portal中移除锁,再重新执行上述命令。

内容的提问来源于stack exchange,提问作者pks

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 23:02:35