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-rest-vm.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,6 @@ In this article, using CURL to make calls to the Azure Resource Manager REST end
32
32
33
33
- If you're unfamiliar with managed identities for Azure resources, 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)**.
34
34
- If you don't already have an Azure account, [sign up for a free account](https://azure.microsoft.com/free/) before continuing.
35
-
- To perform the management operations in this article, your account needs the following Azure role based access control assignments:
36
-
37
-
> [!NOTE]
38
-
> No additional Azure AD directory role assignments required.
39
-
40
-
-[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.
41
-
-[Managed Identity Contributor](/azure/role-based-access-control/built-in-roles#managed-identity-contributor) role to create a user-assigned identity.
42
-
-[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.
43
35
- If you are using Windows, install the [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) or use the [Azure Cloud Shell](../../cloud-shell/overview.md) in the Azure portal.
44
36
-[Install the Azure CLI local console](/cli/azure/install-azure-cli), if you use the [Windows Subsystem for Linux](https://msdn.microsoft.com/commandline/wsl/about) or a [Linux distribution OS](/cli/azure/install-azure-cli-apt?view=azure-cli-latest).
45
37
- If you are using Azure CLI local console, sign in to Azure using `az login` with an account that is associated with the Azure subscription you would like to manage system or user-assigned managed identities.
@@ -52,7 +44,7 @@ In this section, you learn how to enable and disable system-assigned managed ide
52
44
53
45
### Enable system-assigned managed identity during creation of an Azure VM
54
46
55
-
To create an Azure VM with system-assigned managed identity enabled, you need create a VM and retrieve an access token to use CURL to call the Resource Manager endpoint with the system-assigned managed identity type value.
47
+
To create an Azure VM with the system-assigned managed identity enabled,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.
56
48
57
49
1. Create a [resource group](../../azure-resource-manager/resource-group-overview.md#terminology) for containment and deployment of your VM and its related resources, using [az group create](/cli/azure/group/#az-group-create). You can skip this step if you already have resource group you would like to use instead:
58
50
@@ -80,7 +72,7 @@ To create an Azure VM with system-assigned managed identity enabled, you need cr
80
72
81
73
### Enable system-assigned identity on an existing Azure VM
82
74
83
-
To enable system-assigned identity on an existing VM, you need to acquire an access token and then use CURL to call the Resource Manager REST endpoint to update the identity type.
75
+
To enable system-assigned managed identity on a VM that was originally provisioned without it, 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.
84
76
85
77
1. Retrieve a Bearer access token, which you will use in the next step in the Authorization header to create your VM with a system-assigned managed identity.
86
78
@@ -117,7 +109,7 @@ To enable system-assigned identity on an existing VM, you need to acquire an acc
117
109
118
110
### Disable system-assigned managed identity from an Azure VM
119
111
120
-
To disable a system-assigned managed identity on an existing VM, you need to acquire an access token and then use CURL to call the Resource Manager REST endpoint to update the identity type to `None`.
112
+
To disable 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.
121
113
122
114
1. Retrieve a Bearer access token, which you will use in the next step in the Authorization header to create your VM with a system-assigned managed identity.
123
115
@@ -142,6 +134,8 @@ In this section, you learn how to add and remove user-assigned managed identity
142
134
143
135
### Assign a user-assigned managed identity during the creation of an Azure VM
144
136
137
+
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.
138
+
145
139
1. Retrieve a Bearer access token, which you will use in the next step in the Authorization header to create your VM with a system-assigned managed identity.
146
140
147
141
```azurecli-interactive
@@ -179,6 +173,8 @@ In this section, you learn how to add and remove user-assigned managed identity
179
173
180
174
### Assign a user-assigned managed identity to an existing Azure VM
181
175
176
+
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.
177
+
182
178
1. Retrieve a Bearer access token, which you will use in the next step in the Authorization header to create your VM with a system-assigned managed identity.
183
179
184
180
```azurecli-interactive
@@ -235,6 +231,8 @@ In this section, you learn how to add and remove user-assigned managed identity
235
231
236
232
### Remove a user-assigned managed identity from an Azure VM
237
233
234
+
To remove 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) role assignment.
235
+
238
236
1. Retrieve a Bearer access token, which you will use in the next step in the Authorization header to create your VM with a system-assigned managed identity.
0 commit comments