Deploy Azure OpenAI Model via CLI in region external to RG

Dougall Percival 20 Reputation points
2024-11-08T13:20:29.41+00:00

I am deploying an OpenAI model via the Azure CLI. The resource group my Open AI Service sits in does not have quota for models, so I am attempting to deploy a model in another region into this RG. I have tried the following command based on the following link (deploy a model stage), which is returning a "unrecognized arguments: --location canadaeast" error: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=cli

This is the command I am using (note that location is not provided as a parameter for az cognitiveservices account deployment create):

az cognitiveservices account deployment create \

--name

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2024-11-14T13:02:50.94+00:00

    Dougall Percival I'm glad that your issue is resolved and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Error Message:

    I am deploying an OpenAI model via the Azure CLI. The resource group my Open AI Service sits in does not have quota for models, so I am attempting to deploy a model in another region into this RG. I have tried the following command based on the following link (deploy a model stage), which is returning a "unrecognized arguments: --location canadaeast" error: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/create-resource?pivots=cli

    This is the command I am using (note that location is not provided as a parameter for az cognitiveservices account deployment create):

    az cognitiveservices account deployment create \

    Solution:

    I ended up deploying the openai resouce in the canada east region and then the cli commands work.

    Could be an issue with the Canada central region it self at that time.

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.