Azure-Samples / azure-functions-openai-aisearch-dotnet

This repository contains an Azure Function using OpenAI trigger and bindings extension to highlight OpenAI retrieval augmented generation with Azure AI Search.
MIT License
1 stars 2 forks source link

First Time User - deployment scripts azd failures - only works in EastUS #4

Open OzBob opened 1 week ago

OzBob commented 1 week ago

This issue is for a: (mark with an x)

Using my MSDN VS Professional Subscription:

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

**AzurePortal CLI with linked storage account, run the following commands:

azd init --template https://github.com/Azure-Samples/azure-functions-openai-aisearch-dotnet
azd provision
resourcename:$$$1
region=southeastasia
skipVnet=true
<errors below>
azd env new
azd provision
resourcename:$$$2
region:australiaeast
<errors part2 as below>
azd env new
azd provision
resourcename:$$$2
region=westus2
<errors part2 as below>

Any log messages given by the failure

errors part 1

The subscription is not registered to use namespace 'Microsoft.AlertsManagement'. See https://aka.ms/rps-not-found for how to register subscriptions. and The account type 'OpenAI' is either invalid or unavailable in given region. (Code: InvalidApiSetId)

Expected/desired behavior

Errors part 2

The specified SKU 'Standard' for model 'text-embedding-3-small 1' is not supported in this region 'australiaeast'. (Code: InvalidResourceProperties)

Errors part 3

"The subscription does not have QuotaId/Feature required by SKU 'S0' from kind 'OpenAI' or contains blocked QuotaId/Feature." **What is most frustrating about this is the OpenAI resource created manually in Australia East, is OK.

OS and Version?

Bash on Azure Portal CLI

Versions

na

Any other details that might be useful

Having followed along creating a model in azure portal AI Studio, it turns out that currently the only regions that have a quota for 'text-embedding-3-small' are (Canada East/East US/East US 2/Japan East) and the only regions with quotas for 'gpt-35-turbo' are (East US/France Central/South Central US/UK South/West Europe).

So it turns out the only region this sample will work in is: East US!

But!, when i try that the BICEP error is: **Turbo quota error

This operation require 40 new capacity in quota Tokens Per Minute (thousands) - GPT-4-Turbo, which is bigger than the current available capacity 8. The current quota usage is 0 and the quota limit is 8 for quota Tokens Per Minute (thousands) - GPT-4-Turbo. (Code: InsufficientQuota)

**Suggestions?

When change https://github.com/Azure-Samples/azure-functions-openai-aisearch-dotnet/blob/main/infra/main.parameters.json#L39 to 'gpt-4o-mini', capactiy 8, version 2024-07-18. azd provision command still gives a '**Turbo quota error' error above.

OzBob commented 1 week ago

when do the following there is more success:

1

azd new env mini4o
nano .azure/mini4o/.env

2 add following lines: AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY=8 AZURE_OPENAI_CHATGPT_DEPLOYMENT_VERSION="2024-07-18" AZURE_OPENAI_CHATGPT_MODEL="gpt-4o-mini"

3 azd provision

4 choose region : eastus2

Resource Deploy error:

ServiceDeleting: Cannot provision service named 'srch-gtch6fumatxds' because a background operation is still in progress, please try again with exponential backoff or with a different service name RequestId: 4f7619e4-6703-4c0f-aba0-aacfc3bd9131

Tried azd provision again after 1 minute, but no luck.

Tried azd provision again after 10 minutes, more success, no error but blue spinner.

image