/// <summary>
 /// Provisions the specified Dedicated capacity based on the configuration
 /// specified in the request.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure Resource group of which a given PowerBIDedicated
 /// capacity is part. This name must be at least 1 character in length, and no
 /// more than 90.
 /// </param>
 /// <param name='dedicatedCapacityName'>
 /// The name of the Dedicated capacity. It must be a minimum of 3 characters,
 /// and a maximum of 63.
 /// </param>
 /// <param name='capacityParameters'>
 /// Contains the information used to provision the Dedicated capacity.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DedicatedCapacity> BeginCreateAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <inheritdoc/>
 public async Task <AzureOperationResponse <DedicatedCapacity> > BeginCreateWithHttpMessagesAsync(string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters, Dictionary <string, List <string> > customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await innerCapacityOperations
            .BeginCreateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityParameters, customHeaders, cancellationToken)
            .ConfigureAwait(false));
 }