azure-search-openai-demo: azd up failure on openai resource deployment TemplateViolation InvalidTemplate
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
running ‘azd up’ fails on openai resource. Same error on 2 different desktops as well as Codespaces.
Any log messages given by the failure
{ “status”: “Failed”, “error”: { “code”: “InvalidTemplate”, “message”: “Deployment template validation failed: ‘The template resource ‘cog-kww4kfsimmfle/’ for type ‘Microsoft.CognitiveServices/accounts/deployments’ at line ‘1’ and column ‘1738’ 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.’.”, “additionalInfo”: [ { “type”: “TemplateViolation”, “info”: { “lineNumber”: 1, “linePosition”: 1738, “path”: “properties.template.resources[1].type” } } ] } }
Expected/desired behavior
openai resource deployed successfully
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 11 and Codespace referenced in README.md.
Versions
main branch
Mention any other details that might be useful
Thanks! We’ll be in touch soon.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 18 (1 by maintainers)
I also experienced this issue. The latest commit (2570644a1) adds a couple of parameters to the main.parameters.json which expect values to be set in your local environment.
Workaround: remove these parameters from the main.parameters.json file