https://slingdata.io logo
Problem connecting to an azure target
# sling-help
s
Problem connecting to an azure target with a service principal. I have defined my azure target like this:
Copy code
adls_edp_test:
        type: azure
        account: myaccount
        container: mycontainer
        tenant_id: 00000000-0000-0000-0000-000000000000
        client_id: 00000000-0000-0000-0000-000000000000
        client_secret: SECRET
When trying to upload parquet files, I get the following error:
Copy code
2026-03-17 12:19:28 ERR DefaultAzureCredential: failed to acquire a token.
Attempted credentials:
    EnvironmentCredential: incomplete environment variable configuration. Only AZURE_TENANT_ID and AZURE_CLIENT_ID are set
    WorkloadIdentityCredential: no token file specified. Check pod configuration or set TokenFilePath in the options
    ManagedIdentityCredential: Get "http://169.254.169.254/metadata/identity/oauth2/token": dial tcp 169.254.169.254:80: connectex: En socketåtgärd försökte utföras till ett nätverk som inte går att kontakta.
    AzureCLICredential: ERROR: (pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645
        Please explicitly log in with:
        az login --scope https://storage.azure.com/.default
        
    AzureDeveloperCLICredential: Azure Developer CLI not found on path
How should I configure an azure target with a service principal?
FYI: I got this to work by setting AZURE_CLIENT_SECRET in my env.yaml file. Maybe you should improve the documentation for configuring the azure target?
f
will do, thanks