Skip to content

Commit 4f1b80a

Browse files
committed
Added steps to rotate cluster witness SA access key
1 parent 3d82cb0 commit 4f1b80a

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

azure-local/manage/manage-secrets-rotation.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes how to manage internal secret rotation on Az
44
author: alkohli
55
ms.author: alkohli
66
ms.topic: how-to
7-
ms.date: 02/03/2025
7+
ms.date: 02/11/2025
88
ms.service: azure-local
99
---
1010

@@ -59,6 +59,37 @@ WARNING: Please close this session and log in again.
5959
PS C:\Users\MGMT>
6060
```
6161

62+
## Change cluster witness storage account key
63+
64+
This section describes how you can change the storage account key for the cluster witness storage account.
65+
66+
1. Sign in to one of the Azure Local nodes using deployment user credentials.
67+
68+
1. Configure the witness quorum using the secondary storage account key:
69+
70+
```powershell
71+
Set-ClusterQuorum -CloudWitness -AccountName <storage account name> -AccessKey <storage account secondary key>
72+
```
73+
74+
1. Rotate the storage account primary key.
75+
76+
1. Configure the witness quorum using the rotated storage account key:
77+
78+
```powershell
79+
Set-ClusterQuorum -CloudWitness -AccountName <storage account name> -AccessKey <storage account primary key>
80+
```
81+
82+
1. Rotate the storage account secondary key.
83+
84+
1. Update the storage account primary key in the ECE store:
85+
86+
```powershell
87+
$SecureSecretText = ConvertTo-SecureString -String "<REPLACE STORAGE ACCOUNT KEY>" -AsPlainText -Force
88+
$WitnessCred = New-Object -Type PSCredential -ArgumentList "WitnessCredential,$SecureSecretText"
89+
Set-ECEServiceSecret -ContainerName WitnessCredential -Credential $WitnessCred
90+
```
91+
92+
6293
## Change deployment service principal
6394
6495
This section describes how you can change the service principal used for deployment.

0 commit comments

Comments
 (0)