Open geek-rb opened 1 year ago
Thank you for your feedback. This has been routed to the support team for assistance.
@geek-rb Thank you for reaching out, we are looking into it.
@geek-rb Can you please share the parameter details you passed to this command, like scenario and other relevant params?
Initialize-AzMigrateReplicationInfrastructure -ResourceGroupName $azureMigrateProjectResourceGroup
-ProjectName $azureMigrateProjectName -TargetRegion (Get-AzResourceGroup -Name $azureMigrateProjectResourceGroup).Location
-Scenario "agentlessVMware"
$azureMigrateProjectResourceGroup - resource group with migrate project $azureMigrateProjectName - project's name
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shijojoy.
Author: | geek-rb |
---|---|
Assignees: | - |
Labels: | `Migrate`, `Service Attention`, `bug`, `customer-reported`, `needs-team-attention` |
Milestone: | - |
Hi @shijojoy
I am getting this error when Initialize-AzMigrateReplicationInfrastructure of azure migrate
Initialize-AzMigrateReplicationInfrastructure : Cannot validate argument on parameter 'ObjectId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:12 char:1
+ CategoryInfo : InvalidData: (:) [Initialize-AzMi...nInfrastructure], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Initialize-AzMigrateReplicationInfrastructure
Description
When running command Initialize-AzMigrateReplicationInfrastructure (with parameters) got error Initialize-AzMigrateReplicationInfrastructure : Cannot validate argument on parameter 'ObjectId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
I guess issue is here Azure/azure-powershell/blob/main/src/Migrate/custom/Initialize-AzMigrateReplicationInfrastructure.ps1 452: $kvspnid = (Get-AzADServicePrincipal -DisplayName "Azure Key Vault" )[0].Id (Get-AzADServicePrincipal -DisplayName "Azure Key Vault" ) returns object, not an array
Issue script & Debug output
Environment data
Module versions
Error output