How to get Azure key/key vault region?

Siqing Zheng 80 Reputation points
2024-04-29T07:57:31.0966667+00:00

In cross tenant scenario, like this, how to check the key region with only key/key vault url?

I want to use it in create disk encryption set, but it require in same region. And it cost a lot, take a while to create. is there any way to get the region? or have a cheap way to check the region before create disk encryption set?

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,141 questions
{count} votes

Accepted answer
  1. TP 78,271 Reputation points
    2024-04-29T08:30:15.48+00:00

    Hi,

    One option would be to use nslookup to determine the region. For example, say the target key vault url is mykeyvault.vault.azure.net, you could use command prompt and enter below command:

    nslookup mykeyvault.vault.azure.net
    
    

    In the output, you might see something similar to below:

    Name: azkms-prod-wus-b.westus.cloudapp.azure.com

    Which would let you know that it is in region West US.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful