/// <summary> /// Undelete a deleted storage account with new account name if the a new name /// is provided. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// Resource location. /// </param> /// <param name='accountId'> /// Internal storage account ID, which is not visible to tenant. /// </param> /// <param name='newAccountName'> /// New storage account name when doing undelete storage account operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UndeleteStorageAccount> BeginUndeleteAsync(this IStorageAccountsOperations operations, string location, string accountId, string newAccountName = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUndeleteWithHttpMessagesAsync(location, accountId, newAccountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }