This consist python function to delete unused disks of microsoft azure
- Install and setup python virtual env
- git clone https://github.com/regelcloud/azure-delete-unused-disks.git
- cd azure-delete-unused-disks
- python3 -m venv venv
- source venv/bin/activate
- Set Azure Credentials
- open
delete_unused_disks.py
- Add below azure creds
os.environ['AZURE_SUBSCRIPTION_ID'] = ""
os.environ['AZURE_CLIENT_ID'] = ""
os.environ['AZURE_CLIENT_SECRET'] = ""
os.environ['AZURE_TENANT_ID'] = ""
- Run script to cleanup unused disks from account>
python delete_unused_disks.py --resource-group <ResourceGroupName>
In case of any issues or bugs please reach to us sales@regelcloud.com