/// <summary> /// Validate a deployment template. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Resources.IDeploymentOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. The name is case /// insensitive. /// </param> /// <param name='deploymentName'> /// Required. The name of the deployment. /// </param> /// <param name='parameters'> /// Required. Deployment to validate. /// </param> /// <returns> /// Information from validate template deployment response. /// </returns> public static Task <DeploymentValidateResponse> ValidateAsync(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, BasicDeployment parameters) { return(operations.ValidateAsync(resourceGroupName, deploymentName, parameters, CancellationToken.None)); }