gpt4 book ai didi

azure - 如何清除软删除的文本分析?

转载 作者:行者123 更新时间:2023-12-04 03:25:45 25 4
gpt4 key购买 nike

为了测试 ARM 模板,我们首先将它们部署在测试资源组上。晚上 7 点,这些资源组将自动删除。昨天它工作正常,今天我无法再部署到相同的测试资源组名称。已经很久没有换模板了。

我无法在 Azure 门户中的任何位置找到此软删除的服务,并且不知道如何清除它。

14:43:17 - Error: Code=FlagMustBeSetForRestore; Message=An existing resource with ID
| '/subscriptions/GUID/resourceGroups/myRG/providers/Microsoft.CognitiveServices/accounts/my-ta-zneztme4oqjb2' has been
| soft-deleted. To restore the resource, you must specify 'restore' to be 'true' in the property. If you don't want to restore existing resource, please purge it first.

最佳答案

这里是 rest endpoints you can call against cognitive services 的链接

有一个端点可以列出已删除的认知服务,您可以像这样调用:

az rest --method get --header 'Accept=application/json' -u 'https://management.azure.com/subscriptions/$SubscriptionId/providers/Microsoft.CognitiveServices/deletedAccounts?api-version=2021-04-30'

它返回已删除认知服务的 json 结构列表。每个删除的服务都有一个 id 属性,这是您传递给删除方法的内容:

az resource delete --ids $id

关于azure - 如何清除软删除的文本分析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67620753/

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