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

How you are supposed to deploy this s**t?

Open Porkechebure opened this issue 2 years ago • 3 comments

Not much to say or provide as of the bug report template, You run the "azd up" and it doesn't work.

Not much to write, you can see all here

It doesn't deploy. Doesn't matter if you have a fresh new AI Studio Hub or you already deployed the resources (in the hope it worked) and set everything in the .env file.

Just for reference my .env looks like this (fake names/ids):

AZURE_ENV_NAME="azure-search-openai-demo-csharp" AZURE_LOCATION="southcentralus" AZURE_OPENAI_CHATGPT_DEPLOYMENT="gpt-35-turbo" AZURE_OPENAI_RESOURCE_GROUP="rg-mynameai" AZURE_OPENAI_SERVICE="ai-myname_ai" AZURE_SUBSCRIPTION_ID="12345-1234-1234-1234-1234556788" SERVICE_WEB_RESOURCE_EXISTS="false"

How to deploy this thing

Porkechebure avatar Feb 07 '24 16:02 Porkechebure

Azure OpenAI is not available in every location, that's where the complexity come from. For example it's not available in "sourthcentralus". Please check the doc for azure openai availability from time to time as it change fast. Also you need to pay attention to the model version as well. The default gpt model used in this example is gpt-35-turbo-0613, so if you want to deploy to westus, you need to change the version to 1106.

I read the sub-thread you posted above and it seems that you are trying to deploy azure openai to a location where the template doesn't allow despite the error details clearly indicated in the log you shared. I just pasted one of the error message you put under that thread, it basically says you can't deploy azure openai to centralus, followed by a list of allowed value to choose from. image

Anyway, I feel sorry that your deployment doesn't go smoothly. For your information I used to deploy to eastus or eastus2 where gpt-35-turbo-0613 is available. And you can change the location using the following command

azd env set AZURE_LOCATION eastus2

Hope that helps

LittleLittleCloud avatar Feb 14 '24 07:02 LittleLittleCloud

Azure OpenAI is not available in every location, that's where the complexity come from. For example it's not available in "sourthcentralus". Please check the doc for azure openai availability from time to time as it change fast. Also you need to pay attention to the model version as well. The default gpt model used in this example is gpt-35-turbo-0613, so if you want to deploy to westus, you need to change the version to 1106.

I read the sub-thread you posted above and it seems that you are trying to deploy azure openai to a location where the template doesn't allow despite the error details clearly indicated in the log you shared. I just pasted one of the error message you put under that thread, it basically says you can't deploy azure openai to centralus, followed by a list of allowed value to choose from. image

Anyway, I feel sorry that your deployment doesn't go smoothly. For your information I used to deploy to eastus or eastus2 where gpt-35-turbo-0613 is available. And you can change the location using the following command

azd env set AZURE_LOCATION eastus2

Hope that helps

Thanks, I'll try later. But don't you think the error is just plain misleading? Shouldn't it clearly says you're trying to deploy to a unavailable location?

Porkechebure avatar Feb 16 '24 11:02 Porkechebure

The error message is quite clear... it's even documented in the Readme.md that you have to choose supported regions. of course, it only works if you read it ;)

lgmorand avatar May 18 '24 08:05 lgmorand