#!/bin/bash SUBSCRIPTION_NAME="VtML - ML - MSRA" STORAGE_ACCOUNT_NAME=msramldl CONTAINER_NAME=backup SRC_PATH=/home/v-meiszhang/amlt-project/group-layout/infer_results/individual_samples/full_20251215_002635/checkpoint-1200 DEST_PATH=https://msramldl.blob.core.windows.net/backup/llm3d/infer_results/individual_samples EXPIRY_DAYS=1 az account set --subscription "$SUBSCRIPTION_NAME" EXPIRY=$(date -u -d "+${EXPIRY_DAYS} days" '+%Y-%m-%dT%H:%MZ') SAS_TOKEN=$(az storage container generate-sas \ --as-user \ --auth-mode login \ --account-name "$STORAGE_ACCOUNT_NAME" \ --name "$CONTAINER_NAME" \ --permissions dlrw \ --expiry "$EXPIRY" -o tsv) DEST_URL="https://${STORAGE_ACCOUNT_NAME}.blob.core.windows.net/${CONTAINER_NAME}/${SRC_PATH}?${SAS_TOKEN}" azcopy copy "$SRC_PATH" "$DEST_URL" --recursive=true