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/storage/files/storage-troubleshoot-windows-file-connection-problems.md
+96-1Lines changed: 96 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Troubleshoot problems with SMB Azure file shares in Windows. See co
4
4
author: khdownie
5
5
ms.service: storage
6
6
ms.topic: troubleshooting
7
-
ms.date: 08/26/2022
7
+
ms.date: 09/09/2022
8
8
ms.author: kendownie
9
9
ms.subservice: files
10
10
ms.custom: devx-track-azurepowershell
@@ -601,5 +601,100 @@ if ($null -ne $application) {
601
601
}
602
602
```
603
603
604
+
### Error - Service principal password has expired in Azure AD
605
+
606
+
If you've previously enabled Azure AD Kerberos authentication through manual limited preview steps, the password for the storage account's service principal is set to expire every six months. Once the password expires, users won't be able to get Kerberos tickets to the file share.
607
+
608
+
To mitigate this, you have two options: either rotate the service principal password in Azure AD every six months, or disable Azure AD Kerberos, delete the existing application, and reconfigure Azure AD Kerberos using the Azure portal.
609
+
610
+
#### Option 1: Update the service principal password using PowerShell
611
+
612
+
1. Install the latest Az.Storage and AzureAD modules. Use PowerShell 5.1, because currently the AzureAD module doesn't work in PowerShell 7. Azure Cloud Shell won't work in this scenario. For more information about installing PowerShell, see [Install Azure PowerShell on Windows with PowerShellGet](/powershell/azure/install-Az-ps).
613
+
614
+
To install the modules, open PowerShell with elevated privileges and run the following commands:
615
+
616
+
```azurepowershell
617
+
Install-Module -Name Az.Storage
618
+
Install-Module -Name AzureAD
619
+
```
620
+
621
+
2. Set the required variables for your tenant, subscription, storage account name, and resource group name by running the following cmdlets, replacing the values with the ones relevant to your environment.
622
+
623
+
```azurepowershell
624
+
$tenantId = "<MyTenantId>"
625
+
$subscriptionId = "<MySubscriptionId>"
626
+
$resourceGroupName = "<MyResourceGroup>"
627
+
$storageAccountName = "<MyStorageAccount>"
628
+
```
629
+
630
+
3. Generate a new kerb1 key and password for the service principal.
#### Option 2: Disable Azure AD Kerberos, delete the existing application, and reconfigure
690
+
691
+
If you don't want to rotate the service principal password every six months, you can follow these steps. Be sure to save domain properties (domainName and domainGUID) before disabling Azure AD Kerberos, as you'll need them during reconfiguration if you want to configure directory and file-level permissions through Windows File Explorer.
692
+
693
+
1.[Disable Azure AD Kerberos](storage-files-identity-auth-azure-active-directory-enable.md#disable-azure-ad-authentication-on-your-storage-account)
694
+
1.[Delete the existing application](#cause-2-an-application-already-exists-for-the-storage-account)
695
+
1.[Reconfigure Azure AD Kerberos via the Azure portal](storage-files-identity-auth-azure-active-directory-enable.md#enable-azure-ad-kerberos-authentication-for-hybrid-user-accounts-preview)
696
+
697
+
Once you've reconfigured Azure AD Kerberos, the new experience will auto-create and manage the newly created application.
698
+
604
699
## Need help?
605
700
If you still need help, [contact support](https://portal.azure.com/?#blade/Microsoft_Azure_Support/HelpAndSupportBlade) to get your problem resolved quickly.
0 commit comments