/// <summary> /// Move resources between resource groups. /// </summary> /// <remarks> /// Move resources between resource groups. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='moveResourceEnvelope'> /// Object that represents the resource to move. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task MoveAsync(this IWebSiteManagementClient operations, string resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.MoveWithHttpMessagesAsync(resourceGroupName, moveResourceEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Move resources between resource groups. /// </summary> /// <remarks> /// Move resources between resource groups. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='targetResourceGroup'> /// </param> /// <param name='resources'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task MoveAsync(this IWebSiteManagementClient operations, string resourceGroupName, string targetResourceGroup = default(string), IList <string> resources = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.MoveWithHttpMessagesAsync(resourceGroupName, targetResourceGroup, resources, null, cancellationToken).ConfigureAwait(false)).Dispose(); }