/// <summary> /// Backup the backup policy now. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='backupPolicyName'> /// The backup policy name. /// </param> /// <param name='backupType'> /// The backup Type. This can be cloudSnapshot or localSnapshot. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BackupNowAsync(this IBackupPoliciesOperations operations, string deviceName, string backupPolicyName, string backupType, string resourceGroupName, string managerName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BackupNowWithHttpMessagesAsync(deviceName, backupPolicyName, backupType, resourceGroupName, managerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }