Skip to content

Instantly share code, notes, and snippets.

View crowne's full-sized avatar

Neil Crow crowne

View GitHub Profile
@RNHTTR
RNHTTR / AzureUploadLargeBlob.sh
Last active February 23, 2024 19:35
A simple shell script using cURL and the Azure REST API to upload large files (> 100MB) to Azure Storage
#!/bin/bash
echo "\nEnter your storage account name:"
read AZ_ACCOUNT_NAME
echo "\nEnter your container name:"
read AZ_BLOB_CONTAINER
echo "\nEnter your SAS token (just hit ENTER/RETURN if not applicable):"
read AZ_SAS_TOKEN
DATE_NOW=$(date -Ru | sed 's/\+0000/GMT/')