Skip to content

Commit f8b293d

Browse files
committed
Files AD DS password reset Learn Authoring Assistant check
1 parent 4c28724 commit f8b293d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

articles/storage/files/storage-files-identity-ad-ds-update-password.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@ description: Learn how to update the password of the Active Directory Domain Ser
44
author: khdownie
55
ms.service: azure-file-storage
66
ms.topic: how-to
7-
ms.date: 11/26/2025
7+
ms.date: 02/25/2026
88
ms.author: kendownie
99
# Customer intent: As a storage administrator, I want to update the password of the Active Directory Domain Services identity that represents my storage account, so that I can maintain Kerberos authentication and ensure uninterrupted access to Azure file shares.
1010
---
1111

12-
# Update the password of your storage account identity in AD DS
12+
# Update the password for your storage account identity in AD DS
1313

1414
**Applies to:** :heavy_check_mark: SMB Azure file shares
1515

16-
When you domain join your storage account in your Active Directory Domain Services (AD DS), you create an AD principal, either a computer account or service account, with a password. The password of the AD principal is one of the Kerberos keys of the storage account. Depending on the password policy of the organization unit of the AD principal, you must periodically rotate the password of the AD principal to avoid authentication issues. Failing to change the password before it expires could result in losing Kerberos authentication to your Azure file shares. Some AD environments may also delete AD principals with expired passwords using an automated cleanup script.
16+
When you domain join your storage account in your Active Directory Domain Services (AD DS), you create an AD principal, either a computer account or service account, with a password. The password for the AD principal is one of the Kerberos keys for the storage account. Depending on the password policy of the organizational unit for the AD principal, you must periodically rotate the password to avoid authentication problems. If you don't change the password before it expires, you lose Kerberos authentication to your Azure file shares. Some AD environments also delete AD principals with expired passwords by using an automated cleanup script.
1717

1818
Instead of periodically rotating the password, you can also place the AD principal that represents the storage account into an organizational unit that doesn't require password rotation.
1919

20-
There are two options for triggering password rotation. You can use the `AzFilesHybrid` module or Active Directory PowerShell. Use one method, not both.
20+
Two options exist for triggering password rotation. You can use the `AzFilesHybrid` module or Active Directory PowerShell. Use one method, not both.
2121

2222
## Option 1: Use AzFilesHybrid module
23-
To regenerate and rotate the password of the AD principal that represents the storage account, use the `Update-AzStorageAccountADObjectPassword` cmdlet from the [AzFilesHybrid module](https://github.com/Azure-Samples/azure-files-samples/releases). To execute `Update-AzStorageAccountADObjectPassword`, you must:
23+
24+
To regenerate and rotate the password for the AD principal that represents the storage account, use the `Update-AzStorageAccountADObjectPassword` cmdlet from the [AzFilesHybrid module](https://github.com/Azure-Samples/azure-files-samples/releases). To run `Update-AzStorageAccountADObjectPassword`, you must:
2425

2526
- Run the cmdlet from a domain-joined client.
26-
- Have the owner permission on the storage account.
27-
- Have AD DS permissions to change the password of the AD principal that represents the storage account.
27+
- Have the owner permission on the storage account.
28+
- Have AD DS permissions to change the password for the AD principal that represents the storage account.
2829

2930
```PowerShell
3031
# Update the password of the AD DS account registered for the storage account
@@ -35,14 +36,14 @@ Update-AzStorageAccountADObjectPassword `
3536
-StorageAccountName "<your-storage-account-name-here>"
3637
```
3738

38-
After you rotate to kerb2, we recommend waiting several hours and using `Update-AzStorageAccountADObjectPassword` cmdlet again regenerate and rotate back to kerb1, such that both Kerberos keys are regenerated.
39+
After you rotate to kerb2, wait several hours and use the `Update-AzStorageAccountADObjectPassword` cmdlet again to regenerate and rotate back to kerb1, so both Kerberos keys are regenerated.
3940

4041
## Option 2: Use Active Directory PowerShell
4142

4243
If you don't want to download the `AzFilesHybrid` module, you can use [Active Directory PowerShell](/powershell/module/activedirectory).
4344

4445
> [!IMPORTANT]
45-
> The Windows Server Active Directory PowerShell cmdlets in this section must be run in Windows PowerShell 5.1 with elevated privileges.
46+
> You must run the Windows Server Active Directory PowerShell cmdlets in this section in PowerShell 5.1 with elevated privileges.
4647
4748
Replace `<domain-object-identity>` in the following script with the appropriate value for your environment:
4849

@@ -57,9 +58,8 @@ Set-ADAccountPassword -Identity <domain-object-identity> -Reset -NewPassword $Ne
5758

5859
## Test that the AD DS account password matches a Kerberos key
5960

60-
After you update the AD DS account password, you can test it using the following PowerShell command.
61+
After you update the AD DS account password, test it by using the following PowerShell command.
6162

6263
```powershell
6364
Test-AzStorageAccountADObjectPasswordIsKerbKey -ResourceGroupName "<your-resource-group-name>" -Name "<your-storage-account-name>" -Verbose
6465
```
65-

0 commit comments

Comments
 (0)