Azure / Azure/azure-powershell
[Eng]: issue in "Initialize-AzMigrateReplicationInfrastructure" Command
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 54
Description
### 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
Contributor guide
Research direction
Start with Initialize-AzMigrateReplicationInfrastructure.ps1 at line 585 and review the New-AzMigrateReplicationProtectionContainerMapping failure reported for the agentlessVMware scenario. Reproduce the command with a suitable test subscription and inspect the policy configuration error. Done means the infrastructure initialization completes and the server can be replicated, with the failure cause documented or fixed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100