We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24694af commit c04e6eaCopy full SHA for c04e6ea
msal/region.py
@@ -5,6 +5,9 @@
5
6
7
def _detect_region(http_client=None):
8
+ region = os.environ.get("REGION_NAME", "").replace(" ", "").lower() # e.g. westus2
9
+ if region:
10
+ return region
11
if http_client:
12
return _detect_region_of_azure_vm(http_client) # It could hang for minutes
13
return None
0 commit comments