azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

AZD up fails with selection from list (semantic ranker/swedencentral)

Open diberry opened this issue 1 year ago • 3 comments

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

  1. azd auth login
  2. azd up
  3. select locations from options - assuming those are correct
? Enter a value for the 'documentIntelligenceResourceGroupLocation' infrastructure parameter:  1. (Europe) West Europe (westeurope)
? Save the value in the environment for future use Yes
? Enter a value for the 'openAiResourceGroupLocation' infrastructure parameter:  5. (Europe) Sweden Central (swedencentral)
? Save the value in the environment for future use Yes
  1. Error - is this region full or really not allowed?
  (✓) Done: Resource group: rg-dfberry-py-vision-5
  (✓) Done: App Service plan: plan-i5iwmz7lyb2lg
  (x) Failed: Search service: gptkb-i5iwmz7lyb2lg
  (✓) Done: Azure OpenAI: cog-i5iwmz7lyb2lg
  (✓) Done: Storage account: sti5iwmz7lyb2lg
  (✓) Done: Log Analytics workspace: log-i5iwmz7lyb2lg
  (✓) Done: Document Intelligence: cog-di-i5iwmz7lyb2lg
  (✓) Done: Application Insights: appi-i5iwmz7lyb2lg
  (✓) Done: Portal dashboard: dash-i5iwmz7lyb2lg

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

Deployment Error Details:
BadRequest: Semantic Search is not available in 'swedencentral' region. Please refer to https://aka.ms/semanticsearchavailability for list of available regions.

TraceID: 9d3ee1ea5ff5f7978e11e1bd050da2ad

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

Deployment Error Details:
BadRequest: Semantic Search is not available in 'swedencentral' region. Please refer to https://aka.ms/semanticsearchavailability for list of available regions.

TraceID: 9d3ee1ea5ff5f7978e11e1bd050da2ad

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?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

diberry avatar Feb 29 '24 00:02 diberry

:( CCing search team @mattgotteiner @srbalakr It'd be great to get it in swedencentral since thats popular now for gpt4 reasons. I dont want to add yet another location prompt like we have for OpenAI and Doc Intel.

pamelafox avatar Feb 29 '24 01:02 pamelafox

Some feedback: I found the locations a real pain when running azd up. Getting everything in the same RG, same region and with enough regional OpenAI quota took a lot of fiddling. It also seems to refuse to use existing resources in places I'd expect to avoid duplication of billable resources.

I'll have a look through the issues and see if I can be more specific and contribute.

ntabernacle avatar Mar 06 '24 18:03 ntabernacle

this remains a huge problem for most countries. I have the same problem in Canada where all services OTHER than OpenAI are in Canada Central and ONLY OpenAI is in Canada East. Still haven't managed to hack it together and get this working yet as of writing this.

update: I've got it working by adding a new param openailocation and using it for both the OpenAI service and the ContentSafety service. I also manually provisioned both services and hardcoded the keys into the script(s) for my first test(s) prior to adding the new parameter.

Lawndemon avatar Mar 08 '24 19:03 Lawndemon