'eastus' and 'EAST US' - are these two azure resource regions not the same?

Pratik Dhande 0 Reputation points
2025-03-08T02:04:02.92+00:00

I am performing the tutorial this tutorial: https://github.com/Azure-Samples/azure-search-python-samples/blob/main/Tutorial-RAG/Tutorial-rag.ipynb

I am getting the below error while running 'Create a Skillset' code cell.

HttpResponseError: () Provided key is not a valid CognitiveServices type key for the region of your search service. Code: Message: Provided key is not a valid CognitiveServices type key for the region of your search service.

C:\Windows\System32>az search service show --name azureaisearchservicee --resource-group tutorial-RAG --query "location"

"East US"

C:\Windows\System32>az storage account show --name storageeaccounttnammee --resource-group tutorial-RAG --query "location"

"eastus"

C:\Windows\System32>az cognitiveservices account show --name azureopenairesourcee --resource-group tutorial-RAG --query "location"

"eastus"

C:\Windows\System32>

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,223 questions
{count} votes

1 answer

Sort by: Most helpful
  1. David Broggy 6,111 Reputation points MVP
    2025-03-08T02:39:42.14+00:00

    Hi Pratik,
    Yes you can use both eastus and "East US" for that same region.
    The region likely isn't the issue.

    Here are some more suggestions:

    Double-check your cognitive services key

    1. Verify the key is valid for the East US region
    2. Ensure the key has the correct permissions
    3. Confirm the key matches the specific cognitive service resource Best regards.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.