Skip to content

"InvalidTemplate: Deployment template validation failed" error while provisioning Azure OpenAI resource #20

@satwikide

Description

@satwikide

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run azd up in terminal

Any log messages given by the failure

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
InvalidTemplate: Deployment template validation failed: 'The template resource 'https://cog-s2rg2mmpggq2k.openai.azure.com' for type 'Microsoft.CognitiveServices/accounts' at line '1' and column '1154' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-syntax-resources for usage details.'.

TraceID: afdc58886616b8f341dfe083fa61f1ea
image

Expected/desired behavior

Shouldn't fail

OS and Version?

Windows 11; VS Code

Mention any other details that might be useful

azd .env file snapshot

AZURE_ENV_NAME="development"
AZURE_LOCATION="canadaeast"
AZURE_RESOURCE_GROUP="<resource-group-name>"
AZURE_SUBSCRIPTION_ID="<subscription-id>"

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions