az cli and other azure scripts for fun
python ~/azure_scripts/storage/az_set_tier_blob.py -a account -c container -p path/inner_dir -f Cool -t Cold
- Goto container in azure portal
- Generate SAS for specific blob
- Create a json file
{
"AZURE_STORAGE_SAS_TOKEN":"secret!"
}
- Encrypt it
~/azure_scripts/json_to_aes_file.sh file.json
- Delete the json file