ResourcesOperationsExtensions.BeginValidateMoveResourcesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates whether resources can be moved from one resource group to another resource group.
public static System.Threading.Tasks.Task BeginValidateMoveResourcesAsync (this Microsoft.Azure.Management.ResourceManager.Fluent.IResourcesOperations operations, string sourceResourceGroupName, Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo parameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginValidateMoveResourcesAsync : Microsoft.Azure.Management.ResourceManager.Fluent.IResourcesOperations * string * Microsoft.Azure.Management.ResourceManager.Fluent.Models.ResourcesMoveInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginValidateMoveResourcesAsync (operations As IResourcesOperations, sourceResourceGroupName As String, parameters As ResourcesMoveInfo, Optional cancellationToken As CancellationToken = Nothing) As Task
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.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
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
Azure SDK for .NET