gpt4 book ai didi

azure - 由于资源组具有事件部署,移动资源失败

转载 作者:行者123 更新时间:2023-12-02 07:30:38 25 4
gpt4 key购买 nike

当我尝试在 Azure Powershell 中更改网站的资源组时,出现以下错误:

"Error": {
"Code": "MultipleErrorsOccurred",
"Message": "Multiple error occurred: Conflict,Conflict. Please see details.",
"Target": null,
"Details": [
{
"Code": "DeploymentActive",
"Message": "Moving resources failed because resource group 'rg1' has active deployments.",
"Target": null,
"Details": null
},
{
"Code": "DeploymentActive",
"Message": "Moving resources failed because resource group 'rg1' has active deployments.",
"Target": null,
"Details": null
}
}

我使用以下命令:

$webapp = Get-AzureResource -ResourceGroupName "rg1" -ResourceName resourceName -ResourceType Microsoft.Web/sites

Move-AzureResource -DestinationResourceGroupName "rg2" -ResourceId $webapp.ResourceId

一种解决方案是删除并重新创建网站,但有没有其他方法可以在不删除任何内容的情况下解决此问题?

最佳答案

Move-AzureResource 现已过时。尝试使用 Move-AzureRmResource。对于该错误,您必须等到 rg1 中正在进行的部署完成。

部署完成后您可以重试。

干杯!

关于azure - 由于资源组具有事件部署,移动资源失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31316926/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com