Ejemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            if (ShouldProcess("AzureApplicationGatewayWebApplicationFirewallConfiguration", Microsoft.Azure.Commands.Network.Properties.Resources.CreatingResourceMessage))
            {
                base.ExecuteCmdlet();

                PSApplicationGatewayWebApplicationFirewallConfiguration firewallConfiguration = new PSApplicationGatewayWebApplicationFirewallConfiguration()
                {
                    Enabled      = this.Enabled,
                    FirewallMode = this.FirewallMode,
                };

                WriteObject(firewallConfiguration);
            }
        }
Ejemplo n.º 2
0
        public override void ExecuteCmdlet()
        {
            if (ShouldProcess("AzureApplicationGatewayWebApplicationFirewallConfiguration", Microsoft.Azure.Commands.Network.Properties.Resources.CreatingResourceMessage))
            {
                base.ExecuteCmdlet();

                PSApplicationGatewayWebApplicationFirewallConfiguration firewallConfiguration = new PSApplicationGatewayWebApplicationFirewallConfiguration()
                {
                    Enabled                = this.Enabled,
                    FirewallMode           = this.FirewallMode,
                    RuleSetType            = this.RuleSetType,
                    RuleSetVersion         = this.RuleSetVersion,
                    DisabledRuleGroups     = this.DisabledRuleGroup?.ToList(),
                    RequestBodyCheck       = this.RequestBodyCheck,
                    MaxRequestBodySizeInKb = this.MaxRequestBodySizeInKb,
                    FileUploadLimitInMb    = this.FileUploadLimitInMb,
                    Exclusions             = this.Exclusion?.ToList()
                };

                WriteObject(firewallConfiguration);
            }
        }