diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListAllPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListAllPolicies.json index 5dd17d124b5b..117edd2a59f7 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListAllPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListAllPolicies.json @@ -32,6 +32,7 @@ { "name": "Rule1", "priority": 1, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -55,6 +56,7 @@ { "name": "Rule2", "priority": 2, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListPolicies.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListPolicies.json index 16bcd2bba3aa..62d159afef94 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListPolicies.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafListPolicies.json @@ -41,6 +41,7 @@ { "name": "Rule1", "priority": 1, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -64,6 +65,7 @@ { "name": "Rule2", "priority": 2, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyCreateOrUpdate.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyCreateOrUpdate.json index c41452636be6..681641cdeb47 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyCreateOrUpdate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyCreateOrUpdate.json @@ -238,6 +238,7 @@ { "name": "Rule1", "priority": 1, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -261,6 +262,7 @@ { "name": "Rule2", "priority": 2, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -395,6 +397,7 @@ { "name": "Rule1", "priority": 1, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -418,6 +421,7 @@ { "name": "Rule2", "priority": 2, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyDelete.json index d0d98407e37a..0f2dbc6ee3aa 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyDelete.json @@ -7,7 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1?api-version=2022-09-01" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyGet.json index c1b6bf42365e..8b4df5ba25ff 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/examples/WafPolicyGet.json @@ -32,6 +32,7 @@ { "name": "Rule1", "priority": 1, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { @@ -55,6 +56,7 @@ { "name": "Rule2", "priority": 2, + "state": "Enabled", "ruleType": "MatchRule", "matchConditions": [ { diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/webapplicationfirewall.json b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/webapplicationfirewall.json index 33e952a6e842..534b450554b0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/webapplicationfirewall.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2022-09-01/webapplicationfirewall.json @@ -504,6 +504,18 @@ "description": "Priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.", "type": "integer" }, + "state": { + "description": "Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "WebApplicationFirewallState", + "modelAsString": true + } + }, "ruleType": { "description": "The rule type.", "type": "string",