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
551 stars 345 forks source link

Cannot deploy to Azure - Docker step hangs on Windows 10 #305

Closed a-vishar closed 3 months ago

a-vishar commented 3 months ago

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

Follow the VSCode Remote Container setup and deployment listed in Project setup.

Any log messages given by the failure

Packaging service web (Building Docker image)
  #1 [internal] load build definition from Dockerfile
  #1 transferring dockerfile: 868B done
  #1 DONE 0.0s

  #2 [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:8.0
  #2 ...

  #3 [internal] load metadata for mcr.microsoft.com/dotnet/sdk:8.0
### Expected/desired behavior
Deployment should complete.

OS and Version?

Windows 10 - 22H2

Versions

Latest as of the posting of this issue.

Mention any other details that might be useful

  1. I tried both Remote containers and local setup and both seem to stall at the same point.
  2. I have access to OAIS in Azure.
  3. The "error" is that the deployment hangs at the above message. I have waited an hour to see if it would ever move on.
  4. I have a 1GB internet connection.
  5. Other Azure samples that leverage azd and docker/remote containers do not hang.

Thanks! We'll be in touch soon.

a-vishar commented 3 months ago

This was due to not having powershell version 7. Ideally there should be a check for this and/or it should be included in the VSCode container.