#How do I deploy a full stack application to Azure?

1 messages · Page 1 of 1 (latest)

spring steppe
#

Hello all, I was wondering if there is a way to deploy a full stack application to azure in such a way that if a deployment fails it will "roll back" the entire process. What I'm looking for is something akin to a database transaction.

My application consists of a static website hosted in a blob container, a function app and an sql database. What I want to achieve is to run a script that will deploy my website, my azure function and my database schema in one go but with the condition I mentioned before that if anything fails it will discard the entire process.

Thank you for your input!

charred oriole
#

You can't deploy multiple infrastructure components as a single atomic action, but you can certainly roll back a failed deployment.

How you go about it would depend on your IaC software. For example in Terraform its simply terraform destroy to deprovision deployed resources, which works even for a partial failed deployment.