Destroy ArcGIS Enterprise on Kubernetes in Azure - Esri/arcgis-gitops GitHub Wiki

This walkthrough will guide you through the process of destroying deployments of ArcGIS Enterprise on Kubernetes in Microsoft Azure that were deployed with Deploy ArcGIS Enterprise on Kubernetes in Azure walkthrough.

The walkthrough uses azure/arcgis-enterprise-k8s template.

Duration: about 10 minutes

Prerequisites

Before you begin this walkthrough:

You will need the following resources and accounts:

  • GitHub.com user account

Step 1: Create and Configure a Codespace Workspace

This step creates a codespace workspace in the "gitops-demo" repository.

1.1 Log in to GitHub.com account

Open the GitHub.com URL in a web browser, log in to your GitHub.com account, and select "gitops-demo" private repository from the "Your repositories" list.

1.2 Create a codespace workspace

In the "gitops-demo" repository, click the green <> Code button, switch to the "Codespaces" tab, and click the Create codespace on main button. The codespace will be created and opened in a new browser tab.

Instead of creating a codespace, you can also reuse the codespace created in Getting Started in Azure walkthrough if it is still available. In this case, you can skip this step and go to Step 1.5.

Step 2: Destroy the ArcGIS Enterprise on Kubernetes Deployment

This step cleans up the Azure resources used by the ArcGIS Enterprise on Kubernetes deployment.

2.1 Back up the deployment

Before destroying the deployment, it is recommended to create a backup of the deployment. The backup will be stored in the site's backups Azure Blob Storage container.

Run "enterprise-k8s-azure-backup" workflow in the GitHub Actions tab of the repository with the main branch to back up the deployment.

2.2 Destroy the deployment

Run the "enterprise-k8s-azure-destroy" workflow with the main branch to destroy the ArcGIS Enterprise on Kubernetes deployment.

The workflow does not destroy the deployment's backups.

Step 3: Update the Configuration Files

This step updates the configuration files in the "gitops-demo" repository to remove the ArcGIS Enterprise on Kubernetes deployment from the site.

3.1 Remove the deployment from the site index

In the EXPLORER sidebar of the codespace window, click on the "config" folder and then on "azure" subfolder. Double-click on "site-index.json" file to open it in the editor.

Remove the "arcgis-enterprise-k8s" entry from the "deployments" property array in config/azure/site-index.json file.

3.2 Commit and push the changes to the repository

git add --all
git commit -m "Remove arcgis-enterprise-k8s from site-index.json"
git push origin main

Conclusion

This walkthrough demonstrated how to destroy a deployment of ArcGIS Enterprise on Kubernetes in Azure that was deployed with Deploy ArcGIS Enterprise on Kubernetes in Azure walkthrough.