Share via


IResourcesOperations.BeginValidateMoveResourcesWithHttpMessagesAsync Method

Definition

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

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginValidateMoveResourcesWithHttpMessagesAsync (string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginValidateMoveResourcesWithHttpMessagesAsync : string * Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function BeginValidateMoveResourcesWithHttpMessagesAsync (sourceResourceGroupName As String, parameters As ResourcesMoveInfo, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parameters

sourceResourceGroupName
String

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

parameters
ResourcesMoveInfo

Parameters for moving resources.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when a required parameter is null

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