Skip to content

Commit 880bcec

Browse files
authored
Add automated Azure cleanup script
This script automates the cleanup of all Azure resources in the specified resource group.
1 parent c73ccf6 commit 880bcec

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# =========================================
4+
# Full-Stack Fully Automated Azure Cleanup
5+
# Deletes all Azure resources in the resource group
6+
# =========================================
7+
8+
RESOURCE_GROUP="fullstack-rg"
9+
10+
echo "☁️ Starting automated Azure cleanup..."
11+
echo "Deleting Azure Resource Group '$RESOURCE_GROUP' and all associated resources..."
12+
13+
az login --only-show-errors
14+
15+
az group delete --name $RESOURCE_GROUP --yes --no-wait
16+
17+
echo "✅ Azure cleanup initiated."
18+
echo "Note: It may take a few minutes for Azure to fully remove all resources."

0 commit comments

Comments
 (0)