|
1 | 1 | ---
|
2 | 2 | title: Onboard a customer to Azure delegated resource management
|
3 | 3 | description: Learn how to onboard a customer to Azure delegated resource management, allowing their resources to be accessed and managed through your own tenant.
|
4 |
| -ms.date: 04/16/2020 |
| 4 | +ms.date: 04/24/2020 |
5 | 5 | ms.topic: conceptual
|
6 | 6 | ---
|
7 | 7 |
|
@@ -102,7 +102,7 @@ az ad sp list --query "[?displayName == '<spDisplayName>'].objectId" --output ts
|
102 | 102 | az role definition list --name "<roleName>" | grep name
|
103 | 103 | ```
|
104 | 104 | > [!TIP]
|
105 |
| -> We recommend assigning the [Managed Services Registration Assignment Delete Role](../../role-based-access-control/built-in-roles.md#managed-services-registration-assignment-delete-role) when onboarding a customer, so that users in your tenant can [remove access to the delegation](#remove-access-to-a-delegation) later if needed. If this role is not assigned, delegated resources can only be removed by a user in the customer's tenant. |
| 105 | +> We recommend assigning the [Managed Services Registration Assignment Delete Role](../../role-based-access-control/built-in-roles.md#managed-services-registration-assignment-delete-role) when onboarding a customer, so that users in your tenant can [remove access to the delegation](remove-delegation.md) later if needed. If this role is not assigned, delegated resources can only be removed by a user in the customer's tenant. |
106 | 106 |
|
107 | 107 | ## Create an Azure Resource Manager template
|
108 | 108 |
|
@@ -275,77 +275,8 @@ Get-AzContext
|
275 | 275 | az account list
|
276 | 276 | ```
|
277 | 277 |
|
278 |
| -## Remove access to a delegation |
279 |
| - |
280 |
| -By default, users in the customer's tenant who have the appropriate permissions can remove service provider access to delegated resources in the [Service providers page](view-manage-service-providers.md#add-or-remove-service-provider-offers) of the Azure portal. When they do so, no users in the service provider's tenant will be able to access the resources that had been previously delegated. |
281 |
| - |
282 |
| -If you have onboarded users with the [Managed Services Registration Assignment Delete Role](../../role-based-access-control/built-in-roles.md#managed-services-registration-assignment-delete-role) when onboarding a customer for Azure delegated resource management, those users will also be able to remove the delegation. |
283 |
| - |
284 |
| -The example below shows an assignment granting the **Managed Services Registration Assignment Delete Role** that can be included in a parameter file: |
285 |
| - |
286 |
| -```json |
287 |
| - "authorizations": [ |
288 |
| - { |
289 |
| - "principalId": "cfa7496e-a619-4a14-a740-85c5ad2063bb", |
290 |
| - "principalIdDisplayName": "MSP Operators", |
291 |
| - "roleDefinitionId": "91c1777a-f3dc-4fae-b103-61d183457e46" |
292 |
| - } |
293 |
| - ] |
294 |
| -``` |
295 |
| - |
296 |
| -A user with this permission can remove a delegation in one of the following ways. |
297 |
| - |
298 |
| -### Azure portal |
299 |
| - |
300 |
| -1. Navigate to the [My customers page](view-manage-customers.md). |
301 |
| -2. Select **Delegations**. |
302 |
| -3. Find the delegation you want to remove, then select the trash can icon that appears in its row. |
303 |
| - |
304 |
| -### PowerShell |
305 |
| - |
306 |
| -```azurepowershell-interactive |
307 |
| -# Log in first with Connect-AzAccount if you're not using Cloud Shell |
308 |
| -
|
309 |
| -# Sign in as a user from the managing tenant directory |
310 |
| -
|
311 |
| -Login-AzAccount |
312 |
| -
|
313 |
| -# Select the subscription that is delegated - or contains the delegated resource group(s) |
314 |
| -
|
315 |
| -Select-AzSubscription -SubscriptionName "<subscriptionName>" |
316 |
| -
|
317 |
| -# Get the registration assignment |
318 |
| -
|
319 |
| -Get-AzManagedServicesAssignment -Scope "/subscriptions/{delegatedSubscriptionId}" |
320 |
| -
|
321 |
| -# Delete the registration assignment |
322 |
| -
|
323 |
| -Remove-AzManagedServicesAssignment -ResourceId "/subscriptions/{delegatedSubscriptionId}/providers/Microsoft.ManagedServices/registrationAssignments/{assignmentGuid}" |
324 |
| -``` |
325 |
| - |
326 |
| -### Azure CLI |
327 |
| - |
328 |
| -```azurecli-interactive |
329 |
| -# Log in first with az login if you're not using Cloud Shell |
330 |
| -
|
331 |
| -# Sign in as a user from the managing tenant directory |
332 |
| -
|
333 |
| -az login |
334 |
| -
|
335 |
| -# Select the subscription that is delegated – or contains the delegated resource group(s) |
336 |
| -
|
337 |
| -az account set -s <subscriptionId/name> |
338 |
| -
|
339 |
| -# List registration assignments |
340 |
| -
|
341 |
| -az managedservices assignment list |
342 |
| -
|
343 |
| -# Delete the registration assignment |
344 |
| -
|
345 |
| -az managedservices assignment delete --assignment <id or full resourceId> |
346 |
| -``` |
347 |
| - |
348 | 278 | ## Next steps
|
349 | 279 |
|
350 | 280 | - Learn about [cross-tenant management experiences](../concepts/cross-tenant-management-experience.md).
|
351 | 281 | - [View and manage customers](view-manage-customers.md) by going to **My customers** in the Azure portal.
|
| 282 | +- Learn how to [remove access to a delegation](remove-delegation.md) that was previously onboarded. |
0 commit comments