I have a build pipeline which builds *.p12 files and been published a artifacts in the build pipeline
How to copy files from azure Devops pipeline workspace or from published artifacts to Azure storage account (Fileshare) path
I have a build pipeline which builds *.p12 files and been published a artifacts in the build pipeline
How to copy files from azure Devops pipeline workspace or from published artifacts to Azure storage account (Fileshare) path
“Az storage file upload “ az cli command works to upload files from azure Devops pipeline workspace to fileshare storage account
You could Azure file copy task in Azure pipeline to copy file from Azure pipeline to azure storage account. This task works only when run on Windows agents.
Az storage file upload is what y'all are looking for. Batch upload can be used to do files instead of directories. Despite what the website says a combination of connection string and share name will also work.
Since it took me a while to find it, here is the command to get the connection string and then reuse it later:
connectionString=$(az storage account show-connection-string -g **name of your resource group** -n **name of storage account** --query connectionString -o tsv )