ResourcesOperationsExtensions.ValidateMoveResourcesAsync(IResourcesOperations, String, ResourcesMoveInfo, CancellationToken) Method

Definition

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

public static System.Threading.Tasks.Task ValidateMoveResourcesAsync (this Microsoft.Azure.Management.ResourceManager.IResourcesOperations operations, string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Models.ResourcesMoveInfo parameters, System.Threading.CancellationToken cancellationToken = null);
static member ValidateMoveResourcesAsync : Microsoft.Azure.Management.ResourceManager.IResourcesOperations * string * Microsoft.Azure.Management.ResourceManager.Models.ResourcesMoveInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

operations
IResourcesOperations

The operations group for this extension method.

sourceResourceGroupName
System.String

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

parameters
ResourcesMoveInfo

Parameters for moving resources.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task

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