Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 885 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 885 Bytes

Start-AzMoveValidation

Start-AzMoveValidation.ps1 - Validates whether resources can be moved from one resource group to another resource group.

DESCRIPTION

This function checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription.

COMPATIBILITY

Works with Windows PowerShell 5.1 and PowerShell 7.0

EXAMPLE

Start-AzMoveValidation -TargetSubscriptionId 'SubscriptionId' -TargetResourceGrup 'Resource group name' -SourceSubscriptionId 'SubscriptionId' -SourceResourceGroup 'Resource group name' -SourceTenantId 'TenantId'

OUTPUT

Move operation validated successfully

Or

Message:{"error":{"code":"ResourceMoveNotSupported","message":"Resource move is not supported for resource types 'microsoft.insights/metricalerts'."}}