The resource with that ID was soft-deleted, and if you no longer need the soft-deleted resource and want to remove it permanently you should purge it.
How to delete an existing CognitiveServices resource
{"code":"InvalidTemplateDeployment","details":[{"code":"FlagMustBeSetForRestore","message":"An existing resource with ID '/subscriptions/16622a6f-a343-4081-b9fc-94aca5e07b6b/resourceGroups/gpt3/providers/Microsoft.CognitiveServices/accounts/cognitive-service-wf7qrbq6uvon6' 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."}],"message":"The template deployment 'Microsoft.Template-20230522094048' is not valid according to the validation procedure. The tracking id is '1b4b8d14-797b-4000-890c-1bbad5797409'. See inner errors for details."}
when I create a CognitiveServices from a template, it throws this error, "cognitive-service-wf7qrbq6uvon6" has already been deleted.
Azure AI services
1 answer
Sort by: Most helpful
-
Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
2023-05-22T05:19:18.29+00:00