Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

[Eng]: issue in "Initialize-AzMigrateReplicationInfrastructure" Command #22435

Open Ijtehad143 opened 1 year ago

Ijtehad143 commented 1 year ago

Description

Hi Team, I am facing issue when Initializing infrastructure command in azure migrate agentless (VMWare), after command execution I am not able to replicate the server below are details.

Parameters: $AzureMigrateSubscription= "XXXXXX-XXXXX-XXXXXXXXX-XXXX" $ResourceGroupName = "XXXXX" $ProjectName= "XXXXXXX" $TargetRegion= "East US 2" $Scenario= "agentlessVMware"

Command:

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

Error: New-AzMigrateReplicationProtectionContainerMapping : Policy configuration couldn't be performed for the policy migratetest-init-022595sitepolicy. At C:\Users\Ijtehad.Farooqui\Documents\WindowsPowerShell\Modules\Az.Migrate\2.2.0\custom\Initialize-AzMigrateReplicatio nInfrastructure.ps1:585 char:25

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @prsadhu-ms-idc.

Issue Details
### Description Hi Team, I am facing issue when Initializing infrastructure command in azure migrate agentless (VMWare), after command execution I am not able to replicate the server below are details. Parameters: $AzureMigrateSubscription= "XXXXXX-XXXXX-XXXXXXXXX-XXXX" $ResourceGroupName = "XXXXX" $ProjectName= "XXXXXXX" $TargetRegion= "East US 2" $Scenario= "agentlessVMware" Command: Initialize-AzMigrateReplicationInfrastructure -ResourceGroupName $ResourceGroupName -ProjectName $ProjectName -Scenario $Scenario -TargetRegion $TargetRegion -SubscriptionId $AzureMigrateSubscription Error: New-AzMigrateReplicationProtectionContainerMapping : Policy configuration couldn't be performed for the policy migratetest-init-022595sitepolicy. At C:\Users\Ijtehad.Farooqui\Documents\WindowsPowerShell\Modules\Az.Migrate\2.2.0\custom\Initialize-AzMigrateReplicatio nInfrastructure.ps1:585 char:25 + ... $output = New-AzMigrateReplicationProtectionContainerMapp ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ({ ResourceName ...rMappingInput }:<>f__AnonymousType23`7) [New-AzMigr ateRe..._CreateExpanded], UndeclaredResponseException + FullyQualifiedErrorId : OK,Microsoft.Azure.PowerShell.Cmdlets.Migrate.Cmdlets.NewAzMigrateReplicationProtectionC ontainerMapping_CreateExpanded
Author: Ijtehad143
Assignees: -
Labels: `Engineering`, `Migrate`, `Service Attention`, `customer-reported`, `needs-triage`
Milestone: -