From the course: Introduction to Terraform on Azure
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Destroying our provisioned resources
From the course: Introduction to Terraform on Azure
Destroying our provisioned resources
- [Instructor] Now we are done creating models for the compute database and webapp resources, and it's time to destroy these modules. There are certain times you try to destroy resources and you may encounter some error. I'm going to show you what to do when you find yourself in such a situation. Now before I proceed, remember we referenced the model, the database, the connection string in our webapp model. So I want to show you where to confirm that. So if you go to the webapp resource group. And then you click on the app service. Now make sure to expand settings and click Environment Variables. And in here you see the database connection string. If you click on Show Value, you'll see that it's referencing the server name and the database name of the SKL server. Now to destroy these three resources we've deployed, back in my IDE, I'll clear screen and then run terraform destroy. Now you see that 14 resources will be destroyed. So let's type yes to proceed. They destroy is complete…
Contents
-
-
-
-
-
-
Why use modules?5m 57s
-
(Locked)
Defining variable for compute module7m 47s
-
(Locked)
Defining compute infrastructure11m 6s
-
(Locked)
Reference and deploy compute module10m 42s
-
(Locked)
Defining Azure SQL database module10m 18s
-
(Locked)
Defining an Azure Web App module13m 49s
-
(Locked)
Deploying our modules6m 6s
-
(Locked)
Destroying our provisioned resources2m 18s
-
-
-