Prerequisite: The same prerequisites that are required to deploy the infrastructure are also needed on the machine from which you plan to remove the infrastructure, see Setup requirements.
CAUTION:
Prior to destroying the infrastructure, ensure that you have a backup, as all components, including data, will be destroyed when you run the destroy command. Additionally, it is important that you stop the App Service before running the destroy command.
- Sign in to your Microsoft Azure account and stop the App Service.
- Navigate to the
infra/azure/configfolder. - Run the following command:
terraform plan -destroy -out=destroyplan --var-file=dqplus.tfvars && terraform apply destroyplanNote: If you are not using the same machine that you used to create the infrastructure, ensure that you are running the destroy command in theinfra/azure/configdirectory, and that you have copied the four files that were created after deploying the infrastructure into this location (see step 7 in the "Creating the infrastructure" topic). - When asked if you want to proceed, type
yes
Tip: If you receive an error, try repeating the above steps to rule out the possibility of a transient network issue.