Skip to content

AZURE_AUTHORITY_HOST does not allow URI scheme to be specified #10819

@jongio

Description

@jongio

In latest preview,

If I specify the AZURE_AUTHORITY_HOST environment variable with scheme (https)
AZURE_AUTHORITY_HOST=https://login.microsoftonline.us

I get the following exception:
DefaultAzureCredential failed to retrieve a token from the included credentials. Attempted credentials: EnvironmentCredential: <urllib3.connection.VerifiedHTTPSConnection object at 0x0000020F404EDCA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

It works if I do not provide a scheme
AZURE_AUTHORITY_HOST=login.microsoftonline.us

All other Azure SDK languages support specifying a URI scheme for AZURE_AUTHORITY_HOST.

Please update the Python implementation to allow the user to specify a scheme.

Metadata

Metadata

Labels

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions