/// <summary>
 /// Creates or updates an application resource.
 /// </summary>
 /// <remarks>
 /// Creates an application resource with the specified name, description and
 /// properties. If an application resource with the same name exists, then it
 /// is updated with the specified description and properties.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='applicationResourceName'>
 /// The identity of the application.
 /// </param>
 /// <param name='applicationResourceDescription'>
 /// Description for creating a Application resource.
 /// </param>
 public static ApplicationResourceDescription Create(this IApplicationOperations operations, string resourceGroupName, string applicationResourceName, ApplicationResourceDescription applicationResourceDescription)
 {
     return(operations.CreateAsync(resourceGroupName, applicationResourceName, applicationResourceDescription).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create a new application.  (see
 /// http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Graph.RBAC.IApplicationOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters to create an application.
 /// </param>
 /// <returns>
 /// Server response for Get application information API call
 /// </returns>
 public static Task <ApplicationGetResult> CreateAsync(this IApplicationOperations operations, ApplicationCreateParameters parameters)
 {
     return(operations.CreateAsync(parameters, CancellationToken.None));
 }
コード例 #3
0
 /// <summary>
 /// Adds an application to the specified Batch account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='applicationName'>
 /// The name of the application. This must be unique within the account.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the request.
 /// </param>
 public static Application Create(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters = default(Application))
 {
     return(operations.CreateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult());
 }