You: "Deploy the new version to dev, then staging, then production - but only if tests pass at each stage"Copilot:1. Deploys to dev environment2. Runs automated tests3. If tests pass, deploys to staging4. Runs staging tests5. Waits for approval before production6. Deploys to production7. Monitors production health
You: "Set up a blue-green deployment for my-api in production"Copilot:1. Creates green environment (copy of blue)2. Deploys new version to green3. Runs health checks on green4. Switches traffic to green5. Monitors for issues6. Keeps blue as backup
You: "Deploy version 2.0 as a canary to 10% of production traffic"Copilot:1. Deploys new version alongside current2. Configures traffic split (90% old, 10% new)3. Monitors error rates4. Gradually increases traffic if healthy5. Rolls back if errors spike
You: "Create a complete staging infrastructure that mirrors production but with half the resources"Copilot:1. Analyzes production infrastructure2. Creates staging environment3. Clones all services4. Reduces resource allocations by 50%5. Adjusts database sizes6. Configures networking7. Sets up monitoring8. Validates complete setup
You: "Migrate all staging environments from cluster-east to cluster-west"Copilot:1. Lists all staging environments2. For each environment: - Creates new environment in cluster-west - Deploys all services - Migrates data - Validates functionality - Switches DNS/routing - Deletes old environment3. Reports migration summary
You: "Stop all development environments tonight at 8 PM"Copilot:1. Identifies all development environments2. Schedules shutdown task for 8 PM3. Confirms scheduled action4. Executes at specified time5. Sends notification when complete
You: "Deploy the hotfix to production tomorrow at 2 AM"Copilot:1. Validates hotfix is ready2. Schedules deployment for 2 AM3. Sets up pre-deployment checks4. Executes deployment at scheduled time5. Monitors post-deployment health6. Alerts team of completion
You: "Every weekday at 6 PM, stop all dev and staging environments"Copilot:1. Creates recurring schedule (Mon-Fri at 6 PM)2. Identifies target environments3. Configures automatic shutdown4. Sends daily summary reports5. Maintains schedule until cancelled
You: "Start all development environments every morning at 8 AM on weekdays"Copilot:1. Sets up recurring schedule (Mon-Fri at 8 AM)2. Lists all dev environments3. Configures automatic startup4. Ensures environments are ready by 8:30 AM5. Notifies team when environments are available
You: "Run database backups every night at 2 AM and keep for 7 days"Copilot:1. Creates nightly backup schedule (2 AM daily)2. Configures backup retention (7 days)3. Sets up backup verification4. Monitors backup success/failure5. Alerts on backup issues6. Manages automatic cleanup of old backups
You: "Automatically scale down all non-production services to minimum replicas on weekends"Copilot:1. Identifies non-production environments2. Creates weekend schedule (Fri 6 PM to Mon 8 AM)3. Records current replica counts4. Scales to minimum on Friday evening5. Restores original counts Monday morning6. Reports weekly cost savings
You: "During business hours (9 AM - 6 PM), ensure production has 5 replicas. Outside hours, scale to 2 replicas."Copilot:1. Sets up two recurring schedules2. Scale up schedule: Weekdays 9 AM (to 5 replicas)3. Scale down schedule: Weekdays 6 PM (to 2 replicas)4. Monitors application performance during transitions5. Tracks cost savings from reduced off-hours capacity
You: "Every Sunday from 2 AM to 4 AM, perform maintenance on staging: update all services, run database optimization, clear caches"Copilot:1. Creates weekly maintenance window (Sun 2-4 AM)2. Schedules sequential tasks: - 2:00 AM: Deploy latest versions to all services - 2:30 AM: Run database optimization scripts - 3:00 AM: Clear application caches - 3:30 AM: Run health checks3. Monitors each task completion4. Sends maintenance report at 4 AM5. Alerts if any task fails
You: "If CPU usage stays above 80% for more than 30 minutes during business hours, scale up. After 6 PM, just alert me instead."Copilot:1. Sets up time-based conditional rules: - Business hours (9 AM - 6 PM): Auto-scale on high CPU - After hours (6 PM - 9 AM): Alert only2. Monitors CPU metrics continuously3. During business hours: - Detects sustained high CPU - Automatically scales up - Notifies of action taken4. After hours: - Detects sustained high CPU - Sends alert without scaling - Waits for manual intervention
You: "Create a preview environment for PR #123 and automatically delete it in 7 days or when the PR is merged"Copilot:1. Creates preview environment for PR #1232. Deploys PR branch3. Sets up two deletion triggers: - Time-based: Auto-delete after 7 days - Event-based: Auto-delete on PR merge4. Monitors PR status5. Deletes environment when either condition is met6. Notifies team of deletion
You: "Every Monday, delete all feature environments older than 2 weeks"Copilot:1. Creates weekly cleanup schedule (Mondays)2. Scans for feature environments3. Identifies environments older than 2 weeks4. Checks for recent activity5. Deletes inactive old environments6. Sends weekly cleanup report7. Reports cost savings from cleanup
You: "Backup production, make breaking changes to staging, then restore if needed"Copilot:1. Takes snapshot of production state2. Applies changes to staging3. Monitors for issues4. If problems detected: - Automatically restores from snapshot - Documents what went wrong - Suggests fixes
You: "If production goes down, automatically failover to DR region"Copilot:1. Monitors production health2. If failure detected: - Validates DR environment is healthy - Switches DNS to DR region - Notifies team - Provides status dashboard3. When production recovers: - Syncs data - Fails back to primary
You: "For all feature branches older than 2 weeks: stop them if inactive, delete them if older than 1 month"Copilot:1. Lists all feature branch environments2. Checks last activity for each3. Categorizes by age and activity4. Stops inactive 2-week-old environments5. Deletes 1-month-old environments6. Generates cleanup report7. Calculates cost savings
You: "Update the API_VERSION environment variable to 2.0 across all environments"Copilot:1. Lists all environments2. For each environment: - Finds services with API_VERSION - Updates value to 2.0 - Triggers redeployment - Waits for healthy status3. Reports success/failures
You: "When a new tag is pushed, automatically deploy to staging, run tests, and notify Slack"Copilot:1. Sets up webhook for new tags2. On tag event: - Deploys to staging - Waits for deployment - Runs integration tests - If tests pass: - Notifies Slack with success - Creates production deployment plan - If tests fail: - Rolls back staging - Notifies Slack with failure details - Logs for review
You: "I need to deploy a hotfix immediately - bypass normal pipeline"Copilot:1. Identifies hotfix branch2. Creates emergency deployment plan3. Deploys directly to production4. Monitors closely for issues5. Documents hotfix deployment6. Reminds to backport to main
You: "Migrate the database from PostgreSQL 13 to 15 with zero downtime"Copilot:1. Creates new PostgreSQL 15 database2. Sets up replication from old to new3. Monitors replication lag4. When in sync: - Switches application to new database - Monitors for errors - Keeps old database as backup5. After validation period: - Removes old database - Updates documentation
You: "Archive all data from environments deleted more than 3 months ago"Copilot:1. Identifies deleted environments2. Locates associated data3. Creates archive storage4. Exports data to archive5. Verifies archive integrity6. Removes from active storage7. Updates inventory
You: "Review who has access to production and ensure least privilege"Copilot:1. Lists all users with production access2. Reviews access levels3. Identifies overly permissive access4. Suggests access reductions5. Generates access audit report