Beginnerautomation
CloudCostChefs CSV Tag Chef for Azure & OCI
A Python script suite that reads a CSV and seasons your Azure Resource Groups and OCI compartments with the five core tags—Environment, Owner, CostCenter, Project, and Application—without portal clicks.
⏱️ Prep Time:Brew a pot of coffee and sip
🧩 Difficulty:Beginner
🔍 What It Does
- 🔄 Bulk tag Azure RGs or OCI compartments in one run
- ✅ Merges new tags with existing tags—no accidental overwrites
- 📊 Simple CSV input with columns: ResourceGroupName, SubscriptionId (for Azure) and CompartmentName (for OCI), plus Environment, Owner, CostCenter, Project, Application
- 🛠️ Uses only Python, pandas, and Azure/OCI SDKs—no extra fluff
- 📝 Logs every action to console and file for audit and debugging
⚙️ Requirements Checklist
- ✅ Python 3.7+
- ✅ `pandas`, `azure-identity`, `azure-mgmt-resource`, and `oci` packages installed
- ✅ `az login` or managed identity for Azure authentication
- ✅ OCI config file (~/.oci/config) with a profile that has compartment tagging permissions
- ✅ A CSV file with required columns (see sample above)
📌 Talk Nerdy Tip:
Tags are like breadcrumbs in the cloud forest—leave the five essentials and your cost audits become a cakewalk.
taggingcost-optimizationautomationfinopscsv