Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
satwikide opened this issue Nov 6, 2023 · 0 comments

Comments

@satwikide
Copy link

satwikide commented Nov 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant