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.