Azure-Samples / azure-search-openai-demo-csharp

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
MIT License
615 stars 403 forks source link

Error on "azd up" #207

Closed Coruscate5 closed 9 months ago

Coruscate5 commented 11 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

install azd 1.4.3 follow steps in instructions receive error after azd up: "ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: creating template: failed unmarshalling arm template from json: invalid character 'F' looking for beginning of value"

Any log messages given by the failure

as above - debug output from AZD simply prints the entire compiled bicep

Expected/desired behavior

doesn't error out

OS and Version?

Windows 10

Versions

azd 1.4.3 VS 2022 Preview 17.8 (but, using command line for deploy) latest build of this sample app (.NET 8 RC2)

Mention any other details that might be useful

This I believe has happened before when updating the AZD cli - I figured this out once before, hopefully I can figure again.


Thanks! We'll be in touch soon.

Coruscate5 commented 11 months ago

I fixed this, and is probably quite esoteric but might want to leave it around - you can close. This is due to AutoRun registry settings for each windows user that has the issue - AutoRun injects itself into the CMD pipeline during bicep compilation (unexpected). Fix is to remove AutoRun for the CLI user

luisquintanilla commented 9 months ago

Thanks for the detailed solution description @Coruscate5