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
560 stars 352 forks source link

DeploymentNotFound exception when running azd up #167

Closed stiglyt closed 9 months ago

stiglyt commented 9 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

Run the following 3 commands: azd auth login azd init -t azure-search-openai-demo-csharp azd up

I get to the step "Provisioning Azure resources (azd provision)" and then get the following error:

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details: DeploymentNotFound: Deployment 'openai-demo-1696250642' could not be found.

TraceID: 94ce5897d28222ee8bbdff010aa0a142

The commands stops running, but I can see in the Azure Portal that all the resources is being created. I've tested this with two different subscriptions in two different tenants, both with same result.

Any log messages given by the failure

Expected/desired behavior

OS and Version?

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

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

LadyNaggaga commented 9 months ago

Question: Your resources were successfully created in Azure with the azd up command but appeared to have failed in the CLI? If you haven't already, could you please, try azd up --debug? and share the additional logs ?

luisquintanilla commented 9 months ago

Hi @stiglyt

Can you provide more details about your setup?

Are you running in Codespaces / Devcontainers or locally? Which OS are you using? Which version of the Azure Developer CLI are you using? azd version

stiglyt commented 9 months ago

Thanks for following up. I tried it again today to run with verbose logging, and the error has gone away. Nothing has changed on my end, so not really sure what the issue was. Both the deployment and the app works as expected now, so closing this issue :)