Skip to content

Commit 6ef50cc

Browse files
authored
Merge pull request #108539 from pichuang/update-aks-backup
Update azure-kubernetes-service-cluster-manage-backups.md
2 parents bbfdc14 + ac78f0f commit 6ef50cc

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

articles/backup/azure-kubernetes-service-cluster-manage-backups.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Manage Azure Kubernetes Service (AKS) backups using Azure Backup
33
description: This article explains how to manage Azure Kubernetes Service (AKS) backups using Azure Backup.
44
ms.topic: how-to
55
ms.service: backup
6-
ms.date: 03/27/2023
6+
ms.date: 04/21/2023
77
author: jyothisuri
88
ms.author: jsuri
99
---
@@ -82,23 +82,23 @@ This section provides the set of Azure CLI commands to perform create, update, o
8282
To install the Backup Extension, run the following command:
8383

8484
```azurecli-interactive
85-
az k8s-extension create --name azure-aks-backup --extension-type Microsoft.DataProtection.Kubernetes --scope cluster --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg --release-train stable --configuration-settings blobContainer=containername storageAccount=storageaccountname storageAccountResourceGroup=storageaccountrg storageAccountSubscriptionId=subscriptionid
85+
az k8s-extension create --name azure-aks-backup --extension-type Microsoft.DataProtection.Kubernetes --scope cluster --cluster-type managedClusters --cluster-name <aksclustername> --resource-group <aksclusterrg> --release-train stable --configuration-settings blobContainer=<containername> storageAccount=<storageaccountname> storageAccountResourceGroup=<storageaccountrg> storageAccountSubscriptionId=<subscriptionid>
8686
```
8787

8888
### View Backup Extension installation status
8989

9090
To view the progress of Backup Extension installation, use the following command:
9191

9292
```azurecli-interactive
93-
az k8s-extension show --name azure-aks-backup --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg
93+
az k8s-extension show --name azure-aks-backup --cluster-type managedClusters --cluster-name <aksclustername> --resource-group <aksclusterrg>
9494
```
9595

9696
### Update resources in Backup Extension
9797

9898
To update blob container, CPU, and memory in the Backup Extension, use the following command:
9999

100100
```azurecli-interactive
101-
az k8s-extension update --name azure-aks-backup --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg --release-train stable --configuration-settings [blobContainer=containername storageAccount=storageaccountname storageAccountResourceGroup=storageaccountrg storageAccountSubscriptionId=subscriptionid] [cpuLimit=1] [memoryLimit=1Gi]
101+
az k8s-extension update --name azure-aks-backup --cluster-type managedClusters --cluster-name <aksclustername> --resource-group <aksclusterrg> --release-train stable --configuration-settings [blobContainer=<containername> storageAccount=<storageaccountname> storageAccountResourceGroup=<storageaccountrg> storageAccountSubscriptionId=<subscriptionid>] [cpuLimit=1] [memoryLimit=1Gi]
102102
103103
[]: denotes the 3 different sub-groups of updates possible (discard the brackets while using the command)
104104
@@ -109,15 +109,15 @@ To update blob container, CPU, and memory in the Backup Extension, use the follo
109109
To stop the Backup Extension install operation, use the following command:
110110

111111
```azurecli-interactive
112-
az k8s-extension delete --name azure-aks-backup --cluster-type managedClusters --cluster-name aksclustername --resource-group aksclusterrg
112+
az k8s-extension delete --name azure-aks-backup --cluster-type managedClusters --cluster-name <aksclustername> --resource-group <aksclusterrg>
113113
```
114114

115115
### Grant permission on storage account
116116

117117
To provide *Storage Account Contributor Permission* to the Extension Identity on storage account, run the following command:
118118

119119
```azurecli-interactive
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
120+
az role assignment create --assignee-object-id $(az k8s-extension show --name azure-aks-backup --cluster-name <aksclustername> --resource-group <aksclusterrg> --cluster-type managedClusters --query identity.principalId --output tsv) --role 'Storage Account Contributor' --scope /subscriptions/<subscriptionid>/resourceGroups/<storageaccountrg>/providers/Microsoft.Storage/storageAccounts/<storageaccountname>
121121
```
122122

123123

@@ -127,12 +127,11 @@ To enable Trusted Access between Backup vault and AKS cluster, use the following
127127

128128
```azurecli-interactive
129129
az aks trustedaccess rolebinding create \
130-
-g $myResourceGroup \
131-
--cluster-name $myAKSCluster
132-
–n <randomRoleBindingName> \
133-
-s <vaultID> \
130+
--resource-group <backupvaultrg> \
131+
--cluster-name <aksclustername> \
132+
--name <randomRoleBindingName> \
133+
--source-resource-id /subscriptions/<subscriptionid>/resourcegroups/<backupvaultrg>/providers/Microsoft.DataProtection/BackupVaults/<backupvaultname> \
134134
--roles Microsoft.DataProtection/backupVaults/backup-operator
135-
136135
```
137136

138137
Learn more about [other commands related to Trusted Access](../aks/trusted-access-feature.md#trusted-access-feature-overview).
@@ -141,4 +140,4 @@ Learn more about [other commands related to Trusted Access](../aks/trusted-acces
141140

142141
- [Back up Azure Kubernetes Service cluster (preview)](azure-kubernetes-service-cluster-backup.md)
143142
- [Restore Azure Kubernetes Service cluster (preview)](azure-kubernetes-service-cluster-restore.md)
144-
- [Supported scenarios for backing up Azure Kubernetes Service cluster (preview)](azure-kubernetes-service-cluster-backup-support-matrix.md)
143+
- [Supported scenarios for backing up Azure Kubernetes Service cluster (preview)](azure-kubernetes-service-cluster-backup-support-matrix.md)

0 commit comments

Comments
 (0)