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

Unable to deploy the application even after having Azure OpenAI subscription

Open varunr02 opened this issue 1 year ago • 8 comments
trafficstars

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

Working on a Mac Os Sonoma. Followed the steps given in the readme file.

azd auth login azd init -t azure-search-openai-demo azd up

Any log messages given by the failure

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

Deployment Error Details: InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is ' '. See inner errors for details. SpecialFeatureOrQuotaIdRequired: The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature.

Expected/desired behavior

I requested for an Azure OpenAI subscription and got it yesterday night. The application should be deployed properly. I have no other application running and purged the old one.

Deployed it in the Azure location to use: 34. (Europe) West Europe (westeurope) and 'openAiResourceGroupLocation' infrastructure parameter: as 3. (Europe) France Central (francecentral)

Note: I had an Azure OpenAI access for the same subscription id as the current one. But that got accidentally deleted.

OS and Version?

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

Mac Os Sonoma

azd version?

run azd version and copy paste here.

azd version 1.5.0

Versions

Mention any other details that might be useful

With the previous OpenAI access, I successfully deployed it.


Thanks! We'll be in touch soon.

varunr02 avatar Dec 10 '23 01:12 varunr02

I have the exact same problem

I got it working the first time. Then when I was done, I ran azd down --purge. Afterwards when trying to setup the whole thing again, I keep getting the same error as @varunr02 got. I tried restarting from scratch with completetly new environment, purge anything existing etc etc, but still no luck. I tried applying for a new openAI subscription but still the same error. I also tried different regions (us east, north europe etc).

PhilipNgo avatar Dec 11 '23 12:12 PhilipNgo

I deleted the entire folder and created a new one. Now I'm getting this error.

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

Deployment Error Details: InvalidTemplateDeployment: The template deployment 'appserviceplan' is not valid according to the validation procedure. The tracking id is ' '. See inner errors for details. ValidationForResourceFailed: Validation failed for a resource. Check 'Error.Details[0]' for more information. SubscriptionIsOverQuotaForSku: This region has quota of 0 instances for your subscription. Try selecting different region or SKU. InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is ' '. See inner errors for details. SpecialFeatureOrQuotaIdRequired: The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature.

varunr02 avatar Dec 11 '23 20:12 varunr02

@PhilipNgo @varunr02 Are you able to create new OpenAI deployments in the Portal for gpt-3.5 turbo 0613 and text-embedding-ada-002 for the given region?

pamelafox avatar Dec 11 '23 22:12 pamelafox

This is showing when selecting the region in the Instance Details except for North Italy: The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature.

But North Italy is not there in the list of available openAiResourceGroupLocation (in terminal when using azd up)

Also, I'm currently using the $200 credit I got when opened a new account.

varunr02 avatar Dec 11 '23 23:12 varunr02

Hm, so you're saying that North Italy is the only region where you're able to create OpenAI resources? We don't have that enabled for the picker since it's not listed here: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models You can manually change infra/main.bicep openAiResourceGroupLocation to include "northitaly" if you think it'd work for you.

I think you may run into other issues if you're on the Azure free tier, but I'd like to make that work, so we can try to work through those.

pamelafox avatar Dec 12 '23 01:12 pamelafox

Screenshot 2023-12-11 at 7 38 50 PM Screenshot 2023-12-11 at 7 39 04 PM

I added northitaly to the resource group but it didn't show up in the terminal. I have added the screenshots of my entire process.

Is there any other way I can make this work? It worked fine for me last week. But I accidentally deleted something and had to request again for OpenAI access. Even after getting the access, it's not working.

varunr02 avatar Dec 12 '23 01:12 varunr02

Any update on this @pamelafox?

VioletPhilipN avatar Jan 04 '24 17:01 VioletPhilipN

It seems to be some location specific issue. I could not get it working at Location: East US 2 either.
Switching to Location: East US resolved the issue.

TJKlein avatar Feb 05 '24 14:02 TJKlein