Share via


ResourcesOperationsExtensions.ValidateMoveResources Method

Definition

Validates whether resources can be moved from one resource group to another resource group.

public static void ValidateMoveResources (this Microsoft.Azure.Management.ResourceManager.IResourcesOperations operations, string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Models.ResourcesMoveInfo parameters);
static member ValidateMoveResources : Microsoft.Azure.Management.ResourceManager.IResourcesOperations * string * Microsoft.Azure.Management.ResourceManager.Models.ResourcesMoveInfo -> unit
<Extension()>
Public Sub ValidateMoveResources (operations As IResourcesOperations, sourceResourceGroupName As String, parameters As ResourcesMoveInfo)

Parameters

operations
IResourcesOperations

The operations group for this extension method.

sourceResourceGroupName
String

The name of the resource group containing the resources to validate for move.

parameters
ResourcesMoveInfo

Parameters for moving resources.

Remarks

This operation 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. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation.

Applies to