Getting Error when Initialzing Traget region for VMWare Using commands

Ijtehad Farooqui 1 Reputation point
2023-07-25T13:30:46.0633333+00:00

Getting Error when Initializing Target region for VMWare Using commands,
Below are commands which i am executing.

Connect-AzAccount

$AzureMigrateSubscription= "XXXX-XXXX-XXXX-XXXX-XXXXXX"

$ResourceGroupName = "XXXXXXX"

$ProjectName= "testing-replication-initialzing"

$TargetRegion= "East US 2"

$Scenario= "agentlessVMware"

Select-AzSubscription -Subscription $AzureMigrateSubscription

Initialize-AzMigrateReplicationInfrastructure -ResourceGroupName $ResourceGroupName -ProjectName $ProjectName -Scenario $Scenario -TargetRegion $TargetRegion -SubscriptionId $AzureMigrateSubscription

Multiple Error when tried to replicate source servers Using Manually & using Powershell commands.

Error1:
User's image

Error 2:

User's image

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
925 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2023-07-25T13:37:32.52+00:00

    Hello @Ijtehad Farooqui !

    I understand you want to deploy Azure Migrate via Powershel and you having an issue

    I think the problem is here :

    Select-AzSubscription -Subscription $AzureMigrateSubscription

    Change please to

    Select-AzSubscription -SubscriptionId 'xxxxxxxxxxxxxxxxx'


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  2. Konstantinos Passadis 19,586 Reputation points MVP
    2023-07-25T14:58:49.5166667+00:00

    Hello @Ijtehad Farooqui !

    I can see the erros message is clearly suggesting a previous attempt was made

    My suggestion :

    Either remove the current Config from the Appliance , and re subscribe to the Project so you can start from that point

    OR

    Delete this Migration Project

    Create a new one from scratch and make sure you are using the guide correctly

    Be aware to select the Resource Group and check the 'Show Hidden Items " to delete those too

    I have faced similar issues and got them resolved only after i re created my Migration Project

    I know it is some work to do , but better start clean than troubleshoot , this is my opinion


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.