Can I use a different region for a azure resource if I am in another region ?

Arpit Nayak 0 Reputation points
2024-05-22T12:43:23.22+00:00

I am making a new computer vision resource, at first I set the region to central India and my program threw an error of "Captions function is not present in my region". So, I checked and found the captions function in image analysis is present only in east us, central korea, etc but not India.

I then deleted the resource and created a new one with "East US" as region, but again my program is throwing error- "azure.core.exceptions.ClientAuthenticationError: (401) Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."

SO, CAN I NOT USE ANOTHER REGION THAN MY PRESENT LOCATION? IF YES THEN PLEASE SPECIFY HOW CAN I USE IT

IF NO, THEN WHERE THE ERROR LIES

Azure Computer Vision
Azure Computer Vision
An Azure artificial intelligence service that analyzes content in images and video.
379 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 46,831 Reputation points Microsoft Employee
    2024-05-22T17:35:19.6733333+00:00

    @Arpit Nayak You can use a resource in a different region other than your current region. Vision studio has an option to switch your resource from the settings tab on the top right hand corner or you can use the options to change your resource from the studio on that particular feature.

    User's image

    I think what might have happened in your case is that you created the resource and tried to immediately use it from studio and it might have failed to load the key correctly, you can validate this in developer mode of the studio by looking up the network tab in browser developer mode where the key is passed in the header. The key should be the same as the resource you created.

    Another possibility is that there might be policy in place in your subscription to list keys. This usually happens if an admin managing your subscription might setup this policy. If you are using your own subscription where such policies are not in place, then the first scenario is most likely that could have caused this behavior.

    Hope this helps!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    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.