question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] support for REGION_NAME env variable should be more resilient to user friendly region names

See original GitHub issue

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();

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jmprieurcommented, Sep 28, 2021

@dannybtsai

“RegionName”: “East US 2”, “RegionShortName”: “eastus2”

1reaction
dannybtsaicommented, Sep 28, 2021

@jmprieur, do you have an example of the REGION_NAME?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >
AWS_REGION environment variable doesn't work #3947
Here is my serverless.yml and a config without default region. service: aws-nodejs-testestes provider: name: ...
Read more >
Main.tf not detecting TF_VARs I setup - Terraform
I have terraform code that follows the following structure. → main dir main.tf state.tf versions.tf → modules/eks dir eks.tf variables.tf
Read more >
Environment variables and app settings in Azure App Service
Describes the commonly used environment variables, and which ones can be modified with app settings.
Read more >
The Fly Runtime Environment · Fly Docs
When a Fly application is running, various information about the runtime environment is made available to it. Environment variables carry information that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found