My python code uses AzureCliCredential() function, but it is giving error in running in Synapse/ADF/Databricks notebook .

Utsav Mori 20 Reputation points
2024-07-18T18:55:12.8266667+00:00

My python code uses AzureCliCredential() function, but it is giving error in running in Synapse Workspace that your Azure Cli command not found on path .

I have tried using other function like DefaultAzureCredentials(), ClientSecretCredentials () also

ClientSecretCredential(
     tenant_id="***",
     client_id="***",
     client_secret="***"
 )

But above two functions are giving error in my local env too .

The only function that is working without any error is AzureCliCredentials() and I want my python code containing AzureCliCredentials function to get deploy on Synapse/ADF/Databricks and run successfully without showing error AzureCli Path not found, Please assist me for the same .

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,686 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,075 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,177 questions
{count} votes