Improving the apps in production

Azure App Services

Florin Angelescu

Azure Cloud Architect

A better way to deploy changes

Deployment Slots

With slots:

  • We can test changes in a staging environment
  • Before pushing them to production
Azure App Services

How deployment slots work

Deployment Slots

  • A deployment slot is like a copy of your Web App
  • With its own hostname and configuration
Azure App Services

How deployment slots work

Deployment Slots

  • Deploy your changes to the slot
  • Test them safely
  • Swap the slot into production
Azure App Services

Deploying the UI change

Deployment Slots

  • Create a staging slot for our Web App
  • Deploy the updated order form there
  • The production app continues running as before
Azure App Services

Testing in staging

Deployment Slots

  • The form renders correctly
  • Submits orders properly
  • Calls the Function back-end as expected
Azure App Services

Testing in staging

Deployment Slots

  • The slot shares most configuration with the production app
  • The test environment closely mirrors reality
Azure App Services

Swapping to production

Deployment Slots

  • Swap the staging slot into production
  • Azure handles the traffic redirection seamlessly
  • We could also roll back by swapping again
Azure App Services

Benefits of this approach

Deployment Slots

  • Deployment slots help teams innovate safely
  • Separate testing from live traffic, reduce risk, and support controlled rollouts
Azure App Services

Let's practice!

Azure App Services

Preparing Video For Download...