Quickstart: Configure backup for an AKS cluster

In this quickstart, you configure vaulted backup for an Azure Kubernetes Service (AKS) cluster, and then use the Azure Backup configuration to back up specific items in the cluster.

You can use Azure Backup to back up AKS clusters by installing the Backup extension. The extension must be installed in the cluster. An AKS cluster backup includes cluster resources and persistent volumes that are attached to the cluster.

The Backup vault communicates with the cluster via the Backup extension to complete backup and restore operations.

Prerequisites

Before you configure vaulted backup for AKS cluster, ensure the following prerequisites are met:

Configure vaulted backup for an AKS cluster

  1. In the Azure portal, go to the AKS cluster that you want to back up.

  2. In the resource menu, select Backup, and then select Configure Backup.

  3. Select a Backup vault to use for the AKS instance backup.

    Screenshot that shows the Configure Backup page.

    The Backup vault must have Trusted Access enabled for the AKS cluster that you want to back up. To enable Trusted Access, select Grant permission. If it's already enabled, select Next.

    Screenshot that shows the review page for Configure Backup.

  4. Select a backup policy, which defines the schedule for backups and their retention period in both Operation and Vault-standard. Then select Next.

    Screenshot that shows the Backup policy tab.

  5. On the Datasources tab, select Add/Edit to define the backup instance configuration.

    Screenshot that shows the Add/Edit option on the Datasources tab.

  6. In the Select Resources to Backup pane, define the cluster resources that you want to back up. Learn more.

    Screenshot that shows how to select resources to add to the backup.

  7. For Snapshot resource group, select the resource group that you want to use to store the persistent volume (Azure Disk Storage) snapshots. Then select Validate.

    Screenshot that shows the Snapshot resource group dropdown.

When validation is finished, if required roles aren't assigned to the vault in the snapshot resource group, an error appears. Screenshot that shows a validation error.

  1. To resolve the error, under Datasource name, select the datasource, and then select Assign missing roles.

    Screenshot that shows how to resolve a validation error.

  2. When role assignment is finished, select Next.

    Screenshot that shows the resolved Configure Backup page.

  3. Select Configure backup.

  4. When the configuration is finished, select Next.

    Screenshot that shows the Review Configure Backup page.

    The backup instance is created when you finish configuring the backup.

    Screenshot that shows a backup configured for an AKS cluster.

Next step