Hi James Lux,
Yes, it’s possible to perform operations on Azure Blob Storage using CURL. Here are some examples of how you can list and put blobs using CURL:
List Blobs
curl -I -X <HTTP Verb> -H "x-ms-version: 2019-12-12" "https://storageAccountName.blob.core.windows.net/containerName?restype=container&comp=list&SASToken"
In this command, replace <HTTP Verb> with GET, storageAccountName with your storage account name, containerName with the name of your container, and SASToken with your SAS token1.
Put Blob
curl -i -X <HTTP Verb> -H "x-ms-version: 2019-12-12" -H "x-ms-date: <Date and Time in GMT format>" -H "x-ms-blob-type: Blob Type" -H "Content-Length: <Length of the blob>" -d "Blob data/content" "https://storageAccountName.blob.core.windows.net/containerName/blobname?SASToken"
In this command, replace <HTTP Verb> with PUT, storageAccountName with your storage account name, containerName with the name of your container, blobname with the name of your blob, and SASToken with your SAS token1. Also, replace <Date and Time in GMT format>, Blob Type, and <Length of the blob> with the appropriate values1.
Reference:
- https://techcommunity.microsoft.com/t5/azure-paas-blog/performing-simple-blob-storage-rest-api-operations-using-curl/ba-p/3302552
- https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/tutorial-linux-vm-access-storage
- https://stackoverflow.com/questions/57721242/how-to-upload-a-file-from-azure-blob-storage-to-linux-vm-created-on-azure
If the information helped address your question, please Accept the answer.
Luis