i'm looking into possibly reading/writing directly into an azure storage account and was wondering what should the credentials be:
job = dr.BatchPredictionJob.score_azure( deployment_id, source_url=azure_csv_input_file, destination_url=azure_csv_output_file, credential=credentials, )
I have a service principal but am not sure what the syntax is to setup the credentials that is being asked for.
Thanks,
Hello,
you can create credentials like this example this will return credentialId which you can use as a credential.
***** Create Azure Credentials Example *****
curl --location --request POST 'https://app.datarobot.com/api/v2/credentials/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ***' \
--data-raw '{
"credentialType": "azure",
"name": "***",
"azureConnectionString":"DefaultEndpointsProtocol=https;AccountName=***;AccountKey=***;EndpointSuffix=core.windows.net"
}'
you can keep track of credentials at this URL https://app.datarobot.com/api/v2/credentials/