Skip to content

Deprovision

What Will You Do

In part 3, you will:

  • Deprovision the AKS cluster and all associated infrastructure in Azure

Assumptions

This part assumes that you have completed Part 1 of this series and have a successfully provisioned an AKS cluster.


Step 1: Deprovision Cluster

In this step, we will deprovision the AKS cluster with a Terraform command. The controller will cleanup all cluster components in your Azure account.

  • Navigate to the terraform/pas_terraform/aks folder.
  • Execute the following command to begin deprovisioning the cluster.

    terraform destroy
    
  • Enter yes when prompted.

  • The cluster provision status will show " INFRA DELETION IN PROGRESS". Note, it can take approximately 30 minutes for the deletion to finish.

Cluster Delete

  • Once the deletion is complete, the cluster will be removed from the web console

Recap

Congratulations! At this point, you have successfully deprovisioned the AKS cluster and all associated infrastructure components in your Azure account.