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/files-managed-identities.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This article explains how you can authenticate managed identities t
4
4
author: khdownie
5
5
ms.service: azure-file-storage
6
6
ms.topic: how-to
7
-
ms.date: 12/10/2025
7
+
ms.date: 02/17/2026
8
8
ms.author: kendownie
9
9
ms.custom:
10
10
- devx-track-azurepowershell
@@ -53,7 +53,29 @@ This article assumes that you have an Azure subscription with permissions to cre
53
53
54
54
In addition, the clients that need to authenticate using a managed identity shouldn't be joined to any domain.
55
55
56
-
### Prepare your PowerShell environment
56
+
## Configure the managed identity access property on your storage account
57
+
58
+
In order to authenticate a managed identity, you must enable a property called **SMBOAuth** on the storage account that contains the Azure file share you want to access. We recommend creating a new storage account for this purpose. You can use an existing storage account only if it doesn't have any other identity source configured.
59
+
60
+
You can enable the **SMBOAuth** property on your storage account by using either the Azure portal or Azure PowerShell. Select the appropriate tab for instructions.
61
+
62
+
### [Portal](#tab/windows)
63
+
64
+
To create a new storage account with the **SMBOAuth** property enabled using the Azure portal, follow [these steps](create-classic-file-share.md#create-a-storage-account). Under the **Advanced** tab, check the **Enable Managed Identity for SMB** checkbox.
65
+
66
+
:::image type="content" source="media/managed-identities/enable-managed-identity.png" alt-text="Screenshot showing how to enable managed identity for SMB when creating a new storage account using the Azure portal." border="true":::
67
+
68
+
Alternatively, you can enable the **SMBOAuth** property on an existing storage account, as long as the storage account doesn't have any other identity source configured.
69
+
70
+
To do this, navigate to the storage account. From the service menu, under **Settings**, select **Configuration**. Under **Managed Identity for SMB**, select **Enabled**, then select **Save**.
71
+
72
+
:::image type="content" source="media/managed-identities/enable-managed-identity-on-existing-storage-account.png" alt-text="Screenshot showing how to enable managed identity for SMB on an existing storage account using the Azure portal." border="true":::
73
+
74
+
Next, [create an SMB file share](create-classic-file-share.md) on the storage account.
75
+
76
+
### [PowerShell](#tab/linux)
77
+
78
+
To enable the **SMBOAuth** property on your storage account using Azure PowerShell, first you must prepare your PowerShell environment.
57
79
58
80
Open PowerShell as administrator and run the following command to set the PowerShell execution policy:
59
81
@@ -92,9 +114,7 @@ You can also select your subscription by specifying your subscription name:
92
114
Set-AzContext -Subscription "<subscription-name>"
93
115
```
94
116
95
-
## Configure the managed identity access property on your storage account
96
-
97
-
In order to authenticate a managed identity, you must enable a property called **SMBOAuth** on the storage account that contains the Azure file share you want to access. We recommend creating a new storage account for this purpose. You can use an existing storage account only if it doesn't have any other identity source configured.
117
+
### Create the storage account
98
118
99
119
To create a new storage account with **SMBOAuth** enabled, run the following PowerShell command as administrator. Replace `<resource-group>`, `<storage-account-name>`, and `<region>` with your values. You can specify a different SKU if needed.
You should now have a storage account and file share ready for SMB OAuth authentication. Verify in the Azure portal that your storage account and file share were created.
125
145
146
+
---
147
+
126
148
## Configure managed identity
127
149
128
150
You can use managed identities with Windows or Linux. Select the appropriate tab and follow the instructions for your operating system.
0 commit comments