Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Goals

Deploy OpenAI following several methods / best practices described on the Microsoft learn website with several technologies.

Deployments

az deployment group create -g rg-switzerland-language-spoke –template-file .\cloud\azure\bicep\openai\main.bicep -p baseName=ygo74-switzerland -p publicNetworkAccess=Enabled

az deployment group create -g rg-switzerland-language-spoke –template-file .\cloud\azure\bicep\openai\empty.bicep –mode complete

{“code”: “InvalidTemplateDeployment”, “message”: “The template deployment ‘main’ is not valid according to the validation procedure. The tracking id is ‘4ec9532a-910e-4c5e-a11e-82b2b49cff51’. See inner errors for details.”}

Inner Errors: {“code”: “FlagMustBeSetForRestore”, “message”: “An existing resource with ID ‘/subscriptions/62177529-73f0-4e11-a584-5d3526dc6999/resourceGroups/rg-switzerland-language-spoke/providers/Microsoft.CognitiveServices/accounts/oai-ygo74-switzerland’ 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.”}

Sources


Table of contents