Author: SULAIMAN ALSHAMMARI
Domain: GRATECH.SA
Version: 2.0 Ultimate Professional Edition
Date: 2025-11-25
- GRATECH_LAUNCH_MASTER.sh (4.5KB)
- Complete launch automation
- Emergency recovery protocol
- Power BI integration examples
- DNS & SSL configuration
- GitHub Pages deployment
chmod +x GRATECH_LAUNCH_MASTER.sh
./GRATECH_LAUNCH_MASTER.sh- ✅ Pre-flight checks (git, az, curl)
- 🧹 Cleans old failed projects
- 📤 Uploads package to GitHub
- 🌐 Configures GitHub Pages
- 🔐 Sets up DNS & SSL for GRATECH.SA
- 🌍 Restarts WebApp & verifies
- ✅ Verifies API Gateway
- 📦 Creates backup
- 🚨 Emergency recovery protocol
- 📊 Power BI dashboard examples
-
API Latency Trend (Line Chart)
AvgLatency = AVERAGE(Logs[ResponseTime]) -
Error Rate Heatmap
TotalErrors = COUNTROWS(FILTER(Logs, Logs[Status] = "Error")) -
User Engagement Funnel
- Metrics: Sessions → Actions → Conversions
-
System Uptime Gauge
- Target: 99.95%
-
Security Alerts Table
- Columns: AlertType, Severity, ResolutionStatus
The script includes automatic emergency recovery:
- Stops stuck processes (uvicorn, next)
- Restarts nginx & backend services
- Restarts PM2 applications
- Health checks for frontend & backend
- Line 34: Replace
YOUR-ORGwith your GitHub organization - Line 42: Replace
<PASSWORD>with your SSL certificate password - Line 47: Update webapp name if different
- Line 51: Add your API subscription key
- ✅ Azure CLI installed and logged in (
az login) - ✅ Git configured with SSH keys
- ✅ curl installed
- ✅ GitHub repository created
| Service | Monthly Cost |
|---|---|
| WebApp | $50-100 |
| API Gateway | $50 |
| DNS Zone | $0.50 |
| SSL Certificate | Free (Let's Encrypt) |
| TOTAL | ~$100-150/month |
After execution, you should see:
- ✅ All prerequisites satisfied
- ✅ Old projects removed
- ✅ Package uploaded to GitHub
- ✅ GitHub Pages configured
- ✅ DNS & SSL configured
- ✅ WebApp restarted successfully
- ✅ API Gateway responding
- ✅ Backup created
- ✅ Emergency recovery complete
- ✅ Power BI examples generated
- Verify GRATECH.SA resolves correctly
- Test SSL certificate (https://gratech.sa)
- Check GitHub Pages live
- Test API Gateway endpoints
- Connect Power BI to Azure Log Analytics
- Configure alerts in Azure Monitor
- Test emergency recovery procedure
- Document any custom changes
Prepared by: SULAIMAN ALSHAMMARI
Domain: GRATECH.SA
Email: admin@gratech.sa
✅ Color-coded output for easy monitoring
✅ Comprehensive error handling
✅ Automatic rollback on failures
✅ Emergency recovery protocol
✅ Power BI integration ready
✅ GitHub Pages deployment
✅ DNS & SSL automation
✅ Complete backup system
✅ Professional logging
✅ Production-ready
🚀 Ready for Immediate Execution
© 2025 SULAIMAN ALSHAMMARI - GRATECH.SA
All Rights Reserved