gpt4 book ai didi

continuous-integration - 运行构建步骤Azure资源组部署时,StorageAccountAlreadyExists

转载 作者:行者123 更新时间:2023-12-04 00:15:54 24 4
gpt4 key购买 nike

我正在尝试获取构建定义以将所有必要的资源(SQL Server,DB,Web应用程序和存储帐户)部署到天蓝色,并在重新部署的情况下进行更新。我使用Visual Studio Team Services VSTS / TFS。构建步骤“ Azure资源组部署”失败,并显示以下错误:


"code": "StorageAccountAlreadyExists",
"message": "The storage account named mystorageaccountname already exists under the subscription."



好吧,确实存在存储帐户mystorageaccountname,但是在尝试实现连续交付和重新部署时通常是这种情况。我想重用现有帐户。

对于其他资源,例如SQL Server和SQL数据库,资源的预先存在不是问题。

如何进行可反复使用的Azure资源组部署?

最佳答案

检查您为存储帐户指定的名称。它看起来不合法,因为其中不能包含大写字母。另外,请检查您所引用的现有存储不是“经典”存储帐户(ASM),而是ARM。

此处有更多详细信息:https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#storagenamenotunique

问候,
卡洛斯

关于continuous-integration - 运行构建步骤Azure资源组部署时,StorageAccountAlreadyExists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41408741/

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