Issue:
Error: "The management group cannot be found" when performing Countercept Cloud Detection for O365 to Entra ID Migration:
New-AzManagementGroupDeployment: /withsecure/deploy.ps1:48
Line |
48 | … eployment = New-AzManagementGroupDeployment -ManagementGroupId $mgId …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 2:59:28 PM - Error: Code=ManagementGroupNotFound; Message=The management group cannot be found.
New-AzManagementGroupDeployment: /withsecure/deploy.ps1:48
Line |
48 | … eployment = New-AzManagementGroupDeployment -ManagementGroupId $mgId …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The deployment validation failed
Write-Error: l/withsecure/deploy.ps1:144
Line |
144 | Deploy-ManagementGroupDeployment -mgId $tenantId -deploymentConfi …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Deployment WSecCD-azure_ad terminates with the unexpected state
Resolution:
If you get this error, we recommend to confirm that the Management groups service has been activated on the account. Steps how to activate:
- In Azure portal, search for Management groups in the search bar
- A page showing the message "No management groups to display" should appear. Click on Start using Management groups
For your convenience, we have created a video that explains the onboarding process. We recommend your Azure administrator to watch this video before they run the script: https://www.youtube.com/watch?v=XlwW59Eed4w
If the issue still remain, you can use the cleanup script provided in the EntraID_WithSecure_cloud_detection_onboarding.zip file to remove the first deployment before trying the deployment again.
Article no: 000043922