/// <summary>
 /// Deploys resources to a resource group.
 /// </summary>
 /// <remarks>
 /// You can provide the template and parameters directly in the request or link
 /// to JSON files.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to deploy the resources to. The name is case
 /// insensitive. The resource group must already exist.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters supplied to the operation.
 /// </param>
 public static DeploymentExtended CreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Update the state of specified deployments associated with the Cognitive
 /// Services account.
 /// </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='deploymentName'>
 /// The name of the deployment associated with the Cognitive Services Account
 /// </param>
 /// <param name='deployment'>
 /// The deployment properties.
 /// </param>
 public static Deployment CreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string accountName, string deploymentName, Deployment deployment)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, accountName, deploymentName, deployment).GetAwaiter().GetResult());
 }
Example #3
0
 /// <summary>
 /// Create a new Deployment or update an exiting Deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 /// <param name='deploymentResource'>
 /// Parameters for the create or update operation
 /// </param>
 public static DeploymentResource CreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName, DeploymentResource deploymentResource)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, deploymentResource).GetAwaiter().GetResult());
 }