pankajastro commented on code in PR #33469:
URL: https://github.com/apache/airflow/pull/33469#discussion_r1305307360


##########
airflow/providers/microsoft/azure/hooks/batch.py:
##########
@@ -96,7 +96,15 @@ def get_conn(self):
         if not batch_account_url:
             raise AirflowException("Batch Account URL parameter is missing.")
 
-        credentials = batch_auth.SharedKeyCredentials(conn.login, 
conn.password)
+        credentials: batch_auth.SharedKeyCredentials | 
AzureIdentityCredentialAdapter
+        if all([conn.login, conn.password]):
+            credentials = batch_auth.SharedKeyCredentials(conn.login, 
conn.password)
+        else:
+            credentials = AzureIdentityCredentialAdapter(
+                None, resource_id="https://batch.core.windows.net/.default";
+            )
+            # credentials = AzureIdentityCredentialAdapter()

Review Comment:
   ```suggestion
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to