Skip to main content
Question

Connecting to Azure Storage Account – Authentication Best Practices?

  • December 3, 2025
  • 1 reply
  • 8 views

Forum|alt.badge.img

Hi everyone,  
Has anyone successfully connected to an Azure Storage account from a bot process? In our scenario, the bot needs to save an output file in a dedicated Storage account.

I’m particularly interested in:

*   How you implemented the connection
*   How authentication was handled
*   Any security considerations you applied

Our security team advised using either a **Service Principal** or **Managed Identity**, but I’d love to hear real-world experiences and any tips or pitfalls to avoid.

Thanks in advance for your advice!
 

1 reply

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • December 4, 2025

Hi ​@IwonaG,

 

I haven't had any opportunity yet to try this out. But you can make use of the azcopy command using the Service Principal (AAD app) for this. We have Run: Command action in AA specifically for requirements like this.

 

Sample:

azcopy login --service-principal --application-id <APP_ID> --tenant-id <TENANT_ID> --aad-endpoint https://login.microsoftonline.com --password <CLIENT_SECRET>

azcopy copy "C:\Bots\out\report.csv" "https://<account>.blob.core.windows.net/<container>/reports/report.csv"<SAS>