Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

[HELP] IN ORDER TO SUPPORT class DefaultAzureCredential() TO AUTHENITCATE AZURE RESOURCE #245

@talk2jaydip

Description

@talk2jaydip

wHAT CONFIGURATION AND ENV NEED TO BE SET TO PASS AUTHENITCATION BY DefaultAzureCredential() WHICH IS BEING USED ALTERNATIVE TO CONNECTION STRING.

TRIED WITH CLIENT ID AND TENANT ID BUT NO LUCK.

CAN ANYONE HELP WHAT NEEDS TO BE CONFIGURE AT ENV OR AKS YAML SIDE

ERROR:

INFO: Started server process [1]
INFO: Waiting for application startup.
ImdsCredential.get_token_info failed: ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint. invalid_request
ManagedIdentityCredential.get_token_info failed: ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint. invalid_request
packages/azure/identity/_internal/msal_managed_identity_client.py", line 162, in _get_token_base
token = self._request_token(*scopes, claims=claims, tenant_id=tenant_id, enable_cae=enable_cae, **kwargs)
File "/usr/local/lib/python3.10/site-packages/azure/identity/_credentials/imds.py", line 99, in _request_token
token_info = super()._request_token(*scopes)
File "/usr/local/lib/python3.10/site-packages/azure/identity/_internal/msal_managed_identity_client.py", line 65, in _request_token
raise CredentialUnavailableError(error_message)
azure.identity._exceptions.CredentialUnavailableError: ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint. invalid_request

ERROR: Application startup failed. Exiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions