在应用程序服务的vNet集成中,我得到了“仅支持嵌套资源”错误,因此无法断开vNet如何修复它。
断开vNet与Azure应用服务的连接
c0vxltue1#
在应用程序服务的vNet集成中,我得到“仅支持嵌套资源”错误,因此无法断开vNet如何修复它如果出现'Only supports nested resources'错误,则在尝试使用UI断开vNet与App Service的连接时可能会遇到问题。要解决此错误,您可以使用以下Azure CLI命令将Vnet与App Service断开连接。我已经参考了这个MS文档,使用Azure CLI断开Vnet与应用服务的连接。
'Only supports nested resources'
UI
Azure CLI
Vnet
App Service
$webAppName = "<webappname>" $resourceGroupName = "<resourceGroupName>" $webApp = Get-AzWebApp -Name $webAppName -ResourceGroupName $resourceGroupName # Disconnect the vNet by setting the vNet name and resource group to empty az webapp vnet-integration remove -g "<resourceGroupName>" -n "<webappname>" Write-Host "The vNet has been disconnected from the App Service $webAppName ."
$webAppName = "<webappname>"
$resourceGroupName = "<resourceGroupName>"
$webApp = Get-AzWebApp -Name $webAppName -ResourceGroupName $resourceGroupName
# Disconnect the vNet by setting the vNet name and resource group to empty
az webapp vnet-integration remove -g "<resourceGroupName>" -n "<webappname>"
Write-Host "The vNet has been disconnected from the App Service $webAppName ."
输出:
Vnet从App Service断开连接,如下所示。
1条答案
按热度按时间c0vxltue1#
在应用程序服务的vNet集成中,我得到“仅支持嵌套资源”错误,因此无法断开vNet如何修复它
如果出现
'Only supports nested resources'
错误,则在尝试使用UI
断开vNet与App Service的连接时可能会遇到问题。要解决此错误,您可以使用以下
Azure CLI
命令将Vnet
与App Service
断开连接。我已经参考了这个MS文档,使用
Azure CLI
断开Vnet与应用服务的连接。Azure CLI
输出:
Vnet从App Service断开连接,如下所示。