Skip to content

Commit 951e719

Browse files
committed
add user assigned MI to Windows flow
1 parent b6c20e5 commit 951e719

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

articles/storage/files/files-managed-identities.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article explains how you can authenticate managed identities t
44
author: khdownie
55
ms.service: azure-file-storage
66
ms.topic: how-to
7-
ms.date: 03/16/2026
7+
ms.date: 03/17/2026
88
ms.author: kendownie
99
ms.custom:
1010
- devx-track-azurepowershell
@@ -155,14 +155,24 @@ The enablement steps described here are for Azure VMs. If you want to enable a m
155155

156156
### Enable managed identity on an Azure VM
157157

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.
159163

160164
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).
161165

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.
163167

164168
:::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":::
165169

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+
166176
### Assign a built-in RBAC role to the managed identity or application identity
167177

168178
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
185195

186196
1. Select **Review + assign** to add the role assignment to the storage account.
187197

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**.
188205

189206
### [Linux](#tab/linux)
190207

@@ -206,7 +223,7 @@ The managed identity can be either [system assigned or user assigned](/entra/ide
206223

207224
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).
208225

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.
210227

211228
### Assign a built-in RBAC role to the managed identity
212229

0 commit comments

Comments
 (0)