-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] support for REGION_NAME env variable should be more resilient to user friendly region names #2803
Comments
@bgavrilMS @SameerK-MSFT @pmaytak So, the data we need is there in the REGION_NAME variable. And Matthew would assert that MSAL can and should be resilient to users (reasonably) passing in the versions with whitespace. Therefore proposing to:
cc: @trwalke, @jennyf19, @henrik-me |
Unless anybody objects proposing to move it back to the triage column |
CC @rayluo - it looks like there is a path forward for REGION_NAME |
@jmprieur, do you have an example of the REGION_NAME? |
"RegionName": "East US 2", |
msal 4.35.1
REGION_NAME env variable does not seem reliable. Azure Functions sometimes populate it with the long region name (which is unusable).
The solution is:
string region = Environment.GetEnvironmentVariable("REGION_NAME")?.Replace(" ", string.Empty).?ToLower();
The text was updated successfully, but these errors were encountered: