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
+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
@@ -5,7 +5,7 @@ ms.topic: overview
5
5
ms.service: azure-backup
6
6
ms.custom:
7
7
- ignite-2023
8
-
ms.date: 09/09/2024
8
+
ms.date: 01/21/2025
9
9
author: jyothisuri
10
10
ms.author: jsuri
11
11
---
@@ -120,5 +120,5 @@ Also, as part of the backup and restore operations, the following roles are assi
120
120
-[About Azure Kubernetes Service backup](azure-kubernetes-service-backup-overview.md)
121
121
-[Supported scenarios for Azure Kubernetes Service cluster backup](azure-kubernetes-service-cluster-backup-support-matrix.md)
122
122
- Back up Azure Kubernetes Service cluster using [Azure portal](azure-kubernetes-service-cluster-backup.md), [Azure PowerShell](azure-kubernetes-service-cluster-backup-using-powershell.md)
123
-
-[Restore Azure Kubernetes Service cluster](azure-kubernetes-service-cluster-restore.md)
123
+
- Restore Azure Kubernetes Service cluster using [Azure portal](azure-kubernetes-service-cluster-restore.md), [Azure CLI](azure-kubernetes-service-cluster-restore-using-cli.md)
124
124
-[Manage Azure Kubernetes Service cluster backups](azure-kubernetes-service-cluster-manage-backups.md)
Copy file name to clipboardExpand all lines: articles/backup/azure-kubernetes-service-cluster-restore-using-cli.md
+41-33Lines changed: 41 additions & 33 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 CLI
3
3
description: This article explains how to restore backed-up Azure Kubernetes Service (AKS) using Azure CLI.
4
4
ms.topic: how-to
5
5
ms.service: azure-backup
6
-
ms.date: 11/21/2024
6
+
ms.date: 01/21/2025
7
7
ms.custom:
8
8
- devx-track-azurecli
9
9
- ignite-2023
@@ -25,6 +25,8 @@ You can perform both *Original-Location Recovery (OLR)* (restoring in the AKS cl
25
25
26
26
## Before you start
27
27
28
+
Before you start restoring an AKS cluster, review the following details:
29
+
28
30
- 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-to-an-aks-cluster) to define parameters based on the cluster resources that are to be restored.
29
31
30
32
- 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#trusted-access-related-operations) between the Backup vault and the AKS cluster.
@@ -37,37 +39,39 @@ For more information on the limitations and supported scenarios, see the [suppor
37
39
38
40
Before you initiate a restore process, you must validate that AKS cluster is prepared for restore. It includes the Backup Extension to be installed with the extension having the permission on storage account where backups are stored/hydrated with Trusted Access enabled between target AKS cluster and Backup vault.
39
41
40
-
First, check if Backup Extension is installed in the cluster by running the following command:
42
+
To validate and prepare AKS cluster for restore, run the following commands:
41
43
42
-
```azurecli
43
-
az k8s-extension show --name azure-aks-backup --cluster-type managedClusters --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup
44
-
```
44
+
1. Check if Backup Extension is installed in the cluster.
45
45
46
-
If the extension is installed, then check if it has the right permissions on the storage account where backups are stored:
46
+
```azurecli
47
+
az k8s-extension show --name azure-aks-backup --cluster-type managedClusters --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup
48
+
```
47
49
48
-
```azurecli
49
-
az role assignment list --all --assignee $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv)
50
-
```
50
+
2. If the extension is installed, then check if it has the right permissions on the storage account where backups are stored.
51
51
52
-
If the role isn't assigned, then you can assign the role by running the following command:
52
+
```azurecli
53
+
az role assignment list --all --assignee $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv)
54
+
```
53
55
54
-
```azurecli
55
-
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Account Contributor' --scope /subscriptions/$subscriptionId/resourceGroups/$storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/$storageaccount
56
+
3. If the role isn't assigned, then assign the role.
56
57
57
-
```
58
+
```azurecli
59
+
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Account Contributor' --scope /subscriptions/$subscriptionId/resourceGroups/$storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/$storageaccount
58
60
59
-
If the Backup Extension isn't installed, then running the following extension installation command with the *storage account and blob container where backups are stored* as input.
4. If the Backup Extension isn't installed, then run the following extension installation command with the *storage account and blob container where backups are stored* as input.
64
64
65
-
Then assign the required role to the extension on the storage account by running the following command:
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Blob Data Contributor' --scope /subscriptions/$subscriptionId/resourceGroups/$storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/$storageaccount
69
+
5. Assign the required role to the extension on the storage account.
69
70
70
-
```
71
+
```azurecli
72
+
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name $targetakscluster --resource-group $aksclusterresourcegroup --cluster-type managedClusters --query aksAssignedIdentity.principalId --output tsv) --role 'Storage Blob Data Contributor' --scope /subscriptions/$subscriptionId/resourceGroups/$storageaccountresourcegroup/providers/Microsoft.Storage/storageAccounts/$storageaccount
73
+
74
+
```
71
75
72
76
## Check Trusted Access
73
77
@@ -85,28 +89,32 @@ az aks trustedaccess rolebinding create --cluster-name $targetakscluster --name
85
89
86
90
## Restore to an AKS cluster
87
91
92
+
To restore to an AKS cluster, see the following sections.
93
+
88
94
### Fetch the relevant recovery point
89
95
90
-
Fetch all instances associated with the AKS cluster and identify the relevant instance.
96
+
To fetch the relevant recovery point, run the following commands:
91
97
92
-
```azurecli
93
-
az dataprotection backup-instance list-from-resourcegraph --datasource-type AzureKubernetesService --datasource-id /subscriptions/$subscriptionId/resourceGroups/$aksclusterresourcegroup/providers/Microsoft.ContainerService/managedClusters/$akscluster
98
+
1. Fetch all instances associated with the AKS cluster and identify the relevant instance.
94
99
95
-
```
100
+
```azurecli
101
+
az dataprotection backup-instance list-from-resourcegraph --datasource-type AzureKubernetesService --datasource-id /subscriptions/$subscriptionId/resourceGroups/$aksclusterresourcegroup/providers/Microsoft.ContainerService/managedClusters/$akscluster
96
102
103
+
```
97
104
98
-
Once the instance is identified, fetch the relevant recovery point.
99
105
100
-
```azurecli
101
-
az dataprotection recovery-point list --backup-instance-name $backupinstancename --resource-group $backupvaultresourcegroup --vault-name $backupvault
106
+
2. Once the instance is identified, fetch the relevant recovery point.
102
107
103
-
```
104
-
In case you're looking to restore backups to the secondary region, use the flag `--use-secondary-region` to identify recovery points available in that region.
108
+
```azurecli
109
+
az dataprotection recovery-point list --backup-instance-name $backupinstancename --resource-group $backupvaultresourcegroup --vault-name $backupvault
105
110
106
-
```azurecli
107
-
az dataprotection recovery-point list --backup-instance-name $backupinstancename --resource-group $backupvaultresourcegroup --vault-name $backupvault --use-secondary-region true
111
+
```
112
+
3. If you're looking to restore backups to the secondary region, use the flag `--use-secondary-region` to identify recovery points available in that region.
108
113
109
-
```
114
+
```azurecli
115
+
az dataprotection recovery-point list --backup-instance-name $backupinstancename --resource-group $backupvaultresourcegroup --vault-name $backupvault --use-secondary-region true
Copy file name to clipboardExpand all lines: articles/backup/quick-backup-aks.md
+5-2Lines changed: 5 additions & 2 deletions
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: "Quickstart: Configure an Azure Kubernetes Services cluster backup"
3
3
description: Learn how to configure backup for an Azure Kubernetes Service (AKS) cluster, and then use Azure Backup to back up specific items in the cluster.
4
4
ms.topic: quickstart
5
-
ms.date: 11/14/2024
5
+
ms.date: 01/21/2025
6
6
ms.service: azure-backup
7
7
ms.custom:
8
8
- ignite-2024
@@ -84,5 +84,8 @@ Before you configure vaulted backup for AKS cluster, ensure the following prereq
84
84
85
85
## Next step
86
86
87
+
Restore a backup for an AKS cluster using:
88
+
87
89
> [!div class="nextstepaction"]
88
-
> [Restore a backup for an AKS cluster](./azure-kubernetes-service-cluster-restore.md)
Copy file name to clipboardExpand all lines: articles/backup/tutorial-configure-backup-aks.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
@@ -2,7 +2,7 @@
2
2
title: "Tutorial: Configure item-level backup for an Azure Kubernetes Service cluster"
3
3
description: Learn how to configure backup for an Azure Kubernetes Service (AKS) cluster, and use Azure Backup to back up specific items from the cluster.
4
4
ms.topic: tutorial
5
-
ms.date: 10/01/2024
5
+
ms.date: 01/21/2025
6
6
ms.service: azure-backup
7
7
ms.custom:
8
8
- ignite-2023
@@ -114,4 +114,4 @@ The Backup vault communicates with the cluster via the Backup extension to compl
114
114
## Next step
115
115
116
116
> [!div class="nextstepaction"]
117
-
> [Restore a backup for an AKS cluster](./azure-kubernetes-service-cluster-restore.md)
117
+
> Restore a backup for an AKS cluster using [Azure portal](./azure-kubernetes-service-cluster-restore.md), [Azure CLI](azure-kubernetes-service-cluster-restore-using-cli.md)
0 commit comments