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/storage-mover/azure-to-azure-migration.md
+96-2Lines changed: 96 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,12 +204,57 @@ az storage-mover endpoint create-for-storage-container \
204
204
205
205
### [Azure portal](#tab/portal)
206
206
207
-
When you create an Azure Blob Storage source or target endpoint through the Azure portal, the **Storage Blob Data Owner** RBAC role is automatically assigned to the system-assigned managed identity of the endpoint. No other steps are required.
207
+
When you create an Azure Blob Storage source or target endpoint through the Azure portal, the **Storage Account Contributor** and **Storage Blob Data Owner** RBAC roles are automatically assigned to the system-assigned managed identity of the endpoint. No other steps are required.
208
208
209
209
210
210
### [Azure PowerShell](#tab/powershell)
211
211
212
-
Assign the **Storage Blob Data Owner** RBAC role on the source and target blob storage container to the system-assigned managed identity of the target endpoint. First, retrieve the principal ID of the target endpoint's managed identity by using the `Get-AzStorageMoverAzStorageContainerEndpoint` command:
212
+
Assign the **Storage Account Contributor** RBAC role on the source and target blob storage accounts to the system-assigned managed identity of the target endpoint.
213
+
First, retrieve the principal ID of the target endpoint's managed identity by using the `Get-AzStorageMoverAzStorageContainerEndpoint` command:
Assign the **Storage Blob Data Owner** RBAC role on the source and target blob storage container to the system-assigned managed identity of the target endpoint.
257
+
First, retrieve the principal ID of the target endpoint's managed identity by using the `Get-AzStorageMoverAzStorageContainerEndpoint` command:
Assign the **Storage Account Contributor** RBAC role on the source and target blob storage accounts to the system-assigned managed identity of the target endpoint.
302
+
First, retrieve the principal ID of the source or target endpoint's managed identity by using the `az storage-mover endpoint show` command:
303
+
304
+
```bash
305
+
az storage-mover endpoint show \
306
+
--resource-group <String> \
307
+
--storage-mover-name <String> \
308
+
--name <String> \
309
+
--query identity.principalId \
310
+
--output tsv
311
+
```
312
+
313
+
Then, use the `az role assignment create` command to assign the role:
314
+
315
+
```bash
316
+
az role assignment create \
317
+
--assignee-object-id <String> \
318
+
--assignee-principal-type ServicePrincipal \
319
+
--role "Storage Account Contributor" \
320
+
--scope <String>
321
+
```
322
+
323
+
**Parameters:**
324
+
325
+
-**assignee-object-id**: The object ID (principal ID) of the system-assigned managed identity of the target endpoint.
326
+
-**assignee-principal-type**: Set to **"ServicePrincipal"**.
327
+
-**role**: Set to **"Storage Account Contributor"**.
328
+
-**scope**: The Azure resource ID of the source or target blob storage account.
Assign the **Storage Blob Data Owner** RBAC role on the source and target blob storage container to the system-assigned managed identity of the target endpoint.
256
350
First, retrieve the principal ID of the source or target endpoint's managed identity by using the `az storage-mover endpoint show` command:
0 commit comments