From 2c758926f568aec1348e90182f2fac5ff17dec55 Mon Sep 17 00:00:00 2001 From: Bruno Capuano Date: Fri, 24 Jan 2025 16:13:29 -0500 Subject: [PATCH 1/2] Restrict allowed locations in main.bicep to Canada East, East US 2, Sweden Central, and Australia East --- infra/main.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index 79010b0d..7eb4b8a5 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -6,12 +6,12 @@ targetScope = 'subscription' param environmentName string @description('Primary location for all resources') -@allowed([ 'centralus', 'eastus2', 'eastasia', 'westus', 'westeurope', 'westus2', 'australiaeast', 'eastus', 'francecentral', 'japaneast', 'nortcentralus', 'swedencentral', 'switzerlandnorth', 'uksouth' ]) +@allowed([ 'canadaeast', 'eastus2', 'swedencentral', 'australiaeast' ]) param location string param tags string = '' @description('Location for the OpenAI resource group') -@allowed([ 'canadaeast', 'westus', 'eastus', 'eastus2', 'francecentral', 'swedencentral', 'switzerlandnorth', 'uksouth', 'japaneast', 'northcentralus', 'australiaeast' ]) +@allowed([ 'canadaeast', 'eastus2', 'swedencentral', 'australiaeast' ]) @metadata({ azd: { type: 'location' From 6a70beb420de4a5f675bf3f33416f0e2fa4df903 Mon Sep 17 00:00:00 2001 From: Bruno Capuano Date: Fri, 24 Jan 2025 17:25:38 -0500 Subject: [PATCH 2/2] Update README.md and main.bicep to restrict deployment location to East US 2 --- README.md | 6 +++--- infra/main.bicep | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 74984f7f..64ab6fd3 100644 --- a/README.md +++ b/README.md @@ -167,11 +167,11 @@ Then, run the following commands to get the project on your local environment: Execute the following command, if you don't have any pre-existing Azure services and want to start from a fresh deployment. 1. Run `azd up` - This will provision Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder. - - For the target location, the regions that currently support the model used in this sample are **East US**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/azure/cognitive-services/openai/concepts/models) + - For the target location, the regions that currently support the model used in this sample are **East US 2**. For an up-to-date list of regions and models, check [here](https://learn.microsoft.com/azure/cognitive-services/openai/concepts/models) - If you have access to multiple Azure subscriptions, you will be prompted to select the subscription you want to use. If you only have access to one subscription, it will be selected automatically. > **Note**: - > This application uses the `gpt-4o-mini` model. When choosing which region to deploy to, make sure they're available in that region (i.e. EastUS). For more information, see the [Azure OpenAI Service documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#standard-deployment-model-availability). + > This application uses the `gpt-4o-mini` model. When choosing which region to deploy to, make sure they're available in that region (i.e. EastUS2). For more information, see the [Azure OpenAI Service documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#standard-deployment-model-availability). 1. After the application has been successfully deployed you will see a URL printed to the console. Click that URL to interact with the application in your browser. @@ -327,7 +327,7 @@ To enable GPT-4V support with Azure OpenAI Service, run the following commands: azd env set USE_VISION true azd env set USE_AOAI true azd env set AZURE_OPENAI_CHATGPT_MODEL_NAME gpt-4o-mini -azd env set AZURE_OPENAI_RESOURCE_LOCATION eastus # Please check the gpt model availability for more details. +azd env set AZURE_OPENAI_RESOURCE_LOCATION eastus2 # Please check the gpt model availability for more details. azd up ``` diff --git a/infra/main.bicep b/infra/main.bicep index 7eb4b8a5..0469cf95 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -6,12 +6,12 @@ targetScope = 'subscription' param environmentName string @description('Primary location for all resources') -@allowed([ 'canadaeast', 'eastus2', 'swedencentral', 'australiaeast' ]) +@allowed([ 'eastus2' ]) param location string param tags string = '' @description('Location for the OpenAI resource group') -@allowed([ 'canadaeast', 'eastus2', 'swedencentral', 'australiaeast' ]) +@allowed([ 'eastus2' ]) @metadata({ azd: { type: 'location'