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
+21-4Lines changed: 21 additions & 4 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: 03/16/2026
7
+
ms.date: 03/17/2026
8
8
ms.author: kendownie
9
9
ms.custom:
10
10
- devx-track-azurepowershell
@@ -155,14 +155,24 @@ The enablement steps described here are for Azure VMs. If you want to enable a m
155
155
156
156
### Enable managed identity on an Azure VM
157
157
158
-
Follow these steps to enable a managed identity on a Windows VM running in Azure.
158
+
The managed identity can be either [system assigned or user assigned](/entra/identity/managed-identities-azure-resources/overview#differences-between-system-assigned-and-user-assigned-managed-identities). If the VM has both system assigned and user assigned managed identities, Azure defaults to system assigned. Assign only one for best results.
159
+
160
+
#### Enable a system assigned managed identity
161
+
162
+
Follow these steps to enable a system assigned managed identity on a Windows VM running in Azure.
159
163
160
164
1. Sign in to the Azure portal and create a Windows VM. Your VM must run Windows Server 2019 or higher for server versions, or any Windows client version. See [Create a Windows virtual machine in the Azure portal](/azure/virtual-machines/windows/quick-create-portal).
161
165
162
-
1.Enable a managed identity on the VM. It can be either [system assigned or user assigned](/entra/identity/managed-identities-azure-resources/overview#differences-between-system-assigned-and-user-assigned-managed-identities). If the VM has both system assigned and user assigned identities, Azure defaults to system assigned. Assign only one for best results. You can enable a system assigned managed identity during VM creation on the **Management** tab.
166
+
1. You can enable a system assigned managed identity during VM creation on the **Management** tab.
163
167
164
168
:::image type="content" source="media/managed-identities/enable-system-assigned-managed-identity.png" alt-text="Screenshot showing how to enable system assigned managed identity when creating a new VM using the Azure portal." border="true":::
165
169
170
+
#### Enable a user assigned managed identity
171
+
172
+
1. Sign in to the Azure portal and follow the steps to [create a user assigned managed identity](/entra/identity/managed-identities-azure-resources/manage-user-assigned-managed-identities-azure-portal#create-a-user-assigned-managed-identity).
173
+
174
+
1. Go to the user assigned managed identity you just created and copy the **Client ID**. You need this value later when you add the managed identity to your VM.
175
+
166
176
### Assign a built-in RBAC role to the managed identity or application identity
167
177
168
178
After you enable a managed identity, grant all necessary permissions through Azure RBAC. To assign roles, sign in as a user with role assignment write permission at the scope where you want to assign the role.
@@ -185,6 +195,13 @@ Follow these steps to assign the built-in Azure RBAC role [Storage File Data SMB
185
195
186
196
1. Select **Review + assign** to add the role assignment to the storage account.
187
197
198
+
### Add user assigned managed identity to VM
199
+
200
+
If you created a user assigned managed identity, follow these steps to add it to your VM.
201
+
202
+
1. Go to your VM. From the service menu, under **Security**, select **Identity**.
203
+
204
+
1. Select the **User assigned** tab, and then select **Add user assigned managed identity**. Select the managed identity you created, and then select **Add**.
188
205
189
206
### [Linux](#tab/linux)
190
207
@@ -206,7 +223,7 @@ The managed identity can be either [system assigned or user assigned](/entra/ide
206
223
207
224
1. Sign in to the Azure portal and follow the steps to [create a user assigned managed identity](/entra/identity/managed-identities-azure-resources/manage-user-assigned-managed-identities-azure-portal#create-a-user-assigned-managed-identity).
208
225
209
-
1. Go to the user assigned managed identity you just created and copy the **Client ID**. You need this value later.
226
+
1. Go to the user assigned managed identity you just created and copy the **Client ID**. You need this value later when you add the managed identity to your VM.
210
227
211
228
### Assign a built-in RBAC role to the managed identity
0 commit comments