Skip to content

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.

License

Notifications You must be signed in to change notification settings

tobvil/Start-AzMoveValidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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'."}}

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published