Least privilege permissions for az storage blob upload-batch?

Least privilege permissions for az storage blob upload-batch?

WebYou can use upload-batch: az storage blob upload-batch --destination ContainerName --account-name YourAccountName --destination-path DirectoryInBlob --source /path/to/your/data This copies all files found in the source directory to the target directory in the blob storage. Either a SAS-Token (via --sas-token) or account key has to be specified. WebMar 14, 2024 · A simple code example that takes a pipeline input of file names, appends an optional date stamp and uploads the file(s) to Azure Storage. It needs the new Azure Az Module. 858 crisp ct walton ky WebOct 25, 2024 · Hi Seth, according to the docs, "A blob in the root container cannot include a forward slash (/) in its name."Thus, upload-batch will only upload the files on the first level as blobs in subdirectories have names that include their path from the container. If you want to batch upload files recursively, a non-root container must be used. Sorry for the … WebAug 4, 2024 · If you want to upload to Azure Blob Storage, you would need to use az storage blob upload. Your command would be something like: az storage blob upload --account-key "KEY" --account-name myaccountname --container-name containername --file .\file.txt. Share. Improve this answer. 858 city code us WebAug 29, 2024 · Add a comment. 1. You could use Acquire lease of the blob (in the portal or use az storage blob lease acquire ), then use the command az storage blob delete-batch to delete other blobs. If you lease the blob, the blob could not be deleted, if you want to delete it, just break the lease in the portal or use az storage blob lease break. 858 bus last stop WebSep 21, 2024 · I'm using the Azure CLI like this: az storage blob upload-batch -s . -d container/directory --account-name myaccount When giving the service principal contributor access, it works as expected. However, I would like to lock down permissions so that the service principal is allowed to add files, but not delete, for example.

Post Opinion