microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.57k stars 2.44k forks source link

Deploying the infra-as-code template requires the OpenAI resource to be in the same resource group as the App Service #1049

Open raffertyuy opened 1 month ago

raffertyuy commented 1 month ago

Is your feature request related to this sample app, or to an Azure service, such as Azure OpenAI or Azure AI Search? Feature related to Deploy to a new web app... from Azure OpenAI Studio (oai.azure.com)

Is your feature request related to a problem? Please describe. The template currently requires the Azure OpenAI resource to be in the same resource group as the App Service.

Describe the solution you'd like Request is for the template to support using an existing Azure OpenAI resource that's in a different resource group.

Additional context To be clear, this is what I tried to do:

  1. Existing OpenAI resource in a different RG
  2. Create an RG for AI Search. This RG contains the storage and AI search service
  3. Deploy to a new web app in this AI Search RG
  4. Got this error, so I assume the template currently requires the OpenAI service to be in the same RG

Image

raffertyuy commented 1 month ago

Workaround:

  1. Create a temporary Azure OpenAI resource in the same RG and use that.
  2. Change the App Service environment variables to point to the existing Azure OpenAI service
  3. Delete the temporary Azure OpenAI resource