question

RaghuMuthappa-1096 avatar image
0 Votes"
RaghuMuthappa-1096 asked ·

Unable to initiate "replication" of VM. Issue with Account.

I am using Azure Default Migration Tool, Appliance is setup on On-Prem side, I am able to discover, create group, create assessment. When I try to replicate VM I am getting error as below

The user (xxxx) doesn't have permissions to perform role assignments in the resource group (xxxx). When replication is set up for the first time, the user performing the action should have sufficent permissions to create storage accounts in the resource group (xxxx) and to perform role assignments on the created storage accounts.

But I am able to create Storage Account. I have "Contributor" Role. This is happening only when I try to perform "Replicate" VMs option.

azure-migrateazure-virtual-machines-migration
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SadiqhAhmed-MSFT
I also have this exact same issue. I have owner (inherited) on the subscription layer and have access to the two key vaults by way of access policy against all of the elements above including purge. Yet this error remains. Any advice?

0 Votes 0 ·

@AzureJP IMO, this can be better handled as a support request. The support professionals will investigate the issue and help you further with resolution.

1 Vote 1 ·

1 Answer

SadiqhAhmed-MSFT avatar image
0 Votes"
SadiqhAhmed-MSFT answered ·

To use Azure Migrate, there are some permissions that are required to manage Vaults and resources.
See the instructions to check the permissions of your account to the Key Vault using the following PowerShell script:

$userPrincipalId = $(Get-AzureRmADUser -UserPrincipalName "loggedin_user").Id

Set-AzureRmKeyVaultAccessPolicy -VaultName "replace_with_key_vault_name" -ObjectId $userPrincipalId -PermissionsToStorage get, list, delete, set, update, regeneratekey, getsas, listsas, deletesas, setsas, recover, backup, restore, purge

Reference: https://docs.microsoft.com/en-us/azure/migrate/tutorial-prepare-vmware


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have you had a chance to see the previous response? Feel free to reach out to us if need further assistance.

0 Votes 0 ·