- python3
- pip
- Linux/Windos+WSL
- Azure subscription
- Azure credentials (Client ID, Client Secret, Tenant ID)
- Install the required packages:
./setup_environment.sh
- Create you env file using .env.example
The script was created to receive params, so you can pass params as needed
Example:
python3 ./azure_resources.py --create-all
And All resources would be created
As requested, you can stop, start, delete and recreate VM with the following parameters
python3 ./azure_resources.py --stop-vm
python3 ./azure_resources.py --start-vm
python3 ./azure_resources.py --delete-vm
python3 ./azure_resources.py --create-vm
To avoid problems when a retry occur, before create a new resource the script verify if it already created and ignore it. thats avoid to create duplicated resources too.