You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup-concept.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Azure Kubernetes Service (AKS) backup using Azure Backup prerequisites
3
3
description: This article explains the prerequisites for Azure Kubernetes Service (AKS) backup.
4
4
ms.topic: conceptual
5
5
ms.service: backup
6
-
ms.date: 03/20/2023
6
+
ms.date: 03/27/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -24,11 +24,11 @@ Azure Backup now allows you to back up AKS clusters (cluster resources and persi
24
24
25
25
- You need to install Backup Extension on both the source cluster to be backed up and the target cluster where the restore will happen.
26
26
27
-
- Backup Extension can be installed in the cluster from the *AKS portal* blade on the **Backup** tab under **Settings**. You can also use the Azure CLI commands to [manage the installation and other operations on the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#manage-operations).
27
+
- Backup Extension can be installed in the cluster from the *AKS portal* blade on the **Backup** tab under **Settings**. You can also use the Azure CLI commands to [manage the installation and other operations on the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#backup-extension-related-operations).
28
28
29
-
- Before you install an extension in an AKS cluster, you must register the `Microsoft.KubernetesConfiguration` resource provider at the subscription level. Learn how to [register the resource provider](azure-kubernetes-service-cluster-manage-backups.md#register-the-resource-provider).
29
+
- Before you install an extension in an AKS cluster, you must register the `Microsoft.KubernetesConfiguration` resource provider at the subscription level. Learn how to [register the resource provider](azure-kubernetes-service-cluster-manage-backups.md#resource-provider-registrations).
30
30
31
-
Learn [how to manage the operation to install Backup Extension using Azure CLI](azure-kubernetes-service-cluster-manage-backups.md#manage-operations).
31
+
Learn [how to manage the operation to install Backup Extension using Azure CLI](azure-kubernetes-service-cluster-manage-backups.md#backup-extension-related-operations).
32
32
33
33
## Trusted Access
34
34
@@ -38,9 +38,14 @@ Your Azure resources access AKS clusters through the AKS regional gateway using
38
38
39
39
For AKS backup, the Backup vault accesses your AKS clusters via Trusted Access to configure backups and restores. The Backup vault is assigned a pre-defined role **Microsoft.DataProtection/backupVaults/backup-operator** in the AKS cluster, allowing it to only perform specific backup operations.
40
40
41
-
Before you enable Trusted Access between a Backup vault and an AKS cluster, [enable a *feature flag* on the cluster's subscription](azure-kubernetes-service-cluster-manage-backups.md#enable-the-feature-flag).
41
+
To enable Trusted Access between a Backup vault and an AKS cluster, you must register the `TrustedAccessPreview` feature flag on `Microsoft.ContainerService` at the subscription level. Learn more [to register the resource provider](azure-kubernetes-service-cluster-manage-backups.md#enable-the-feature-flag).
42
+
43
+
Learn [how to enable Trusted Access](azure-kubernetes-service-cluster-manage-backups.md#register-the-trusted-access).
44
+
45
+
>[!Note]
46
+
>- You can install the Backup Extension on your AKS cluster directly from the Azure portal under the *Backup* section in AKS portal.
47
+
>- You can also enable Trusted Access between Backup vault and AKS cluster during the backup or restore operations in the Azure portal.
42
48
43
-
Learn [how to enable Trusted Access](azure-kubernetes-service-cluster-manage-backups.md#enable-trusted-access).
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup-support-matrix.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Azure Kubernetes Service (AKS) backup support matrix
3
3
description: This article provides a summary of support settings and limitations of Azure Kubernetes Service (AKS) backup.
4
4
ms.topic: conceptual
5
-
ms.date: 03/20/2023
5
+
ms.date: 03/27/2023
6
6
ms.custom: references_regions
7
7
ms.service: backup
8
8
author: jyothisuri
@@ -41,6 +41,8 @@ AKS backup is available in all the Azure public cloud regions, East US, North Eu
41
41
42
42
- Currently, the modification of backup policy and the modification of snapshot resource group (assigned to a backup instance during configuration of the AKS cluster backup) aren't supported.
43
43
44
+
- AKS cluster and Backup Extension pods should be in running state for any backup and restore operations to be performed. This includes deletion of expired recovery points.
45
+
44
46
- For successful backup and restore operations, role assignments are required by the Backup vault's managed identity. If you don't have the required permissions, you may see permission issues during backup configuration or restore operations soon after assigning roles because the role assignments take a few minutes to take effect. Learn about the [role definitions](azure-kubernetes-service-cluster-backup-concept.md#required-roles-and-permissions).
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-backup.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Back up Azure Kubernetes Service (AKS) using Azure Backup
3
3
description: This article explains how to back up Azure Kubernetes Service (AKS) using Azure Backup.
4
4
ms.topic: how-to
5
5
ms.service: backup
6
-
ms.date: 03/20/2023
6
+
ms.date: 03/27/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -24,7 +24,7 @@ Azure Backup now allows you to back up AKS clusters (cluster resources and persi
24
24
25
25
- You must [install the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#install-backup-extension) to configure backup and restore operations on an AKS cluster. Learn more [about Backup Extension](azure-kubernetes-service-cluster-backup-concept.md#backup-extension).
26
26
27
-
- Ensure that the `Microsoft.KubernetesConfiguration` and `Microsoft.DataProtection` providers are registered for your subscription before initiating backup configuration and restore operations.
27
+
- Ensure that `Microsoft.KubernetesConfiguration`, `Microsoft.DataProtection`, and the `TrustedAccessPreview` feature flag on `Microsoft.ContainerService`are registered for your subscription before initiating the backup configuration and restore operations.
28
28
29
29
- Ensure to perform [all the prerequisites](azure-kubernetes-service-cluster-backup-concept.md) before initiating backup or restore operation for AKS backup.
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-manage-backups.md
+50-54Lines changed: 50 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,129 +3,125 @@ title: Manage Azure Kubernetes Service (AKS) backups using Azure Backup
3
3
description: This article explains how to manage Azure Kubernetes Service (AKS) backups using Azure Backup.
4
4
ms.topic: how-to
5
5
ms.service: backup
6
-
ms.date: 03/20/2023
6
+
ms.date: 03/27/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
10
10
11
11
# Manage Azure Kubernetes Service backups using Azure Backup (preview)
12
12
13
-
This article describes how to manage Azure Kubernetes Service (AKS) backups using Azure CLI commands.
13
+
This article describes how to register resource providers on your subscriptions for using Backup Extension and Trusted Access. Also, it provides you with the Azure CLI commands to manage them.
14
14
15
-
Azure Backup now allows you to back up AKS clusters (cluster resources and persistent volumes attached to the cluster) using a backup extension, which must be installed in the cluster. Backup vault communicates with the cluster via this Backup Extension to perform backup and restore operations.
15
+
Azure Backup now allows you to back up AKS clusters (cluster resources and persistent volumes attached to the cluster) using a backup extension, which must be installed in the cluster. AKS cluster requires Trusted Access enabled with Backup vault, so that the vault can communicate with the Backup Extension to perform backup and restore operations.
16
16
17
-
## Manage operations
17
+
## Resource provider registrations
18
18
19
-
This section provides the set of Azure CLI commands to create, update, delete operations on the backup extension. You can use the *update* command to change the blob container where backups are stored along with compute limits for the underlying Backup Extension Pods.
19
+
- You must register these resource providers on the subscription before initiating any backup and restore operation.
20
+
- Once the registration is complete, you can perform backup and restore operations on all the cluster under the subscription.
20
21
21
-
## Register the resource provider
22
+
###Register the Backup Extension
22
23
23
-
To register the resource provider, run the following command:
24
+
To install Backup Extension, you need to register `Microsoft.KubernetesConfiguration` resource provider on the subscription. To perform the registration, run the following command:
24
25
25
26
```azurecli-interactive
26
27
az provider register --namespace Microsoft.KubernetesConfiguration
27
28
```
28
29
29
-
>[!Note]
30
-
>Don't initiate extension installation before registering resource provider.
31
-
32
-
### Monitor the registration process
33
-
34
30
The registration may take up to *10 minutes*. To monitor the registration process, run the following command:
35
31
36
32
```azurecli-interactive
37
33
az provider show -n Microsoft.KubernetesConfiguration -o table
38
34
```
39
35
40
-
### Install Backup Extension
36
+
### Register the Trusted Access
41
37
42
-
To install the Backup Extension, use the following command:
38
+
To enable Trusted Access between the Backup vault and AKS cluster, you must register *TrustedAccessPreview* feature flag on *Microsoft.ContainerService* over the subscription. To perform the registration, run the following commands:
To provide *Storage Account Contributor Permission* to the Extension Identity on storage account, run the following command:
56
+
1. Register the *TrustedAccessPreview* feature flag:
70
57
71
58
```azurecli-interactive
72
-
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name aksclustername --resource-group aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Account Contributor' --scope /subscriptions/subscriptionid/resourceGroups/storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/storageaccountname
59
+
az feature register --namespace "Microsoft.ContainerService" --name "TrustedAccessPreview"
73
60
```
61
+
62
+
It takes a few minutes for the status to show *Registered*.
74
63
75
-
### View Backup Extension installation status
64
+
1. Verify the registration status:
76
65
77
-
To view the progress of Backup Extension installation, use the following command:
66
+
```azurecli-interactive
67
+
az feature show --namespace "Microsoft.ContainerService" --name "TrustedAccessPreview"
68
+
```
69
+
70
+
1. When the status shows *Registered*, refresh the `Microsoft.ContainerService` resource provider registration:
78
71
79
72
```azurecli-interactive
80
-
az k8s-extension show --name azure-aks-backup --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg
73
+
az provider register --namespace Microsoft.ContainerService
81
74
```
82
75
83
-
## Enable the feature flag
76
+
## Backup Extension related operations
84
77
85
-
To enable the feature flag follow these steps:
78
+
This section provides the set of Azure CLI commands to perform create, update, or delete operations on the Backup Extension. You can use the update command to change compute limits for the underlying Backup Extension Pods.
79
+
80
+
### Install Backup Extension
86
81
87
-
1.To install the *aks-preview* extension, run the following command:
82
+
To install the Backup Extension, run the following command:
1. When the status shows as **Registered**, run the `az provider register` command to refresh the `Microsoft.ContainerService` resource provider registration.
115
+
### Grant permission on storage account
118
116
119
-
**Example**
117
+
To provide *Storage Account Contributor Permission* to the Extension Identity on storage account, run the following command:
120
118
121
119
```azurecli-interactive
122
-
az provider register --namespace Microsoft.ContainerService
120
+
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name aksclustername --resource-group aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Account Contributor' --scope /subscriptions/subscriptionid/resourceGroups/storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/storageaccountname
123
121
```
124
122
125
-
>[!Note]
126
-
>Don't initiate backup configuration before enabling the feature flag.
127
123
128
-
## Enable Trusted Access
124
+
## Trusted Access related operations
129
125
130
126
To enable Trusted Access between Backup vault and AKS cluster, use the following Azure CLI command:
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-restore.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Restore Azure Kubernetes Service (AKS) using Azure Backup
3
3
description: This article explains how to restore backed-up Azure Kubernetes Service (AKS) using Azure Backup.
4
4
ms.topic: how-to
5
5
ms.service: backup
6
-
ms.date: 03/03/2023
6
+
ms.date: 03/27/2023
7
7
author: jyothisuri
8
8
ms.author: jsuri
9
9
---
@@ -18,7 +18,7 @@ Azure Backup now allows you to back up AKS clusters (cluster resources and persi
18
18
19
19
- AKS backup allows you to restore to original AKS cluster (that was backed up) and to an alternate AKS cluster. AKS backup allows you to perform a full restore and item-level restore. You can utilize [restore configurations](#restore-configurations) to define parameters based on the cluster resources that will be picked up during the restore.
20
20
21
-
- You must [install the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#install-backup-extension) in the target AKS cluster. Also, you must [enable Trusted Access](azure-kubernetes-service-cluster-manage-backups.md#enable-trusted-access) between the Backup vault and the AKS cluster.
21
+
- You must [install the Backup Extension](azure-kubernetes-service-cluster-manage-backups.md#install-backup-extension) in the target AKS cluster. Also, you must [enable Trusted Access](azure-kubernetes-service-cluster-manage-backups.md#register-the-trusted-access) between the Backup vault and the AKS cluster.
22
22
23
23
For more information on the limitations and supported scenarios, see the [support matrix](azure-kubernetes-service-cluster-backup-support-matrix.md).
0 commit comments