How to find Azure subscription key and service region for setting AZURE_SUBSCRIPTION_KEY and AZURE_SERVICE_REGION?

Roger Wehage 0 Reputation points
2024-06-18T11:43:55.3433333+00:00

I want to know what the Azure subscription key and Azure service region are, and how to locate them. I need to find this information to set the AZURE_SUBSCRIPTION_KEY and AZURE_SERVICE_REGION variables. Can someone provide instructions or resources on how to find this information?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,208 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 16,345 Reputation points MVP
    2024-06-18T12:01:17.8466667+00:00

    There is no Azure subscription key - presumably you're referring to Azure subscription id. For that, refer to https://learn.microsoft.com/en-us/answers/questions/1481572/help-find-my-subscription-id

    There is also no Azure service region - Azure is a global public cloud - it supports multiple regions. For that, refer to https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-setup-guide/regions


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Roger Wehage 0 Reputation points
    2024-06-18T16:43:12.1233333+00:00

    I resolved the problem by trial and error. Even though I had set up an Azure billing account, which has this long string of characters, following a yellow key symbol, and a region statement relating to the local language, they are not what AZURE_SUBSCRIPTION_KEY and AZURE_SERVICE_REGION needed. Instead, I was supposed to set up a python resource and tell it to use my Azure billing account. And this python resource generated the required AZURE_SUBSCRIPTION_KEY and AZURE_SERVICE_REGION information. After I copied the new key and "centralus" region string into my manim python file everything worked as expected. If I had seen a step-by-step example somewhere, it could have saved me several hours of frustration.

    0 comments No comments