Skip to content

Commit 6e8b61c

Browse files
authored
Merge pull request #247578 from karla-escobar/kescobar/CustomeroleDMSMySQL
Custom role documentation for MySQL migrations DMS
2 parents eb46ad4 + 3cf6ab3 commit 6e8b61c

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: "Custom roles for MySQL to Azure Database for MySQL migrations using Database Migration Service"
3+
titleSuffix: Azure Database Migration Service
4+
description: Learn to use the custom roles for MySQL to Azure Database for MySQL migrations.
5+
author: karlaescobar
6+
ms.author: karlaescobar
7+
ms.date: 08/07/2023
8+
ms.service: dms
9+
ms.topic: conceptual
10+
---
11+
12+
# Custom roles for MySQL to Azure Database for MySQL migrations using Database Migration Service
13+
14+
This article explains how to set up a custom role for MySQL to Azure Database for MySQL migrations using DMS.
15+
16+
The role has no permission to create a new Database Migration Service and no permission to create a database migration project. Meaning the user assigned to the custom role will need to have an already created Database Migration Service and migration project under the assigned resource group. The user will then be able to create and run migration activities under the migration project.
17+
18+
```json
19+
{
20+
"properties": {
21+
"roleName": "DmsCustomRoleDemoforMySQL",
22+
"description": "",
23+
"assignableScopes": [
24+
"/subscriptions/<DMSSubscription>/resourceGroups/<dmsServiceRG>"
25+
],
26+
"permissions": [
27+
{
28+
"actions": [
29+
"Microsoft.DataMigration/locations/operationResults/read",
30+
"Microsoft.DataMigration/locations/operationStatuses/read",
31+
"Microsoft.DataMigration/services/read",
32+
"Microsoft.DataMigration/services/stop/action",
33+
"Microsoft.DataMigration/services/start/action",
34+
"Microsoft.DataMigration/services/checkStatus/*",
35+
"Microsoft.DataMigration/services/configureWorker/action",
36+
"Microsoft.DataMigration/services/addWorker/action",
37+
"Microsoft.DataMigration/services/removeWorker/action",
38+
"Microsoft.DataMigration/services/updateAgentConfig/action",
39+
"Microsoft.DataMigration/services/slots/read",
40+
"Microsoft.DataMigration/services/projects/*",
41+
"Microsoft.DataMigration/services/serviceTasks/read",
42+
"Microsoft.DataMigration/services/serviceTasks/write",
43+
"Microsoft.DataMigration/services/serviceTasks/delete",
44+
"Microsoft.DataMigration/services/serviceTasks/cancel/action",
45+
"Microsoft.DBforMySQL/flexibleServers/read",
46+
"Microsoft.DBforMySQL/flexibleServers/databases/read",
47+
"Microsoft.DBforMySQL/servers/read",
48+
"Microsoft.DBforMySQL/servers/databases/read",
49+
"Microsoft.Resources/subscriptions/resourceGroups/read",
50+
"Microsoft.DataMigration/skus/read"
51+
],
52+
"notActions": [],
53+
"dataActions": [],
54+
"notDataActions": []
55+
}
56+
]
57+
}
58+
}
59+
```
60+
You can use either the Azure portal, AZ PowerShell, Azure CLI or Azure REST API to create the roles.
61+
62+
For more information, see the articles [Create custom roles using the Azure portal](../role-based-access-control/custom-roles-portal.md) and [Azure custom roles](../role-based-access-control/custom-roles.md).
63+
64+
## Role assignment
65+
66+
To assign a role to users, open the Azure portal, perform the following steps:
67+
68+
1. Navigate to the resource, go to **Access Control**, and then scroll to find the custom roles you created.
69+
70+
2. Select the appropriate role, select the User, and then save the changes.
71+
72+
The user now appears listed on the **Role assignments** tab.
73+
74+
## Next steps
75+
76+
* For information about Azure Database for MySQL - Flexible Server, see [Overview - Azure Database for MySQL Flexible Server](./../mysql/flexible-server/overview.md).
77+
* For information about Azure Database Migration Service, see [What is Azure Database Migration Service?](./dms-overview.md).
78+
* For information about known issues and limitations when migrating to Azure Database for MySQL - Flexible Server using DMS, see [Known Issues With Migrations To Azure Database for MySQL - Flexible Server](./known-issues-azure-mysql-fs-online.md).
79+
* For information about known issues and limitations when performing migrations using DMS, see [Common issues - Azure Database Migration Service](./known-issues-troubleshooting-dms.md).
80+
* For troubleshooting source database connectivity issues while using DMS, see article [Issues connecting source databases](./known-issues-troubleshooting-dms-source-connectivity.md).

articles/dms/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
items:
5151
- name: MySQL to Azure Database for MySQL Data Migration - MySQL Consistent Backup
5252
href: migrate-azure-mysql-consistent-backup.md
53+
- name: Custom roles for MySQL to Azure Database for MySQL migrations using DMS
54+
href: resource-custom-roles-mysql-database-migration-service.md
5355
- name: MySQL to Azure Database for MySQL Data Migration - MySQL Schema Migration
5456
href: concepts-migrate-azure-mysql-schema-migration.md
5557
- name: MySQL to Azure Database for MySQL Data Migration - MySQL Login Migration

0 commit comments

Comments
 (0)