How to fix this error "{ "code": "InvalidTemplateDeployment", "message": "The template deployment 'openai' is not valid according to the validation procedure. The tracking id is 'c91a9339-2741-4dcd-b5a6-b86ce77a0dfe'. See inner errors for details.", "

Santiago Ramirez 20 Reputation points
2024-06-07T01:57:45.11+00:00

When I try to run Azure Open AI demo on GitHub, it returns me the following error, I have azure open ai service set up, and I have acces to azure open ai service since a month now.

{
  "code": "InvalidTemplateDeployment",
  "message": "The template deployment 'openai' is not valid according to the validation procedure. The tracking id is 'c91a9339-2741-4dcd-b5a6-b86ce77a0dfe'. See inner errors for details.",
  "details": [
    {
      "code": "InsufficientQuota",
      "message": "Insufficient quota. Cannot create/update/move resource 'cog-zb3ceobhxnmwq'."
    }
  ]
}
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gowtham CP 6,020 Reputation points Volunteer Moderator
    2024-06-07T04:31:47.8233333+00:00

    Hello Santiago Ramirez ,

    Thank you for reaching out on Microsoft Q&A.

    To resolve the "InvalidTemplateDeployment" error caused by "InsufficientQuota":

    1. Delete the local .azure folder associated with your project.
    2. Run the project again using azd up.
    3. Choose the region where your initial OpenAI endpoint was created.
    4. If needed, delete one of the OpenAI service resources and purge it from the deleted section.

    If the issue persists, check your quotas or contact Azure Support for further assistance.

    Reference:

    I hope this helps! If you have any further questions, feel free to ask.

    If the information is useful, please accept the answer and upvote it to assist other community members.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,966 Reputation points Moderator
    2024-06-08T19:40:51.97+00:00

    Hello Santiago,

    Thanks for reaching out to us, yhe error message you're encountering, "InsufficientQuota," suggests that there may be limitations on your Azure subscription that are preventing the deployment of the resources required for the Azure OpenAI demo.

    Here's how you can address this issue:

    1. Check Quotas: Verify your Azure subscription quotas to ensure that you have sufficient resources available for deploying the Azure OpenAI service. This includes checking quotas for compute resources, storage, networking, etc. You may need to request a quota increase if you've exceeded your current limits.
    2. Resource Naming: Ensure that the resource names used in the deployment template are unique and compliant with Azure naming conventions. The error message mentions "cog-zb3ceobhxnmwq" as a resource that cannot be created or updated due to insufficient quota. You may need to change the resource names to avoid conflicts.
    3. Review Deployment Template: Double-check the deployment template (ARM template) used for deploying the Azure OpenAI service. Make sure that all parameters, variables, and resources are correctly configured and referenced. There might be errors or misconfigurations in the template that are causing the deployment to fail.

    If you still see this error, please let us know, we are happy to help you find a support engineer to check on your backend data to see what happens.

    Regards,

    Yutong

    0 comments No comments

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.