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
6.29k stars 4.21k forks source link

Deployment template validation failed. #2146

Open ltim-rkm opened 2 days ago

ltim-rkm commented 2 days ago

Please provide us with the following information:

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

- [ ] bug report 

Minimal steps to reproduce

after running: azd up

Any log messages given by the failure

Deployment Error Details: InvalidTemplate: Deployment template validation failed: 'The template resource 'me-cons-rag-poc-aca-env' at line '1' and column '14726' is not valid: The language expression property array index '2' is out of bounds.. Please see https://aka.ms/arm-functions for usage details.'.

Expected/desired behavior

OS and Version?

Windows 11

azd version?

azd version 1.10.4

Versions

After deploying the resources, I deleted the stack and recreated changing from gpt 35 turbo to gpt 4o mini and getting the error on azd up.


Thanks! We'll be in touch soon.

pamelafox commented 1 day ago

Hm. It looks like there's something amiss with the configuration of the Container Apps Environment. One thing that might help is to open the deployment in the Portal (from the link in the azd output), open the -aca-env deployment, and check the inputs to it.

ltim-rkm commented 1 day ago

Thanks @pamelafox. I checked the inputs and the template and nothing stood out as wrong. I tried it multiple times with new environments, finally I found a setting in the docs: DEPLOYMENT_TARGET="containerapps" which fixed this issue.

IainD925 commented 20 hours ago

DEPLOYMENT_TARGET="containerapps"

Environment: Azure VM Windows Server 2022

Am also failing to deploy container app environment.

Followed docs page to revert to appservice:

Running azd env new, set azd env set DEPLOYMENT_TARGET appservice and commented out host: containerapp and uncommented host: appservice in azure.yaml file.

azd up then created the app service and built an index, said Deployment successful but when launching app returns "Application Error".

After deleting all resources, local repo and recreating; the appservice version was successful.