This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Author: Matt Szafir | |
## Description: This script is inteded to be used to shut down resources at the end of the day to save costs while developing in Azure | |
# Currently only doing VMs and Synapse SQL Pools | |
## Requirements: bash >= 4 | |
# az cli version? | |
# az login already run | |
## TODO: add logging & perhaps integrate with a morning script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#### DEFINE VARIABLES #### | |
echo "DEFINING VARIABLES" | |
randomNumber=$((1 + RANDOM % 1000)) | |
resourceGroupName="synapsePOC" | |
location="eastus2" | |
synapseStorageAccount="synapsestorageaccount$randomNumber" # synapseStorageAccount### | |
synapseFileSystem="synapsefilesystem$randomNumber" # synapseFileSystem### This is basically a container | |
synapseWorkspaceName="synapseworkspace$randomNumber" |