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/active-directory/managed-identities-azure-resources/qs-configure-template-windows-vm.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,6 @@ In this article, using the Azure Resource Manager deployment template, you learn
29
29
30
30
- If you're unfamiliar with using Azure Resource Manager deployment template, check out the [overview section](overview.md). **Be sure to review the [difference between a system-assigned and user-assigned managed identity](overview.md#how-does-it-work)**.
31
31
- If you don't already have an Azure account, [sign up for a free account](https://azure.microsoft.com/free/) before continuing.
32
-
- To perform the management operations in this article, your account needs the following Azure role based access control assignments:
33
-
34
-
> [!NOTE]
35
-
> No additional Azure AD directory role assignments required.
36
-
37
-
-[Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) to create a VM and enable and remove system and/or user-assigned managed identity from an Azure VM.
38
-
-[Managed Identity Contributor](/azure/role-based-access-control/built-in-roles#managed-identity-contributor) role to create a user-assigned managed identity.
39
-
-[Managed Identity Operator](/azure/role-based-access-control/built-in-roles#managed-identity-operator) role to assign and remove a user-assigned managed identity from and to a VM.
40
32
41
33
## Azure Resource Manager templates
42
34
@@ -55,6 +47,8 @@ In this section, you will enable and disable a system-assigned managed identity
55
47
56
48
### Enable system-assigned managed identity during creation of an Azure VM or on an existing VM
57
49
50
+
To enable system-assigned managed identity on a VM, your account needs the [Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) role assignment. No additional Azure AD directory role assignments are required.
51
+
58
52
1. Whether you sign in to Azure locally or via the Azure portal, use an account that is associated with the Azure subscription that contains the VM.
59
53
60
54
2. To enable system-assigned managed identity, load the template into an editor, locate the `Microsoft.Compute/virtualMachines` resource of interest within the `resources` section and add the `"identity"` property at the same level as the `"type": "Microsoft.Compute/virtualMachines"` property. Use the following syntax:
@@ -132,6 +126,8 @@ In this section, you will enable and disable a system-assigned managed identity
132
126
133
127
After you have enabled system-assigned managed identity on your VM, you may want to grant it a role such as **Reader** access to the resource group in which it was created.
134
128
129
+
To assign a role to your VM's system-assigned identity, your account needs the [User Access Administrator](/azure/role-based-access-control/built-in-roles#user-access-administrator) role assignment.
130
+
135
131
1. Whether you sign in to Azure locally or via the Azure portal, use an account that is associated with the Azure subscription that contains the VM.
136
132
137
133
2. Load the template into an [editor](#azure-resource-manager-templates) and add the following information to give your VM **Reader** access to the resource group in which it was created. Your template structure may vary depending on the editor and the deployment model you choose.
@@ -174,7 +170,7 @@ After you have enabled system-assigned managed identity on your VM, you may want
174
170
175
171
### Disable a system-assigned managed identity from an Azure VM
176
172
177
-
If you have a VM that no longer needs a system-assigned managed identity:
173
+
To remove system-assigned managed identity from a VM, your account needs the [Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) role assignment. No additional Azure AD directory role assignments are required.
178
174
179
175
1. Whether you sign in to Azure locally or via the Azure portal, use an account that is associated with the Azure subscription that contains the VM.
180
176
@@ -210,6 +206,8 @@ In this section, you assign a user-assigned managed identity to an Azure VM usin
210
206
211
207
### Assign a user-assigned managed identity to an Azure VM
212
208
209
+
To assign a user-assigned identity to a VM, your account needs the [Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) and [Managed Identity Operator](/azure/role-based-access-control/built-in-roles#managed-identity-operator) role assignments. No additional Azure AD directory role assignments are required.
210
+
213
211
1. Under the `resources` element, add the following entry to assign a user-assigned managed identity to your VM. Be sure to replace `<USERASSIGNEDIDENTITY>` with the name of the user-assigned managed identity you created.
214
212
215
213
**Microsoft.Compute/virtualMachines API version 2018-06-01**
@@ -352,7 +350,7 @@ In this section, you assign a user-assigned managed identity to an Azure VM usin
352
350
353
351
### Remove a user-assigned managed identity from an Azure VM
354
352
355
-
If you have a VM that no longer needs a user-assigned managed identity:
353
+
To remove a user-assigned identity from a VM, your account needs the [Virtual Machine Contributor](/azure/role-based-access-control/built-in-roles#virtual-machine-contributor) role assignment. No additional Azure AD directory role assignments are required.
356
354
357
355
1. Whether you sign in to Azure locally or via the Azure portal, use an account that is associated with the Azure subscription that contains the VM.
0 commit comments