示例#1
0
 /// <summary>
 /// Create Cognitive Services Account. Accounts is a resource group wide
 /// resource type. It holds the keys for developer to access intelligent APIs.
 /// It's also the resource type for billing.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='account'>
 /// The parameters to provide for the created account.
 /// </param>
 public static Account BeginCreate(this IAccountsOperations operations, string resourceGroupName, string accountName, Account account)
 {
     return(operations.BeginCreateAsync(resourceGroupName, accountName, account).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates the specified Data Lake Store account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create the Data Lake Store account.
 /// </param>
 public static DataLakeStoreAccount BeginCreate(this IAccountsOperations operations, string resourceGroupName, string accountName, CreateDataLakeStoreAccountParameters parameters)
 {
     return(operations.BeginCreateAsync(resourceGroupName, accountName, parameters).GetAwaiter().GetResult());
 }