/// <summary> /// Create or update policy with specified rule set name within a resource /// group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='policyName'> /// The name of the Web Application Firewall Policy. /// </param> /// <param name='parameters'> /// Policy to be created. /// </param> public static WebApplicationFirewallPolicy CreateOrUpdate(this IPoliciesOperations operations, string resourceGroupName, string policyName, WebApplicationFirewallPolicy parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, policyName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Create or replace an existing policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='policySetName'> /// The name of the policy set. /// </param> /// <param name='name'> /// The name of the policy. /// </param> /// <param name='policy'> /// A Policy. /// </param> public static Policy CreateOrUpdate(this IPoliciesOperations operations, string resourceGroupName, string labName, string policySetName, string name, Policy policy) { return(operations.CreateOrUpdateAsync(resourceGroupName, labName, policySetName, name, policy).GetAwaiter().GetResult()); }