We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5183f commit 2d4134eCopy full SHA for 2d4134e
1 file changed
api/views.py
@@ -1080,10 +1080,11 @@ def logout_user(request):
1080
def _pbi_token_via_managed_identity() -> str | None:
1081
"""
1082
Acquire an AAD access token for Power BI using the AKS managed identity.
1083
- If AZURE_CLIENT_ID is provided, target that user-assigned MI.
+ If POWERBI_AZURE_CLIENT_ID is provided, target that user-assigned MI.
1084
+ (There is another AZURE_CLIENT_ID among env vars, that is why this distinctive name is used.)
1085
1086
try:
- client_id = getattr(settings, "AZURE_CLIENT_ID", None) or os.getenv("AZURE_CLIENT_ID")
1087
+ client_id = getattr(settings, "POWERBI_AZURE_CLIENT_ID", None) or os.getenv("POWERBI_AZURE_CLIENT_ID")
1088
if client_id:
1089
cred = ManagedIdentityCredential(client_id=client_id)
1090
else:
0 commit comments