Python | Azure Batch

Abhay Chandramouli 966 Reputation points
2022-12-13T12:02:18.473+00:00

Hi

I am trying to run python scripts inside azure batch accounts.
I have provided managed identitiy access to batch accounts with permissions to storage

in my python scripts, I am accessing azure storage account to list blobs in a container

Can I do this inside my python scripts without the connection string and using only managed identity ?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,684 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
301 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Djamal Abide 0 Reputation points
    2023-02-08T23:31:18.1266667+00:00

    I suggest you setup the connection string as an environment variable. After, you could use this environment variable from your script.

    0 comments No comments

  2. Abhay Chandramouli 966 Reputation points
    2023-02-09T09:47:01.2366667+00:00

    DefaultAzureCredential()

    0 comments No comments