Scripts
Here I keep the scripts I use to automate my work.
Work with blobs in Azure Storage Account
The script work_with_tfstates_blobs.sh allows you to perform the following operations on blobs in an Azure Storage Account:
- Download
- Upload
- Break lease
- Take snapshot
Tip
Before running the script, make sure you have the az
CLI installed and authenticated with the Azure subscription.
Please set the following variables in the script to match your needs:
export SKIP_LOGGING=true # Set to true if you already logged in AZ CLI
export AZ_SA_RG_NAME="tfstates"
export no_proxy="<LIST OF URLs TO BYPASS PROXY>"
export https_proxy="<PROXY URL>"
export http_proxy="<PROXY URL>"
To run the script, execute the following command:
./work_with_tfstates_blobs.sh
Info
The script is tested on macOS Sonoma.