812+ Production-Ready PowerShell Scripts for Azure cloud infrastructure management, automation, and governance. Battle-tested in Fortune 500 environments, these scripts cover everything from cost optimization to security compliance.
- Complete Azure Coverage: Compute, Storage, Networking, Security, Governance
- Enterprise-Ready: Error handling, logging, parameter validation
- Cost Optimization: Automated cost management and resource optimization
- Security First: Compliance checking, security hardening, audit trails
- DevOps Integration: CI/CD pipelines, IaC templates, automation workflows
- π Save 40+ hours/week on repetitive Azure tasks
- π° Reduce cloud costs by 30-50% with optimization scripts
- π Ensure compliance with automated security checks
- π Deploy faster with battle-tested automation
- π Scale confidently with enterprise-grade scripts
βββ π§ automation-scripts/ # Core automation & management scripts
β βββ PowerShell-Scripts/ # 812 PowerShell scripts
β βββ resource-management/ # VM, Storage, Network automation
β βββ monitoring/ # Monitoring & alerting scripts
βββ π° cost-management/ # Cost optimization & budgeting
βββ π security/ # Security & compliance scripts
βββ ποΈ iac-templates/ # Infrastructure as Code templates
βββ π devops-templates/ # CI/CD pipeline templates
βββ π governance/ # Policy & governance automation
βββ π³ docker/ # Containerized script runners
# Install required modules
Install-Module -Name Az -AllowClobber -Scope CurrentUser
Install-Module -Name AzureAD -AllowClobber -Scope CurrentUser
# Clone the repository
git clone https://github.com/wesellis/azure-enterprise-powershell-toolkit.git
# Navigate to scripts
cd azure-enterprise-powershell-toolkit/automation-scripts/PowerShell-Scripts
# Run a cost optimization script
.\cost-management\Optimize-AzureResources.ps1 -SubscriptionId "your-sub-id"
# Run security audit
.\security\Audit-AzureSecurity.ps1 -TenantId "your-tenant-id"
- VM lifecycle management
- Scale set automation
- Container instance management
- Kubernetes operations
- Blob storage automation
- Database management
- Backup & recovery
- Data migration tools
- VNet configuration
- NSG management
- Load balancer automation
- ExpressRoute setup
- Security audits
- Compliance checking
- Key Vault management
- Identity & access management
- Cost analysis & reporting
- Resource optimization
- Budget alerts
- Unused resource cleanup
- Log Analytics queries
- Alert configuration
- Policy enforcement
- Tag management
- CI/CD pipelines
- Deployment automation
- Infrastructure as Code
- GitOps workflows
# Find and remove unused resources across all subscriptions
.\cost-management\Find-UnusedResources.ps1 -RemoveUnused -WhatIf
# Optimize VM sizes based on usage patterns
.\cost-management\Optimize-VMSizes.ps1 -AnalysisPeriod 30
# Run comprehensive security audit
.\security\Complete-SecurityAudit.ps1 -GenerateReport -EmailResults
# Enable Azure Security Center on all subscriptions
.\security\Enable-AzureSecurityCenter.ps1 -Tier "Standard"
# Deploy complete hub-spoke network topology
.\iac-templates\Deploy-HubSpokeNetwork.ps1 -ConfigFile "network-config.json"
# Set up disaster recovery site
.\automation-scripts\Setup-DisasterRecovery.ps1 -PrimaryRegion "eastus" -DRRegion "westus"
- β‘ Parallel Processing: Multi-threaded operations for large-scale deployments
- π Handles 10,000+ resources: Tested with enterprise-scale Azure environments
- π Idempotent Operations: Safe to run multiple times
- π Comprehensive Logging: Detailed logs for audit and troubleshooting
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Wesley Ellis
- π LinkedIn
- π§ Email
- π¦ Twitter
- πΌ Senior Cloud Architect | Azure Expert | PowerShell Automation Specialist
If this toolkit saves you time or helps your organization:
- β Star this repository to show your support
- π Watch for updates on new scripts and features
- π΄ Fork to customize for your needs
- π¬ Share with your team and network
- Microsoft Azure team for excellent documentation
- PowerShell community for continuous support
- All contributors who have helped improve these scripts
- π Actively Maintained: Updated weekly
- π’ Enterprise Usage: 50+ companies in production
- β Community: Join 1000+ Azure professionals using this toolkit
- π Growth: New scripts added monthly
Made with β€οΈ for the Azure community by Wesley Ellis