Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.91k stars 4.05k forks source link

InvalidTemplate: Deployment template validation failed: #1449

Open aropenai opened 6 months ago

aropenai commented 6 months ago

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

Used already deployed search Azure AI services, Azure Open AI

Any log messages given by the failure

"status": "Failed",

"error": { "code": "InvalidTemplate", "message": "Deployment template validation failed: 'The resource 'Microsoft.CognitiveServices/accounts/ACCOUNTNAME/deployments/DEPLOYMENTNAME' at line '1' and column '2306' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'.", "additionalInfo": [ { "type": "TemplateViolation", "info": { "lineNumber": 1, "linePosition": 2306, "path": "properties.template.resources[1]" } } ] } }

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

azd version 1.6.1

Mention any other details that might be useful


Thanks! We'll be in touch soon.

aropenai commented 6 months ago

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The resource 'Microsoft.CognitiveServices/accounts/AZUREOPENAIACCOUNTNAME/deployments/DEPLOYMENTNAME' at line '1' and column '2306' is defined multiple times in a template. Please see https://aka.ms/arm-syntax-resources for usage details.'."}]}