diff --git a/src/azure-cli/azure/cli/command_modules/network/_params.py b/src/azure-cli/azure/cli/command_modules/network/_params.py index f8ff4f0d748..b16fb37d8ab 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_params.py +++ b/src/azure-cli/azure/cli/command_modules/network/_params.py @@ -469,10 +469,14 @@ def load_arguments(self, _): with self.argument_context('network application-gateway waf-policy managed-rule rule-set', min_api='2019-09-01') as c: - c.argument('rule_set_type', options_list='--type', help='The type of the web application firewall rule set.') + c.argument('rule_set_type', options_list='--type', + arg_type=get_enum_type(['Microsoft_BotManagerRuleSet', 'OWASP']), + help='The type of the web application firewall rule set.') c.argument('rule_set_version', options_list='--version', - help='The version of the web application firewall rule set type.') + arg_type=get_enum_type(['0.1', '2.2.9', '3.0', '3.1']), + help='The version of the web application firewall rule set type. ' + '0.1 is used for Microsoft_BotManagerRuleSet') c.argument('rule_group_name', options_list='--group-name', help='The name of the web application firewall rule set group.') diff --git a/src/azure-cli/azure/cli/command_modules/network/custom.py b/src/azure-cli/azure/cli/command_modules/network/custom.py index 1f4ca67d0e3..81144b54533 100644 --- a/src/azure-cli/azure/cli/command_modules/network/custom.py +++ b/src/azure-cli/azure/cli/command_modules/network/custom.py @@ -1233,7 +1233,8 @@ def remove_waf_custom_rule_match_cond(cmd, client, resource_group_name, policy_n # region ApplicationGatewayWAFPolicy ManagedRule ManagedRuleSet def add_waf_managed_rule_set(cmd, client, resource_group_name, policy_name, - rule_set_type, rule_set_version, rule_group_name, rules): + rule_set_type, rule_set_version, + rule_group_name=None, rules=None): """ Add managed rule set to the WAF policy managed rules. Visit: https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-crs-rulegroups-rules @@ -1243,11 +1244,15 @@ def add_waf_managed_rule_set(cmd, client, resource_group_name, policy_name, waf_policy = client.get(resource_group_name, policy_name) - managed_rule_overrides = [ManagedRuleOverride(rule_id=r) for r in rules] - rule_group_override = ManagedRuleGroupOverride(rule_group_name=rule_group_name, rules=managed_rule_overrides) + managed_rule_overrides = [ManagedRuleOverride(rule_id=r) for r in rules] if rules is not None else [] + + rule_group_override = None + if rule_group_name is not None: + rule_group_override = ManagedRuleGroupOverride(rule_group_name=rule_group_name, + rules=managed_rule_overrides) new_managed_rule_set = ManagedRuleSet(rule_set_type=rule_set_type, rule_set_version=rule_set_version, - rule_group_overrides=[rule_group_override]) + rule_group_overrides=[rule_group_override] if rule_group_override is not None else []) # pylint: disable=line-too-long for rule_set in waf_policy.managed_rules.managed_rule_sets: if rule_set.rule_set_type == rule_set_type: @@ -1256,7 +1261,8 @@ def add_waf_managed_rule_set(cmd, client, resource_group_name, policy_name, rule_override.rules.extend(managed_rule_overrides) break else: - rule_set.rule_group_overrides.append(rule_group_override) + if rule_group_override is not None: + rule_set.rule_group_overrides.append(rule_group_override) break else: waf_policy.managed_rules.managed_rule_sets.append(new_managed_rule_set) diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_app_gateway_waf_policy_with_application_gateway.yaml b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_app_gateway_waf_policy_with_application_gateway.yaml index e7948b2c016..77e9630e4b8 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_app_gateway_waf_policy_with_application_gateway.yaml +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_network_app_gateway_waf_policy_with_application_gateway.yaml @@ -13,24 +13,24 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-06T18:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-10T07:56:44Z","StorageType":"Standard_LRS","type":"test"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '471' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 18:59:59 GMT + - Tue, 10 Mar 2020 07:56:51 GMT expires: - '-1' pragma: @@ -63,8 +63,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -72,7 +72,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"a14c49b5-e527-4567-9269-f07af61509c0\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0294af46-1ddf-4cea-bf63-6811128bcd4e\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"customRules\": [],\r\n \"policySettings\": {\r\n @@ -83,8 +83,10 @@ interactions: \"3.0\",\r\n \"ruleGroupOverrides\": []\r\n }\r\n ],\r\n \ \"exclusions\": []\r\n }\r\n }\r\n}" headers: + azure-asyncnotification: + - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dba0a9a2-f2f4-4527-a686-8418db443e38?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/47fbac43-c50c-4d30-a03f-1b93557d3b13?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -92,7 +94,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:06 GMT + - Tue, 10 Mar 2020 07:56:57 GMT expires: - '-1' pragma: @@ -105,9 +107,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 292eec6d-3b2a-42c4-95ff-c72947dfd764 + - f1d953b4-5ec2-49d1-ae35-7adcd2d0c858 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -125,8 +127,8 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -134,7 +136,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"cf4f4c3e-e972-4817-8305-cbe946d367f3\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"2b5f6281-0fab-431b-bf83-3aafcdd1e789\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"customRules\": [],\r\n \"policySettings\": {\r\n @@ -152,9 +154,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:08 GMT + - Tue, 10 Mar 2020 07:56:59 GMT etag: - - W/"cf4f4c3e-e972-4817-8305-cbe946d367f3" + - W/"2b5f6281-0fab-431b-bf83-3aafcdd1e789" expires: - '-1' pragma: @@ -171,7 +173,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0f98872e-d535-4a91-aa8c-bb0d614bce9e + - c58b76ce-7344-49c6-9dca-5ffd3a526059 status: code: 200 message: OK @@ -198,8 +200,8 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -207,7 +209,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"57b1c139-45bf-4c36-8c16-51c2b00ff777\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"5cdd0224-286c-487a-ac07-c351309bd73b\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -219,8 +221,10 @@ interactions: \ \"ruleGroupOverrides\": []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n }\r\n}" headers: + azure-asyncnotification: + - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/17a49da4-9153-4539-b4ec-6e4c84c23984?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3ed200cf-1e48-415c-a5ac-7831c93f74e9?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -228,7 +232,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:11 GMT + - Tue, 10 Mar 2020 07:57:03 GMT expires: - '-1' pragma: @@ -245,9 +249,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2e66f387-e073-4a61-bdb8-669d88a710f2 + - 4bd1dd5a-0345-473c-89cf-eadd6596abe9 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 200 message: OK @@ -265,8 +269,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -274,7 +278,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"57b1c139-45bf-4c36-8c16-51c2b00ff777\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"5cdd0224-286c-487a-ac07-c351309bd73b\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -293,9 +297,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:12 GMT + - Tue, 10 Mar 2020 07:57:04 GMT etag: - - W/"57b1c139-45bf-4c36-8c16-51c2b00ff777" + - W/"5cdd0224-286c-487a-ac07-c351309bd73b" expires: - '-1' pragma: @@ -312,7 +316,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 334ea8be-045e-4fa9-9de4-0ccbbd84fa4b + - 4e99cee1-c829-4c9f-9408-7c34b65f503c status: code: 200 message: OK @@ -330,8 +334,8 @@ interactions: ParameterSetName: - -g User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -340,7 +344,7 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"57b1c139-45bf-4c36-8c16-51c2b00ff777\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"5cdd0224-286c-487a-ac07-c351309bd73b\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": @@ -360,7 +364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:14 GMT + - Tue, 10 Mar 2020 07:57:05 GMT expires: - '-1' pragma: @@ -377,7 +381,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ee992b38-8994-4cc3-a94d-aa7e33dfe52c + - f611d1ac-cb03-4f1b-8e2f-e72fa860aa69 status: code: 200 message: OK @@ -395,8 +399,8 @@ interactions: ParameterSetName: - -g --policy-name -n --priority --action --rule-type User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -404,7 +408,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"57b1c139-45bf-4c36-8c16-51c2b00ff777\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"5cdd0224-286c-487a-ac07-c351309bd73b\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -423,9 +427,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:14 GMT + - Tue, 10 Mar 2020 07:57:07 GMT etag: - - W/"57b1c139-45bf-4c36-8c16-51c2b00ff777" + - W/"5cdd0224-286c-487a-ac07-c351309bd73b" expires: - '-1' pragma: @@ -442,7 +446,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 21aae49c-d27b-4c03-a964-c958b1908ef9 + - d21b83b3-9fed-4950-9789-d91a65a91325 status: code: 200 message: OK @@ -470,8 +474,8 @@ interactions: ParameterSetName: - -g --policy-name -n --priority --action --rule-type User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -479,7 +483,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"12fee8c1-37e4-4783-afa5-d9d33404c56a\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"705a9c38-511b-434f-8c72-01a189dd862a\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -495,7 +499,7 @@ interactions: []\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/74eefd47-7d8d-4cfe-8dda-74cf48d1a9aa?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9eafb8ec-d898-455d-bbb1-b028c315f738?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -503,7 +507,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:15 GMT + - Tue, 10 Mar 2020 07:57:08 GMT expires: - '-1' pragma: @@ -520,9 +524,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e4800dda-da36-45fc-be7e-27f60fef985b + - 4e7ad16f-0863-45c4-82ee-9fcfb5dca98c x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 200 message: OK @@ -540,8 +544,8 @@ interactions: ParameterSetName: - -g --policy-name -n --priority --action --rule-type User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -549,7 +553,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"81e1363e-5f39-4c68-8f4b-60976c11a8df\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"6944e8c3-6372-4a53-8341-5493d3c61808\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -571,9 +575,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:16 GMT + - Tue, 10 Mar 2020 07:57:10 GMT etag: - - W/"81e1363e-5f39-4c68-8f4b-60976c11a8df" + - W/"6944e8c3-6372-4a53-8341-5493d3c61808" expires: - '-1' pragma: @@ -590,7 +594,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8f9c3acd-7ed1-48ae-9d33-cf9ef0f8aba1 + - df025e20-5706-4728-8328-6e69dbec7a0c status: code: 200 message: OK @@ -619,8 +623,8 @@ interactions: ParameterSetName: - -g --policy-name -n --priority --action --rule-type User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -628,7 +632,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"a2e4fd36-7331-40a2-8fde-d54f0a94ee62\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"2bf63b60-7b37-4b76-9d58-28d59a110c81\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -647,7 +651,7 @@ interactions: []\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0c0969eb-6516-4864-bf8f-0cacd0001118?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ee993aa6-5436-4dba-b44a-15f8c12eaf61?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -655,7 +659,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:17 GMT + - Tue, 10 Mar 2020 07:57:10 GMT expires: - '-1' pragma: @@ -672,9 +676,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9e329fe0-c573-4b3f-9aef-baccc2ccb0a4 + - 3ecb335f-97c6-465e-85ea-1e9d1fcd1e88 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 200 message: OK @@ -692,8 +696,8 @@ interactions: ParameterSetName: - -g --policy-name --state --file-upload-limit-in-mb --mode User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -701,7 +705,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"4d0a9a55-952c-4754-a61f-97ce7967adde\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"82bef1cd-07c7-4c69-8a6e-82891298e4e6\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -726,9 +730,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:18 GMT + - Tue, 10 Mar 2020 07:57:11 GMT etag: - - W/"4d0a9a55-952c-4754-a61f-97ce7967adde" + - W/"82bef1cd-07c7-4c69-8a6e-82891298e4e6" expires: - '-1' pragma: @@ -745,7 +749,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1d2fe7e4-11bb-4924-8da8-ad3e7630e016 + - aade4883-69a7-4116-8b05-42a6d3693602 status: code: 200 message: OK @@ -774,8 +778,8 @@ interactions: ParameterSetName: - -g --policy-name --state --file-upload-limit-in-mb --mode User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -783,7 +787,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"3036385a-8eee-4ab6-9809-95fa71c39ccf\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"c0cf4eef-f1f3-4504-b401-b23358982ec6\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -802,7 +806,7 @@ interactions: []\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ea89afea-78d0-4cb0-ac42-1f6c8e431324?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2b3e439e-b3d7-45aa-b9f8-12d71c5ca644?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -810,7 +814,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:19 GMT + - Tue, 10 Mar 2020 07:57:12 GMT expires: - '-1' pragma: @@ -827,9 +831,164 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9dc528b8-7871-4046-8f49-3679c433b622 + - 6fe70e8a-2fda-4a1f-8152-ee9c60109835 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1194' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway waf-policy managed-rule rule-set add + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --type --version + User-Agent: + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n + \ \"etag\": \"W/\\\"0fe6d8d7-3aab-4583-84d2-6a3171cd88ad\\\"\",\r\n \"type\": + \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"customRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": + 50,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": + 100,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ }\r\n ],\r\n \"policySettings\": {\r\n \"requestBodyCheck\": + false,\r\n \"maxRequestBodySizeInKb\": 128,\r\n \"fileUploadLimitInMb\": + 64,\r\n \"state\": \"Enabled\",\r\n \"mode\": \"Prevention\"\r\n + \ },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n + \ \"ruleSetType\": \"OWASP\",\r\n \"ruleSetVersion\": \"3.0\",\r\n + \ \"ruleGroupOverrides\": []\r\n }\r\n ],\r\n \"exclusions\": + []\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1370' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 Mar 2020 07:57:13 GMT + etag: + - W/"0fe6d8d7-3aab-4583-84d2-6a3171cd88ad" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 3d6e0b9c-c175-46c2-8a2a-de42ef3660bc + status: + code: 200 + message: OK +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1", + "location": "westus", "tags": {"test": "best"}, "properties": {"policySettings": + {"state": "Enabled", "mode": "Prevention", "requestBodyCheck": false, "maxRequestBodySizeInKb": + 128, "fileUploadLimitInMb": 64}, "customRules": [{"name": "rule1", "priority": + 50, "ruleType": "MatchRule", "matchConditions": [], "action": "Log"}, {"name": + "rule2", "priority": 100, "ruleType": "MatchRule", "matchConditions": [], "action": + "Log"}], "managedRules": {"exclusions": [], "managedRuleSets": [{"ruleSetType": + "OWASP", "ruleSetVersion": "3.0", "ruleGroupOverrides": []}]}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway waf-policy managed-rule rule-set add + Connection: + - keep-alive + Content-Length: + - '797' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --type --version + User-Agent: + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n + \ \"etag\": \"W/\\\"0fe6d8d7-3aab-4583-84d2-6a3171cd88ad\\\"\",\r\n \"type\": + \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"customRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": + 50,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": + 100,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ }\r\n ],\r\n \"policySettings\": {\r\n \"requestBodyCheck\": + false,\r\n \"maxRequestBodySizeInKb\": 128,\r\n \"fileUploadLimitInMb\": + 64,\r\n \"state\": \"Enabled\",\r\n \"mode\": \"Prevention\"\r\n + \ },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n + \ \"ruleSetType\": \"OWASP\",\r\n \"ruleSetVersion\": \"3.0\",\r\n + \ \"ruleGroupOverrides\": []\r\n }\r\n ],\r\n \"exclusions\": + []\r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a75c22cb-871b-4afe-baf8-1726b14d1d99?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '1370' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 Mar 2020 07:57:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - de1e42e8-1a5b-48ad-8530-d161a2594e98 + x-ms-ratelimit-remaining-subscription-writes: + - '1195' status: code: 200 message: OK @@ -847,8 +1006,8 @@ interactions: ParameterSetName: - -g --policy-name --type --version --group-name --rules User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -856,7 +1015,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"f3c907b2-9505-47eb-92dd-c8da3f78b8b4\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0fe6d8d7-3aab-4583-84d2-6a3171cd88ad\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -881,9 +1040,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:20 GMT + - Tue, 10 Mar 2020 07:57:15 GMT etag: - - W/"f3c907b2-9505-47eb-92dd-c8da3f78b8b4" + - W/"0fe6d8d7-3aab-4583-84d2-6a3171cd88ad" expires: - '-1' pragma: @@ -900,7 +1059,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b87ef91f-a9d8-4a1a-9d42-25df091c201e + - 907c8be9-7ed4-465a-90c3-e25b9b16e462 status: code: 200 message: OK @@ -930,8 +1089,8 @@ interactions: ParameterSetName: - -g --policy-name --type --version --group-name --rules User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -939,7 +1098,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"b0cbcf8a-20b9-4a8f-a2c0-ec872b6e4f99\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"f5d6fac7-3f97-4f95-a811-2f2220c00bf1\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -963,7 +1122,7 @@ interactions: \ \"exclusions\": []\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4aeff7c7-5afb-400a-9939-4b5ee0b7833b?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bd48474f-9534-4ecb-ad0c-1f5c0cfacc19?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -971,7 +1130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:21 GMT + - Tue, 10 Mar 2020 07:57:16 GMT expires: - '-1' pragma: @@ -988,9 +1147,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a62dbcb4-1b47-4577-8b7e-3ef2bcd1261f + - 04ccce6e-82a4-493c-a350-2fd44bc8b6ba x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 200 message: OK @@ -1008,8 +1167,8 @@ interactions: ParameterSetName: - -g --policy-name --type --version --group-name --rules User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -1017,7 +1176,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"eb659423-6f02-44e0-ba44-6900bfdd7b58\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"a397b6d9-4735-4409-9d0b-43a1eed45f97\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -1047,9 +1206,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:23 GMT + - Tue, 10 Mar 2020 07:57:17 GMT etag: - - W/"eb659423-6f02-44e0-ba44-6900bfdd7b58" + - W/"a397b6d9-4735-4409-9d0b-43a1eed45f97" expires: - '-1' pragma: @@ -1066,7 +1225,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3327f09c-4992-4300-ba49-44961942f237 + - 83671c7e-13bb-4012-b5a0-c6036c9ffc61 status: code: 200 message: OK @@ -1098,8 +1257,8 @@ interactions: ParameterSetName: - -g --policy-name --type --version --group-name --rules User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -1107,7 +1266,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"ec5c1a57-131b-46c6-877b-300b44a79110\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"b7a4ef4d-ae75-46aa-a360-41388e462d1a\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -1135,7 +1294,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/676ea035-af16-4e12-a6ec-86f30ce1a81e?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6ac1f16-bcf3-46b5-b279-bd9b66fbc719?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1143,7 +1302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:23 GMT + - Tue, 10 Mar 2020 07:57:17 GMT expires: - '-1' pragma: @@ -1160,9 +1319,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9efa75aa-2bb0-4b7f-ab52-5a9aeac66d0f + - 9af460f1-0023-4a7d-929f-0258118f8b52 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -1174,14 +1333,14 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - network application-gateway waf-policy managed-rule exclusion add + - network application-gateway waf-policy managed-rule rule-set add Connection: - keep-alive ParameterSetName: - - -g --policy-name --match-variable --selector-match-operator --selector + - -g --policy-name --type --version User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -1189,7 +1348,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"d5f832dd-a6c9-4f2c-a13b-c9c53e8fe9b1\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"258f1485-4459-459a-b27e-e1e76a183b0c\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -1223,9 +1382,188 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:24 GMT + - Tue, 10 Mar 2020 07:57:19 GMT + etag: + - W/"258f1485-4459-459a-b27e-e1e76a183b0c" + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9d9b862c-b439-4446-a507-d293b4822207 + status: + code: 200 + message: OK +- request: + body: 'b''{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1", + "location": "westus", "tags": {"test": "best"}, "properties": {"policySettings": + {"state": "Enabled", "mode": "Prevention", "requestBodyCheck": false, "maxRequestBodySizeInKb": + 128, "fileUploadLimitInMb": 64}, "customRules": [{"name": "rule1", "priority": + 50, "ruleType": "MatchRule", "matchConditions": [], "action": "Log"}, {"name": + "rule2", "priority": 100, "ruleType": "MatchRule", "matchConditions": [], "action": + "Log"}], "managedRules": {"exclusions": [], "managedRuleSets": [{"ruleSetType": + "OWASP", "ruleSetVersion": "3.0", "ruleGroupOverrides": [{"ruleGroupName": "REQUEST-921-PROTOCOL-ATTACK", + "rules": [{"ruleId": "921100", "state": "Disabled"}, {"ruleId": "921110", "state": + "Disabled"}]}, {"ruleGroupName": "REQUEST-913-SCANNER-DETECTION", "rules": [{"ruleId": + "913100", "state": "Disabled"}]}]}, {"ruleSetType": "Microsoft_BotManagerRuleSet", + "ruleSetVersion": "0.1", "ruleGroupOverrides": []}]}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway waf-policy managed-rule rule-set add + Connection: + - keep-alive + Content-Length: + - '1147' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g --policy-name --type --version + User-Agent: + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n + \ \"etag\": \"W/\\\"8abd6064-0ab3-4b02-b103-a577443f58c7\\\"\",\r\n \"type\": + \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n + \ \"customRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": + 50,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": + 100,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ }\r\n ],\r\n \"policySettings\": {\r\n \"requestBodyCheck\": + false,\r\n \"maxRequestBodySizeInKb\": 128,\r\n \"fileUploadLimitInMb\": + 64,\r\n \"state\": \"Enabled\",\r\n \"mode\": \"Prevention\"\r\n + \ },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n + \ \"ruleSetType\": \"OWASP\",\r\n \"ruleSetVersion\": \"3.0\",\r\n + \ \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": + \"REQUEST-921-PROTOCOL-ATTACK\",\r\n \"rules\": [\r\n {\r\n + \ \"ruleId\": \"921100\",\r\n \"state\": + \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": + \"921110\",\r\n \"state\": \"Disabled\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"ruleGroupName\": + \"REQUEST-913-SCANNER-DETECTION\",\r\n \"rules\": [\r\n {\r\n + \ \"ruleId\": \"913100\",\r\n \"state\": + \"Disabled\"\r\n }\r\n ]\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n + \ \"ruleSetVersion\": \"0.1\",\r\n \"ruleGroupOverrides\": + []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9de8d900-63b7-4a3b-b8a7-c0ed681fdc29?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '2157' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 Mar 2020 07:57:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9dbe504b-210c-4ad9-a8a7-63fc5c098d1a + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway waf-policy managed-rule exclusion add + Connection: + - keep-alive + ParameterSetName: + - -g --policy-name --match-variable --selector-match-operator --selector + User-Agent: + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1?api-version=2019-11-01 + response: + body: + string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n + \ \"etag\": \"W/\\\"23c3f169-0822-42ac-ab5f-b8fef0526899\\\"\",\r\n \"type\": + \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"customRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"priority\": + 50,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ },\r\n {\r\n \"name\": \"rule2\",\r\n \"priority\": + 100,\r\n \"ruleType\": \"MatchRule\",\r\n \"action\": \"Log\",\r\n + \ \"matchConditions\": [],\r\n \"skippedManagedRuleSets\": []\r\n + \ }\r\n ],\r\n \"policySettings\": {\r\n \"requestBodyCheck\": + false,\r\n \"maxRequestBodySizeInKb\": 128,\r\n \"fileUploadLimitInMb\": + 64,\r\n \"state\": \"Enabled\",\r\n \"mode\": \"Prevention\"\r\n + \ },\r\n \"managedRules\": {\r\n \"managedRuleSets\": [\r\n {\r\n + \ \"ruleSetType\": \"OWASP\",\r\n \"ruleSetVersion\": \"3.0\",\r\n + \ \"ruleGroupOverrides\": [\r\n {\r\n \"ruleGroupName\": + \"REQUEST-921-PROTOCOL-ATTACK\",\r\n \"rules\": [\r\n {\r\n + \ \"ruleId\": \"921100\",\r\n \"state\": + \"Disabled\"\r\n },\r\n {\r\n \"ruleId\": + \"921110\",\r\n \"state\": \"Disabled\"\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"ruleGroupName\": + \"REQUEST-913-SCANNER-DETECTION\",\r\n \"rules\": [\r\n {\r\n + \ \"ruleId\": \"913100\",\r\n \"state\": + \"Disabled\"\r\n }\r\n ]\r\n }\r\n + \ ]\r\n },\r\n {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n + \ \"ruleSetVersion\": \"0.1\",\r\n \"ruleGroupOverrides\": + []\r\n }\r\n ],\r\n \"exclusions\": []\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2158' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 Mar 2020 07:57:22 GMT etag: - - W/"d5f832dd-a6c9-4f2c-a13b-c9c53e8fe9b1" + - W/"23c3f169-0822-42ac-ab5f-b8fef0526899" expires: - '-1' pragma: @@ -1242,7 +1580,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - dec62225-3bfb-412d-a9f0-9ff6e53697dc + - 130e52c5-1395-439b-ab10-f10281fe13b7 status: code: 200 message: OK @@ -1258,7 +1596,8 @@ interactions: [{"ruleSetType": "OWASP", "ruleSetVersion": "3.0", "ruleGroupOverrides": [{"ruleGroupName": "REQUEST-921-PROTOCOL-ATTACK", "rules": [{"ruleId": "921100", "state": "Disabled"}, {"ruleId": "921110", "state": "Disabled"}]}, {"ruleGroupName": "REQUEST-913-SCANNER-DETECTION", - "rules": [{"ruleId": "913100", "state": "Disabled"}]}]}]}}}''' + "rules": [{"ruleId": "913100", "state": "Disabled"}]}]}, {"ruleSetType": "Microsoft_BotManagerRuleSet", + "ruleSetVersion": "0.1", "ruleGroupOverrides": []}]}}}''' headers: Accept: - application/json @@ -1269,14 +1608,14 @@ interactions: Connection: - keep-alive Content-Length: - - '1146' + - '1245' Content-Type: - application/json; charset=utf-8 ParameterSetName: - -g --policy-name --match-variable --selector-match-operator --selector User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -1284,7 +1623,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"81b7b5a5-4676-4076-a623-8e63a86cb8fc\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"4fd0c1da-ea6e-409e-8731-1771a10b6e0a\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n @@ -1308,21 +1647,22 @@ interactions: \"REQUEST-913-SCANNER-DETECTION\",\r\n \"rules\": [\r\n {\r\n \ \"ruleId\": \"913100\",\r\n \"state\": \"Disabled\"\r\n }\r\n ]\r\n }\r\n - \ ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n - \ \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": - \"StartsWith\",\r\n \"selector\": \"Bing\"\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + \ ]\r\n },\r\n {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n + \ \"ruleSetVersion\": \"0.1\",\r\n \"ruleGroupOverrides\": + []\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": + \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"StartsWith\",\r\n + \ \"selector\": \"Bing\"\r\n }\r\n ]\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c3aa0f95-e99c-4084-a693-0539110a4991?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/91108edd-7764-4b76-8196-169f1c16f480?api-version=2019-11-01 cache-control: - no-cache content-length: - - '2165' + - '2317' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:24 GMT + - Tue, 10 Mar 2020 07:57:22 GMT expires: - '-1' pragma: @@ -1339,7 +1679,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c6e1caa0-e61a-4a5f-b931-b589265b2a81 + - 3ca59847-b846-4a1b-b48c-a315629c33d2 x-ms-ratelimit-remaining-subscription-writes: - '1197' status: @@ -1359,8 +1699,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -1368,7 +1708,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"e0ca5b1f-4aba-4355-8b05-9c9091fad94d\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"cc2bc598-f154-4256-bec5-f0f8c9949963\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -1392,21 +1732,22 @@ interactions: \"REQUEST-913-SCANNER-DETECTION\",\r\n \"rules\": [\r\n {\r\n \ \"ruleId\": \"913100\",\r\n \"state\": \"Disabled\"\r\n }\r\n ]\r\n }\r\n - \ ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n - \ \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": - \"StartsWith\",\r\n \"selector\": \"Bing\"\r\n }\r\n ]\r\n - \ }\r\n }\r\n}" + \ ]\r\n },\r\n {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n + \ \"ruleSetVersion\": \"0.1\",\r\n \"ruleGroupOverrides\": + []\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": + \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"StartsWith\",\r\n + \ \"selector\": \"Bing\"\r\n }\r\n ]\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2166' + - '2318' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:26 GMT + - Tue, 10 Mar 2020 07:57:24 GMT etag: - - W/"e0ca5b1f-4aba-4355-8b05-9c9091fad94d" + - W/"cc2bc598-f154-4256-bec5-f0f8c9949963" expires: - '-1' pragma: @@ -1423,7 +1764,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 36635836-6006-44b9-af59-d00ad3ed5213 + - 0356f9e0-a04e-4049-8608-8bb9b251e176 status: code: 200 message: OK @@ -1441,24 +1782,24 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-06T18:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-10T07:56:44Z","StorageType":"Standard_LRS","type":"test"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '471' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:27 GMT + - Tue, 10 Mar 2020 07:57:25 GMT expires: - '-1' pragma: @@ -1491,8 +1832,8 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -1500,15 +1841,17 @@ interactions: response: body: string: "{\r\n \"name\": \"pip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1\",\r\n - \ \"etag\": \"W/\\\"0a8bb80e-7ee6-477b-9349-39038d34219d\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"d04fb8ce-2d06-4e53-8dfe-3cb2a55fa513\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"0e72b82c-f818-4f4c-839c-cfeda479d848\",\r\n \"publicIPAddressVersion\": + \ \"resourceGuid\": \"9fef6d2f-11f8-4349-af67-bd2d3e679d98\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" headers: + azure-asyncnotification: + - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f6db6ba4-d5f8-4c7c-9065-4716eecf60ec?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/511c12dc-f83b-4c2b-85d7-2c5bc9cbf193?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1516,7 +1859,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:32 GMT + - Tue, 10 Mar 2020 07:57:29 GMT expires: - '-1' pragma: @@ -1529,7 +1872,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b72a6376-f2a0-4116-bdd7-aa801a1bee9d + - 17248ee8-3ea1-4685-9f6a-0fabd0e3184e x-ms-ratelimit-remaining-subscription-writes: - '1196' status: @@ -1549,10 +1892,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f6db6ba4-d5f8-4c7c-9065-4716eecf60ec?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/511c12dc-f83b-4c2b-85d7-2c5bc9cbf193?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1564,7 +1907,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:34 GMT + - Tue, 10 Mar 2020 07:57:32 GMT expires: - '-1' pragma: @@ -1581,7 +1924,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c85926b3-c555-480f-8896-5478a90b68bc + - 61bf7435-76b4-4ba5-a861-fe95cba8edac status: code: 200 message: OK @@ -1599,17 +1942,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1?api-version=2019-11-01 response: body: string: "{\r\n \"name\": \"pip1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1\",\r\n - \ \"etag\": \"W/\\\"6cfeddea-b4a1-41ab-b3ff-7120fbac28cd\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"77b7978b-b587-4805-a3ed-f326091f4f44\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"0e72b82c-f818-4f4c-839c-cfeda479d848\",\r\n \"ipAddress\": - \"13.87.227.60\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \ \"resourceGuid\": \"9fef6d2f-11f8-4349-af67-bd2d3e679d98\",\r\n \"ipAddress\": + \"13.91.193.135\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" @@ -1617,13 +1960,13 @@ interactions: cache-control: - no-cache content-length: - - '693' + - '694' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:34 GMT + - Tue, 10 Mar 2020 07:57:32 GMT etag: - - W/"6cfeddea-b4a1-41ab-b3ff-7120fbac28cd" + - W/"77b7978b-b587-4805-a3ed-f326091f4f44" expires: - '-1' pragma: @@ -1640,7 +1983,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6dba6b46-425f-46ba-8fb0-dc281e182c66 + - 3b4b5c3c-8f89-4efb-9abf-d236c905224e status: code: 200 message: OK @@ -1658,24 +2001,24 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-06T18:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-10T07:56:44Z","StorageType":"Standard_LRS","type":"test"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '471' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:35 GMT + - Tue, 10 Mar 2020 07:57:33 GMT expires: - '-1' pragma: @@ -1708,8 +2051,8 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT @@ -1717,15 +2060,17 @@ interactions: response: body: string: "{\r\n \"name\": \"pip2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip2\",\r\n - \ \"etag\": \"W/\\\"ac228f27-45f3-4b32-a49c-23704450aa4c\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"2cf67475-39ed-4984-b924-d0edaa6f4c9d\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"a12b8019-572f-42c0-97bf-8d5bb024b39b\",\r\n \"publicIPAddressVersion\": + \ \"resourceGuid\": \"8af5be70-5a47-4eea-9f37-eda0759cf6d4\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" headers: + azure-asyncnotification: + - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/61ef014e-e53a-4181-8bbe-ac8b066f8af6?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/648a9f2c-f265-498c-84bd-583de2548dc0?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -1733,7 +2078,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:39 GMT + - Tue, 10 Mar 2020 07:57:42 GMT expires: - '-1' pragma: @@ -1746,9 +2091,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 373162c7-0c67-4482-81f2-bfc5d542a8ba + - 690b36dd-9688-4e50-ae6a-524fe2f45f19 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 201 message: Created @@ -1766,10 +2111,10 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/61ef014e-e53a-4181-8bbe-ac8b066f8af6?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/648a9f2c-f265-498c-84bd-583de2548dc0?api-version=2019-11-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -1781,7 +2126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:42 GMT + - Tue, 10 Mar 2020 07:57:44 GMT expires: - '-1' pragma: @@ -1798,7 +2143,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - e06c6540-6d08-4f85-8d2a-df2a843230b3 + - 48ceb2db-2e0d-4cf5-8e48-c9432c1adef5 status: code: 200 message: OK @@ -1816,17 +2161,17 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip2?api-version=2019-11-01 response: body: string: "{\r\n \"name\": \"pip2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip2\",\r\n - \ \"etag\": \"W/\\\"74d48388-2e67-4044-b8f7-b2548e95d461\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"c784a0dd-3556-418d-9edc-62512a2cad6a\\\"\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"a12b8019-572f-42c0-97bf-8d5bb024b39b\",\r\n \"ipAddress\": - \"13.87.228.100\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \ \"resourceGuid\": \"8af5be70-5a47-4eea-9f37-eda0759cf6d4\",\r\n \"ipAddress\": + \"13.86.245.229\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n }\r\n}" @@ -1838,9 +2183,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:42 GMT + - Tue, 10 Mar 2020 07:57:44 GMT etag: - - W/"74d48388-2e67-4044-b8f7-b2548e95d461" + - W/"c784a0dd-3556-418d-9edc-62512a2cad6a" expires: - '-1' pragma: @@ -1857,7 +2202,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fe9a344f-b537-4cea-9649-a59bf0efb110 + - 57bac2b5-b4f8-4834-ac7d-ad9f8c8bc25c status: code: 200 message: OK @@ -1875,24 +2220,24 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-06T18:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-10T07:56:44Z","StorageType":"Standard_LRS","type":"test"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '471' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:43 GMT + - Tue, 10 Mar 2020 07:57:46 GMT expires: - '-1' pragma: @@ -1920,24 +2265,24 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27cli_test_app_gateway_waf_policy_000001%27%20and%20name%20eq%20%27vnet1%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FvirtualNetworks%27&api-version=2019-07-01 response: body: - string: '{"value":[]}' + string: '{"value":[],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?%24filter=resourceGroup+eq+%27cli_test_app_gateway_waf_policy_000001%27+and+name+eq+%27vnet1%27+and+resourceType+eq+%27Microsoft.Network%2fvirtualNetworks%27&api-version=2019-07-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU9FTTVOa1UtIiwibmV4dFJvd0tleSI6IjEhMTc2IU1FSXhSalkwTnpFeFFrWXdORVJFUVVGRlF6TkRRamt5TnpKR01EazFPVEJmUjFKTUxVMUZURWxVUlZOVU9qSkVSVUZUVkZWVE1pMU5TVU5TVDFOUFJsUTZNa1ZPUlZSWFQxSkxPakpHVGtWVVYwOVNTMGxPVkVWU1JrRkRSVk02TWtaVFFVMVFURVU2TWtSU1ZVSlpPakpFVGtsRE9qSkVNamMwTFVWQlUxUlZVekktIn0%3d"}' headers: cache-control: - no-cache content-length: - - '12' + - '661' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:44 GMT + - Tue, 10 Mar 2020 07:57:47 GMT expires: - '-1' pragma: @@ -1965,24 +2310,24 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27cli_test_app_gateway_waf_policy_000001%27%20and%20name%20eq%20%27pip1%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?%24filter=resourceGroup+eq+%27cli_test_app_gateway_waf_policy_000001%27+and+name+eq+%27vnet1%27+and+resourceType+eq+%27Microsoft.Network%2fvirtualNetworks%27&api-version=2019-07-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU9FTTVOa1UtIiwibmV4dFJvd0tleSI6IjEhMTc2IU1FSXhSalkwTnpFeFFrWXdORVJFUVVGRlF6TkRRamt5TnpKR01EazFPVEJmUjFKTUxVMUZURWxVUlZOVU9qSkVSVUZUVkZWVE1pMU5TVU5TVDFOUFJsUTZNa1ZPUlZSWFQxSkxPakpHVGtWVVYwOVNTMGxPVkVWU1JrRkRSVk02TWtaVFFVMVFURVU2TWtSU1ZVSlpPakpFVGtsRE9qSkVNamMwTFVWQlUxUlZVekktIn0%3d response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1","name":"pip1","type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard"},"location":"westus"}]}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '319' + - '12' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:00:44 GMT + - Tue, 10 Mar 2020 07:57:47 GMT expires: - '-1' pragma: @@ -1997,34 +2342,7 @@ interactions: code: 200 message: OK - request: - body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", "parameters": {}, "variables": {"appGwID": "[resourceId(\''Microsoft.Network/applicationGateways\'', - \''ag1\'')]"}, "resources": [{"name": "vnet1", "type": "Microsoft.Network/virtualNetworks", - "location": "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, - "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": - [{"name": "subnet1", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": - "Microsoft.Network/applicationGateways", "name": "ag1", "location": "westus", - "tags": {}, "apiVersion": "2019-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vnet1"], - "properties": {"backendAddressPools": [{"name": "appGatewayBackendPool"}], "backendHttpSettingsCollection": - [{"name": "appGatewayBackendHttpSettings", "properties": {"Port": 80, "Protocol": - "Http", "CookieBasedAffinity": "disabled", "connectionDraining": {"enabled": - false, "drainTimeoutInSec": 1}}}], "frontendIPConfigurations": [{"name": "appGatewayFrontendIP", - "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}], - "frontendPorts": [{"name": "appGatewayFrontendPort", "properties": {"Port": - 80}}], "gatewayIPConfigurations": [{"name": "appGatewayFrontendIP", "properties": - {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"}}}], - "httpListeners": [{"name": "appGatewayHttpListener", "properties": {"FrontendIpConfiguration": - {"Id": "[concat(variables(\''appGwID\''), \''/frontendIPConfigurations/appGatewayFrontendIP\'')]"}, - "FrontendPort": {"Id": "[concat(variables(\''appGwID\''), \''/frontendPorts/appGatewayFrontendPort\'')]"}, - "Protocol": "http", "SslCertificate": null}}], "sku": {"name": "WAF_v2", "tier": - "WAF_v2", "capacity": 2}, "requestRoutingRules": [{"Name": "rule1", "properties": - {"RuleType": "Basic", "httpListener": {"id": "[concat(variables(\''appGwID\''), - \''/httpListeners/appGatewayHttpListener\'')]"}, "backendAddressPool": {"id": - "[concat(variables(\''appGwID\''), \''/backendAddressPools/appGatewayBackendPool\'')]"}, - "backendHttpSettings": {"id": "[concat(variables(\''appGwID\''), \''/backendHttpSettingsCollection/appGatewayBackendHttpSettings\'')]"}}}], - "firewallPolicy": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}, - "zones": null}], "outputs": {"applicationGateway": {"type": "object", "value": - "[reference(\''ag1\'')]"}}}, "parameters": {}, "mode": "Incremental"}}''' + body: null headers: Accept: - application/json @@ -2034,76 +2352,27 @@ interactions: - network application-gateway create Connection: - keep-alive - Content-Length: - - '2964' - Content-Type: - - application/json; charset=utf-8 ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_2PEmXXqJ1aIvay22MGCG4ao8xvpQojAZ","name":"ag_deploy_2PEmXXqJ1aIvay22MGCG4ao8xvpQojAZ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1178876309574670871","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-02-06T19:00:48.3432168Z","duration":"PT1.6719541S","correlationId":"af391aca-c47f-48a0-b297-57988937ad0e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag1"}]}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_2PEmXXqJ1aIvay22MGCG4ao8xvpQojAZ/operationStatuses/08586205912388063727?api-version=2019-07-01 - cache-control: - - no-cache - content-length: - - '1346' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 06 Feb 2020 19:00:48 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - network application-gateway create - Connection: - - keep-alive - ParameterSetName: - - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy - User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceGroup%20eq%20%27cli_test_app_gateway_waf_policy_000001%27%20and%20name%20eq%20%27pip1%27%20and%20resourceType%20eq%20%27Microsoft.Network%2FpublicIPAddresses%27&api-version=2019-07-01 response: body: - string: '{"status":"Running"}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1","name":"pip1","type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard"},"location":"westus"}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?%24filter=resourceGroup+eq+%27cli_test_app_gateway_waf_policy_000001%27+and+name+eq+%27pip1%27+and+resourceType+eq+%27Microsoft.Network%2fpublicIPAddresses%27&api-version=2019-07-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU9FTTVOa1UtIiwibmV4dFJvd0tleSI6IjEhMTc2IU1FSXhSalkwTnpFeFFrWXdORVJFUVVGRlF6TkRRamt5TnpKR01EazFPVEJmUjFKTUxVMUZURWxVUlZOVU9qSkVSVUZUVkZWVE1pMU5TVU5TVDFOUFJsUTZNa1ZPUlZSWFQxSkxPakpHVGtWVVYwOVNTMGxPVkVWU1JrRkRSVk02TWtaVFFVMVFURVU2TWtSU1ZVSlpPakpFVGtsRE9qSkVNamMwTFVWQlUxUlZVekktIn0%3d"}' headers: cache-control: - no-cache content-length: - - '20' + - '969' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:01:20 GMT + - Tue, 10 Mar 2020 07:57:47 GMT expires: - '-1' pragma: @@ -2131,22 +2400,24 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?%24filter=resourceGroup+eq+%27cli_test_app_gateway_waf_policy_000001%27+and+name+eq+%27pip1%27+and+resourceType+eq+%27Microsoft.Network%2fpublicIPAddresses%27&api-version=2019-07-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU9FTTVOa1UtIiwibmV4dFJvd0tleSI6IjEhMTc2IU1FSXhSalkwTnpFeFFrWXdORVJFUVVGRlF6TkRRamt5TnpKR01EazFPVEJmUjFKTUxVMUZURWxVUlZOVU9qSkVSVUZUVkZWVE1pMU5TVU5TVDFOUFJsUTZNa1ZPUlZSWFQxSkxPakpHVGtWVVYwOVNTMGxPVkVWU1JrRkRSVk02TWtaVFFVMVFURVU2TWtSU1ZVSlpPakpFVGtsRE9qSkVNamMwTFVWQlUxUlZVekktIn0%3d response: body: - string: '{"status":"Running"}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '20' + - '12' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:01:51 GMT + - Tue, 10 Mar 2020 07:57:47 GMT expires: - '-1' pragma: @@ -2161,7 +2432,34 @@ interactions: code: 200 message: OK - request: - body: null + body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {"appGwID": "[resourceId(\''Microsoft.Network/applicationGateways\'', + \''ag1\'')]"}, "resources": [{"name": "vnet1", "type": "Microsoft.Network/virtualNetworks", + "location": "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, + "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": + [{"name": "subnet1", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/applicationGateways", "name": "ag1", "location": "westus", + "tags": {}, "apiVersion": "2019-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vnet1"], + "properties": {"backendAddressPools": [{"name": "appGatewayBackendPool"}], "backendHttpSettingsCollection": + [{"name": "appGatewayBackendHttpSettings", "properties": {"Port": 80, "Protocol": + "Http", "CookieBasedAffinity": "disabled", "connectionDraining": {"enabled": + false, "drainTimeoutInSec": 1}}}], "frontendIPConfigurations": [{"name": "appGatewayFrontendIP", + "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1"}}}], + "frontendPorts": [{"name": "appGatewayFrontendPort", "properties": {"Port": + 80}}], "gatewayIPConfigurations": [{"name": "appGatewayFrontendIP", "properties": + {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"}}}], + "httpListeners": [{"name": "appGatewayHttpListener", "properties": {"FrontendIpConfiguration": + {"Id": "[concat(variables(\''appGwID\''), \''/frontendIPConfigurations/appGatewayFrontendIP\'')]"}, + "FrontendPort": {"Id": "[concat(variables(\''appGwID\''), \''/frontendPorts/appGatewayFrontendPort\'')]"}, + "Protocol": "http", "SslCertificate": null}}], "sku": {"name": "WAF_v2", "tier": + "WAF_v2", "capacity": 2}, "requestRoutingRules": [{"Name": "rule1", "properties": + {"RuleType": "Basic", "httpListener": {"id": "[concat(variables(\''appGwID\''), + \''/httpListeners/appGatewayHttpListener\'')]"}, "backendAddressPool": {"id": + "[concat(variables(\''appGwID\''), \''/backendAddressPools/appGatewayBackendPool\'')]"}, + "backendHttpSettings": {"id": "[concat(variables(\''appGwID\''), \''/backendHttpSettingsCollection/appGatewayBackendHttpSettings\'')]"}}}], + "firewallPolicy": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}, + "zones": null}], "outputs": {"applicationGateway": {"type": "object", "value": + "[reference(\''ag1\'')]"}}}, "parameters": {}, "mode": "Incremental"}}''' headers: Accept: - application/json @@ -2171,38 +2469,46 @@ interactions: - network application-gateway create Connection: - keep-alive + Content-Length: + - '2964' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"status":"Running"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_jCMW6z4sCFVMLT3Rim17cEvH86bApaS4","name":"ag_deploy_jCMW6z4sCFVMLT3Rim17cEvH86bApaS4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4074328517485330392","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-03-10T07:57:51.7601181Z","duration":"PT1.6205217S","correlationId":"6b45b6af-1fef-4b18-833f-08bd06d90391","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag1"}]}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_jCMW6z4sCFVMLT3Rim17cEvH86bApaS4/operationStatuses/08586177798153380274?api-version=2019-07-01 cache-control: - no-cache content-length: - - '20' + - '1346' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:02:21 GMT + - Tue, 10 Mar 2020 07:57:52 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -2217,10 +2523,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2232,7 +2538,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:02:52 GMT + - Tue, 10 Mar 2020 07:58:22 GMT expires: - '-1' pragma: @@ -2260,10 +2566,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2275,7 +2581,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:03:21 GMT + - Tue, 10 Mar 2020 07:58:53 GMT expires: - '-1' pragma: @@ -2303,10 +2609,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2318,7 +2624,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:03:53 GMT + - Tue, 10 Mar 2020 07:59:23 GMT expires: - '-1' pragma: @@ -2346,10 +2652,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2361,7 +2667,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:04:24 GMT + - Tue, 10 Mar 2020 07:59:54 GMT expires: - '-1' pragma: @@ -2389,10 +2695,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2404,7 +2710,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:04:54 GMT + - Tue, 10 Mar 2020 08:00:25 GMT expires: - '-1' pragma: @@ -2432,10 +2738,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2447,7 +2753,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:05:25 GMT + - Tue, 10 Mar 2020 08:00:55 GMT expires: - '-1' pragma: @@ -2475,10 +2781,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2490,7 +2796,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:05:55 GMT + - Tue, 10 Mar 2020 08:01:26 GMT expires: - '-1' pragma: @@ -2518,10 +2824,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2533,7 +2839,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:06:26 GMT + - Tue, 10 Mar 2020 08:01:56 GMT expires: - '-1' pragma: @@ -2561,10 +2867,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2576,7 +2882,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:06:56 GMT + - Tue, 10 Mar 2020 08:02:27 GMT expires: - '-1' pragma: @@ -2604,10 +2910,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2619,7 +2925,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:07:27 GMT + - Tue, 10 Mar 2020 08:02:57 GMT expires: - '-1' pragma: @@ -2647,10 +2953,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2662,7 +2968,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:07:57 GMT + - Tue, 10 Mar 2020 08:03:27 GMT expires: - '-1' pragma: @@ -2690,10 +2996,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2705,7 +3011,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:08:28 GMT + - Tue, 10 Mar 2020 08:03:58 GMT expires: - '-1' pragma: @@ -2733,10 +3039,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2748,7 +3054,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:08:59 GMT + - Tue, 10 Mar 2020 08:04:29 GMT expires: - '-1' pragma: @@ -2776,10 +3082,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2791,7 +3097,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:09:29 GMT + - Tue, 10 Mar 2020 08:05:00 GMT expires: - '-1' pragma: @@ -2819,10 +3125,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2834,7 +3140,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:10:00 GMT + - Tue, 10 Mar 2020 08:05:30 GMT expires: - '-1' pragma: @@ -2862,10 +3168,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -2877,7 +3183,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:10:30 GMT + - Tue, 10 Mar 2020 08:06:00 GMT expires: - '-1' pragma: @@ -2905,10 +3211,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205912388063727?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177798153380274?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -2920,7 +3226,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:02 GMT + - Tue, 10 Mar 2020 08:06:32 GMT expires: - '-1' pragma: @@ -2948,22 +3254,22 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_2PEmXXqJ1aIvay22MGCG4ao8xvpQojAZ","name":"ag_deploy_2PEmXXqJ1aIvay22MGCG4ao8xvpQojAZ","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1178876309574670871","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-02-06T19:10:32.911938Z","duration":"PT9M46.2406753S","correlationId":"af391aca-c47f-48a0-b297-57988937ad0e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag1"}],"outputs":{"applicationGateway":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"cb41d179-0a60-4fe5-bcab-25b77c8ccd0a","sku":{"name":"WAF_v2","tier":"WAF_v2","capacity":2},"operationalState":"Running","gatewayIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"}},"type":"Microsoft.Network/applicationGateways/gatewayIPConfigurations"}],"sslCertificates":[],"trustedRootCertificates":[],"trustedClientCertificates":[],"sslProfiles":[],"frontendIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","type":"Microsoft.Network/applicationGateways/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"}]}}],"frontendPorts":[{"name":"appGatewayFrontendPort","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","port":80,"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"}]},"type":"Microsoft.Network/applicationGateways/frontendPorts"}],"backendAddressPools":[{"name":"appGatewayBackendPool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","backendAddresses":[],"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendAddressPools"}],"loadDistributionPolicies":[],"backendHttpSettingsCollection":[{"name":"appGatewayBackendHttpSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","port":80,"protocol":"Http","cookieBasedAffinity":"Disabled","connectionDraining":{"enabled":false,"drainTimeoutInSec":1},"pickHostNameFromBackendAddress":false,"requestTimeout":30,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendHttpSettingsCollection"}],"httpListeners":[{"name":"appGatewayHttpListener","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","frontendIPConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP"},"frontendPort":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort"},"protocol":"Http","hostNames":[],"requireServerNameIndication":false,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/httpListeners"}],"urlPathMaps":[],"requestRoutingRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1","etag":"W/\"7dfb3dbe-0a87-4b45-9830-4f485286958d\"","properties":{"provisioningState":"Succeeded","ruleType":"Basic","httpListener":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"},"backendAddressPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool"},"backendHttpSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},"type":"Microsoft.Network/applicationGateways/requestRoutingRules"}],"probes":[],"rewriteRuleSets":[],"redirectConfigurations":[],"firewallPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_jCMW6z4sCFVMLT3Rim17cEvH86bApaS4","name":"ag_deploy_jCMW6z4sCFVMLT3Rim17cEvH86bApaS4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4074328517485330392","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-03-10T08:06:02.3899342Z","duration":"PT8M12.2503378S","correlationId":"6b45b6af-1fef-4b18-833f-08bd06d90391","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet1"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag1"}],"outputs":{"applicationGateway":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"cfae168d-e398-4887-a4ec-9ccffc37487c","sku":{"name":"WAF_v2","tier":"WAF_v2","capacity":2},"operationalState":"Running","gatewayIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"}},"type":"Microsoft.Network/applicationGateways/gatewayIPConfigurations"}],"sslCertificates":[],"trustedRootCertificates":[],"trustedClientCertificates":[],"sslProfiles":[],"frontendIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","type":"Microsoft.Network/applicationGateways/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip1"},"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"}]}}],"frontendPorts":[{"name":"appGatewayFrontendPort","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","port":80,"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"}]},"type":"Microsoft.Network/applicationGateways/frontendPorts"}],"backendAddressPools":[{"name":"appGatewayBackendPool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","backendAddresses":[],"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendAddressPools"}],"loadDistributionPolicies":[],"backendHttpSettingsCollection":[{"name":"appGatewayBackendHttpSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","port":80,"protocol":"Http","cookieBasedAffinity":"Disabled","connectionDraining":{"enabled":false,"drainTimeoutInSec":1},"pickHostNameFromBackendAddress":false,"requestTimeout":30,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendHttpSettingsCollection"}],"httpListeners":[{"name":"appGatewayHttpListener","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","frontendIPConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP"},"frontendPort":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort"},"protocol":"Http","hostNames":[],"requireServerNameIndication":false,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/httpListeners"}],"urlPathMaps":[],"requestRoutingRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1","etag":"W/\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\"","properties":{"provisioningState":"Succeeded","ruleType":"Basic","httpListener":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener"},"backendAddressPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool"},"backendHttpSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},"type":"Microsoft.Network/applicationGateways/requestRoutingRules"}],"probes":[],"rewriteRuleSets":[],"redirectConfigurations":[],"firewallPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1"}]}}' headers: cache-control: - no-cache content-length: - - '9143' + - '9144' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:02 GMT + - Tue, 10 Mar 2020 08:06:32 GMT expires: - '-1' pragma: @@ -2991,24 +3297,24 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-02-06T18:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001","name":"cli_test_app_gateway_waf_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-03-10T07:56:44Z","StorageType":"Standard_LRS","type":"test"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '471' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:04 GMT + - Tue, 10 Mar 2020 08:06:33 GMT expires: - '-1' pragma: @@ -3036,8 +3342,8 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -3053,7 +3359,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:04 GMT + - Tue, 10 Mar 2020 08:06:34 GMT expires: - '-1' pragma: @@ -3081,8 +3387,8 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -3098,7 +3404,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:06 GMT + - Tue, 10 Mar 2020 08:06:34 GMT expires: - '-1' pragma: @@ -3157,26 +3463,26 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_zNqCeQXnvSylrMaoipDvG86ErkquXUS2","name":"ag_deploy_zNqCeQXnvSylrMaoipDvG86ErkquXUS2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13695536902132074924","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-02-06T19:11:11.7517296Z","duration":"PT2.8422319S","correlationId":"0d0bf370-dd6a-497e-b8d7-31f93aa2fa1b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag2"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_4FRhXZx16mCma9F92lBazErG8dCY1M4b","name":"ag_deploy_4FRhXZx16mCma9F92lBazErG8dCY1M4b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9000230202994207016","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2020-03-10T08:06:40.3000453Z","duration":"PT2.6479467S","correlationId":"3f987a1a-6079-42c9-ae8f-843c9812068b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag2"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_zNqCeQXnvSylrMaoipDvG86ErkquXUS2/operationStatuses/08586205906165681163?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_4FRhXZx16mCma9F92lBazErG8dCY1M4b/operationStatuses/08586177792878255248?api-version=2019-07-01 cache-control: - no-cache content-length: - - '1347' + - '1346' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:12 GMT + - Tue, 10 Mar 2020 08:06:40 GMT expires: - '-1' pragma: @@ -3186,7 +3492,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1194' status: code: 201 message: Created @@ -3204,10 +3510,53 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 Mar 2020 08:07:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network application-gateway create + Connection: + - keep-alive + ParameterSetName: + - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy + User-Agent: + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3219,7 +3568,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:11:44 GMT + - Tue, 10 Mar 2020 08:07:42 GMT expires: - '-1' pragma: @@ -3247,10 +3596,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3262,7 +3611,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:12:14 GMT + - Tue, 10 Mar 2020 08:08:13 GMT expires: - '-1' pragma: @@ -3290,10 +3639,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3305,7 +3654,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:12:45 GMT + - Tue, 10 Mar 2020 08:08:44 GMT expires: - '-1' pragma: @@ -3333,10 +3682,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3348,7 +3697,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:13:15 GMT + - Tue, 10 Mar 2020 08:09:14 GMT expires: - '-1' pragma: @@ -3376,10 +3725,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3391,7 +3740,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:13:46 GMT + - Tue, 10 Mar 2020 08:09:45 GMT expires: - '-1' pragma: @@ -3419,10 +3768,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3434,7 +3783,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:14:16 GMT + - Tue, 10 Mar 2020 08:10:16 GMT expires: - '-1' pragma: @@ -3462,10 +3811,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3477,7 +3826,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:14:47 GMT + - Tue, 10 Mar 2020 08:10:46 GMT expires: - '-1' pragma: @@ -3505,10 +3854,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3520,7 +3869,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:15:17 GMT + - Tue, 10 Mar 2020 08:11:16 GMT expires: - '-1' pragma: @@ -3548,10 +3897,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3563,7 +3912,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:15:48 GMT + - Tue, 10 Mar 2020 08:11:47 GMT expires: - '-1' pragma: @@ -3591,10 +3940,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3606,7 +3955,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:16:18 GMT + - Tue, 10 Mar 2020 08:12:17 GMT expires: - '-1' pragma: @@ -3634,10 +3983,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3649,7 +3998,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:16:49 GMT + - Tue, 10 Mar 2020 08:12:48 GMT expires: - '-1' pragma: @@ -3677,10 +4026,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -3692,7 +4041,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:20 GMT + - Tue, 10 Mar 2020 08:13:19 GMT expires: - '-1' pragma: @@ -3720,10 +4069,10 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586205906165681163?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586177792878255248?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -3735,7 +4084,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:50 GMT + - Tue, 10 Mar 2020 08:13:50 GMT expires: - '-1' pragma: @@ -3763,13 +4112,13 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name --public-ip-address --sku --waf-policy User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.2.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_zNqCeQXnvSylrMaoipDvG86ErkquXUS2","name":"ag_deploy_zNqCeQXnvSylrMaoipDvG86ErkquXUS2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13695536902132074924","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-02-06T19:17:47.3222637Z","duration":"PT6M38.412766S","correlationId":"0d0bf370-dd6a-497e-b8d7-31f93aa2fa1b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag2"}],"outputs":{"applicationGateway":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"d353b0de-3575-4787-a080-1ec14c011d44","sku":{"name":"WAF_v2","tier":"WAF_v2","capacity":2},"operationalState":"Running","gatewayIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/gatewayIPConfigurations/appGatewayFrontendIP","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2"}},"type":"Microsoft.Network/applicationGateways/gatewayIPConfigurations"}],"sslCertificates":[],"trustedRootCertificates":[],"trustedClientCertificates":[],"sslProfiles":[],"frontendIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","type":"Microsoft.Network/applicationGateways/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip2"},"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"}]}}],"frontendPorts":[{"name":"appGatewayFrontendPort","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","port":80,"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"}]},"type":"Microsoft.Network/applicationGateways/frontendPorts"}],"backendAddressPools":[{"name":"appGatewayBackendPool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendAddressPools/appGatewayBackendPool","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","backendAddresses":[],"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendAddressPools"}],"loadDistributionPolicies":[],"backendHttpSettingsCollection":[{"name":"appGatewayBackendHttpSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendHttpSettingsCollection/appGatewayBackendHttpSettings","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","port":80,"protocol":"Http","cookieBasedAffinity":"Disabled","connectionDraining":{"enabled":false,"drainTimeoutInSec":1},"pickHostNameFromBackendAddress":false,"requestTimeout":30,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendHttpSettingsCollection"}],"httpListeners":[{"name":"appGatewayHttpListener","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","frontendIPConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP"},"frontendPort":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort"},"protocol":"Http","hostNames":[],"requireServerNameIndication":false,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/httpListeners"}],"urlPathMaps":[],"requestRoutingRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1","etag":"W/\"a491ab00-0a44-470e-a889-ab9d8b840bbe\"","properties":{"provisioningState":"Succeeded","ruleType":"Basic","httpListener":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"},"backendAddressPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendAddressPools/appGatewayBackendPool"},"backendHttpSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},"type":"Microsoft.Network/applicationGateways/requestRoutingRules"}],"probes":[],"rewriteRuleSets":[],"redirectConfigurations":[],"firewallPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Resources/deployments/ag_deploy_4FRhXZx16mCma9F92lBazErG8dCY1M4b","name":"ag_deploy_4FRhXZx16mCma9F92lBazErG8dCY1M4b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9000230202994207016","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2020-03-10T08:13:37.6438161Z","duration":"PT6M59.9917175S","correlationId":"3f987a1a-6079-42c9-ae8f-843c9812068b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"applicationGateways","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vnet2"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2","resourceType":"Microsoft.Network/applicationGateways","resourceName":"ag2"}],"outputs":{"applicationGateway":{"type":"Object","value":{"provisioningState":"Succeeded","resourceGuid":"24cb997f-f379-489d-95a4-e846cc71b8d5","sku":{"name":"WAF_v2","tier":"WAF_v2","capacity":2},"operationalState":"Running","gatewayIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/gatewayIPConfigurations/appGatewayFrontendIP","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2"}},"type":"Microsoft.Network/applicationGateways/gatewayIPConfigurations"}],"sslCertificates":[],"trustedRootCertificates":[],"trustedClientCertificates":[],"sslProfiles":[],"frontendIPConfigurations":[{"name":"appGatewayFrontendIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","type":"Microsoft.Network/applicationGateways/frontendIPConfigurations","properties":{"provisioningState":"Succeeded","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/publicIPAddresses/pip2"},"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"}]}}],"frontendPorts":[{"name":"appGatewayFrontendPort","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","port":80,"httpListeners":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"}]},"type":"Microsoft.Network/applicationGateways/frontendPorts"}],"backendAddressPools":[{"name":"appGatewayBackendPool","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendAddressPools/appGatewayBackendPool","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","backendAddresses":[],"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendAddressPools"}],"loadDistributionPolicies":[],"backendHttpSettingsCollection":[{"name":"appGatewayBackendHttpSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendHttpSettingsCollection/appGatewayBackendHttpSettings","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","port":80,"protocol":"Http","cookieBasedAffinity":"Disabled","connectionDraining":{"enabled":false,"drainTimeoutInSec":1},"pickHostNameFromBackendAddress":false,"requestTimeout":30,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/backendHttpSettingsCollection"}],"httpListeners":[{"name":"appGatewayHttpListener","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","frontendIPConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP"},"frontendPort":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort"},"protocol":"Http","hostNames":[],"requireServerNameIndication":false,"requestRoutingRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1"}]},"type":"Microsoft.Network/applicationGateways/httpListeners"}],"urlPathMaps":[],"requestRoutingRules":[{"name":"rule1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1","etag":"W/\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\"","properties":{"provisioningState":"Succeeded","ruleType":"Basic","httpListener":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener"},"backendAddressPool":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendAddressPools/appGatewayBackendPool"},"backendHttpSettings":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendHttpSettingsCollection/appGatewayBackendHttpSettings"}},"type":"Microsoft.Network/applicationGateways/requestRoutingRules"}],"probes":[],"rewriteRuleSets":[],"redirectConfigurations":[],"firewallPolicy":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1"}}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2"}]}}' headers: cache-control: - no-cache @@ -3778,7 +4127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:51 GMT + - Tue, 10 Mar 2020 08:13:50 GMT expires: - '-1' pragma: @@ -3806,8 +4155,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -3815,15 +4164,15 @@ interactions: response: body: string: "{\r\n \"name\": \"ag1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"cb41d179-0a60-4fe5-bcab-25b77c8ccd0a\",\r\n \"sku\": + \ \"resourceGuid\": \"cfae168d-e398-4887-a4ec-9ccffc37487c\",\r\n \"sku\": {\r\n \"name\": \"WAF_v2\",\r\n \"tier\": \"WAF_v2\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\": \"Running\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/gatewayIPConfigurations/appGatewayFrontendIP\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/gatewayIPConfigurations\"\r\n @@ -3831,7 +4180,7 @@ interactions: [],\r\n \"trustedClientCertificates\": [],\r\n \"sslProfiles\": [],\r\n \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"type\": \"Microsoft.Network/applicationGateways/frontendIPConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": @@ -3841,14 +4190,14 @@ interactions: \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"port\": 80,\r\n \"httpListeners\": [\r\n {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\r\n \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/frontendPorts\"\r\n \ }\r\n ],\r\n \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendAddressPools/appGatewayBackendPool\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"backendAddresses\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\"\r\n @@ -3856,7 +4205,7 @@ interactions: \ }\r\n ],\r\n \"loadDistributionPolicies\": [],\r\n \"backendHttpSettingsCollection\": [\r\n {\r\n \"name\": \"appGatewayBackendHttpSettings\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/backendHttpSettingsCollection/appGatewayBackendHttpSettings\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\": {\r\n \"enabled\": @@ -3866,7 +4215,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/backendHttpSettingsCollection\"\r\n \ }\r\n ],\r\n \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendIPConfigurations/appGatewayFrontendIP\"\r\n \ },\r\n \"frontendPort\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/frontendPorts/appGatewayFrontendPort\"\r\n @@ -3876,7 +4225,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/httpListeners\"\r\n \ }\r\n ],\r\n \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/requestRoutingRules/rule1\",\r\n - \ \"etag\": \"W/\\\"7dfb3dbe-0a87-4b45-9830-4f485286958d\\\"\",\r\n + \ \"etag\": \"W/\\\"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1/httpListeners/appGatewayHttpListener\"\r\n @@ -3897,9 +4246,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:52 GMT + - Tue, 10 Mar 2020 08:13:52 GMT etag: - - W/"7dfb3dbe-0a87-4b45-9830-4f485286958d" + - W/"4c8d4fe0-44a8-4dc7-90f0-0f8169802cc1" expires: - '-1' pragma: @@ -3916,7 +4265,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c7f23521-e36d-45d9-84e4-1d17f017c1a6 + - 206e4002-0607-422a-b92e-75a916e47216 status: code: 200 message: OK @@ -3934,8 +4283,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -3943,15 +4292,15 @@ interactions: response: body: string: "{\r\n \"name\": \"ag2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \"type\": \"Microsoft.Network/applicationGateways\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"d353b0de-3575-4787-a080-1ec14c011d44\",\r\n \"sku\": + \ \"resourceGuid\": \"24cb997f-f379-489d-95a4-e846cc71b8d5\",\r\n \"sku\": {\r\n \"name\": \"WAF_v2\",\r\n \"tier\": \"WAF_v2\",\r\n \"capacity\": 2\r\n },\r\n \"operationalState\": \"Running\",\r\n \"gatewayIPConfigurations\": [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/gatewayIPConfigurations/appGatewayFrontendIP\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/gatewayIPConfigurations\"\r\n @@ -3959,7 +4308,7 @@ interactions: [],\r\n \"trustedClientCertificates\": [],\r\n \"sslProfiles\": [],\r\n \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"appGatewayFrontendIP\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"type\": \"Microsoft.Network/applicationGateways/frontendIPConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": @@ -3969,14 +4318,14 @@ interactions: \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"frontendPorts\": [\r\n {\r\n \"name\": \"appGatewayFrontendPort\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"port\": 80,\r\n \"httpListeners\": [\r\n {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener\"\r\n \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/frontendPorts\"\r\n \ }\r\n ],\r\n \"backendAddressPools\": [\r\n {\r\n \"name\": \"appGatewayBackendPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendAddressPools/appGatewayBackendPool\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"backendAddresses\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1\"\r\n @@ -3984,7 +4333,7 @@ interactions: \ }\r\n ],\r\n \"loadDistributionPolicies\": [],\r\n \"backendHttpSettingsCollection\": [\r\n {\r\n \"name\": \"appGatewayBackendHttpSettings\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/backendHttpSettingsCollection/appGatewayBackendHttpSettings\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"port\": 80,\r\n \"protocol\": \"Http\",\r\n \"cookieBasedAffinity\": \"Disabled\",\r\n \"connectionDraining\": {\r\n \"enabled\": @@ -3994,7 +4343,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/backendHttpSettingsCollection\"\r\n \ }\r\n ],\r\n \"httpListeners\": [\r\n {\r\n \"name\": \"appGatewayHttpListener\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendIPConfigurations/appGatewayFrontendIP\"\r\n \ },\r\n \"frontendPort\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/frontendPorts/appGatewayFrontendPort\"\r\n @@ -4004,7 +4353,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/applicationGateways/httpListeners\"\r\n \ }\r\n ],\r\n \"urlPathMaps\": [],\r\n \"requestRoutingRules\": [\r\n {\r\n \"name\": \"rule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/requestRoutingRules/rule1\",\r\n - \ \"etag\": \"W/\\\"a491ab00-0a44-470e-a889-ab9d8b840bbe\\\"\",\r\n + \ \"etag\": \"W/\\\"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"ruleType\": \"Basic\",\r\n \"httpListener\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2/httpListeners/appGatewayHttpListener\"\r\n @@ -4025,9 +4374,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:54 GMT + - Tue, 10 Mar 2020 08:13:53 GMT etag: - - W/"a491ab00-0a44-470e-a889-ab9d8b840bbe" + - W/"b104bb82-d4ca-4c3d-9b85-a750bf7e1be4" expires: - '-1' pragma: @@ -4044,7 +4393,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d20dfce6-ea16-4f52-ba32-43b0731c06c8 + - c91520af-e2b0-4cdb-ae4e-44f1ffdb227b status: code: 200 message: OK @@ -4062,8 +4411,8 @@ interactions: ParameterSetName: - -g -n User-Agent: - - python/3.6.8 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.81 + - python/3.8.0 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-network/9.0.0 Azure-SDK-For-Python AZURECLI/2.2.0 accept-language: - en-US method: GET @@ -4071,7 +4420,7 @@ interactions: response: body: string: "{\r\n \"name\": \"agp1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/agp1\",\r\n - \ \"etag\": \"W/\\\"058fd601-cb0c-4a04-9734-2a32834d6f01\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"1b3a37a6-0072-4d42-a6b7-00d4ee1b1d61\\\"\",\r\n \"type\": \"Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies\",\r\n \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"test\": \"best\"\r\n \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n @@ -4095,23 +4444,25 @@ interactions: \"REQUEST-913-SCANNER-DETECTION\",\r\n \"rules\": [\r\n {\r\n \ \"ruleId\": \"913100\",\r\n \"state\": \"Disabled\"\r\n }\r\n ]\r\n }\r\n - \ ]\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n - \ \"matchVariable\": \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": - \"StartsWith\",\r\n \"selector\": \"Bing\"\r\n }\r\n ]\r\n - \ },\r\n \"applicationGateways\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1\"\r\n + \ ]\r\n },\r\n {\r\n \"ruleSetType\": \"Microsoft_BotManagerRuleSet\",\r\n + \ \"ruleSetVersion\": \"0.1\",\r\n \"ruleGroupOverrides\": + []\r\n }\r\n ],\r\n \"exclusions\": [\r\n {\r\n \"matchVariable\": + \"RequestHeaderNames\",\r\n \"selectorMatchOperator\": \"StartsWith\",\r\n + \ \"selector\": \"Bing\"\r\n }\r\n ]\r\n },\r\n \"applicationGateways\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag1\"\r\n \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_app_gateway_waf_policy_000001/providers/Microsoft.Network/applicationGateways/ag2\"\r\n \ }\r\n ]\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2665' + - '2817' content-type: - application/json; charset=utf-8 date: - - Thu, 06 Feb 2020 19:17:55 GMT + - Tue, 10 Mar 2020 08:13:56 GMT etag: - - W/"058fd601-cb0c-4a04-9734-2a32834d6f01" + - W/"1b3a37a6-0072-4d42-a6b7-00d4ee1b1d61" expires: - '-1' pragma: @@ -4128,7 +4479,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f556fb7b-afbe-44bc-88bf-ad3d7aab61c4 + - f25ef6ec-7e29-4083-b6e2-464d4e73e159 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py index 9e2b739f3b3..63bdd99a7b1 100644 --- a/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py +++ b/src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py @@ -1069,6 +1069,12 @@ def test_network_app_gateway_waf_policy_with_application_gateway(self, resource_ '--state Enabled --file-upload-limit-in-mb 64 --mode Prevention') # add two managed rule set to the managed rules of this waf-policy + self.cmd('network application-gateway waf-policy managed-rule rule-set add -g {rg} --policy-name {waf} ' + '--type OWASP --version 3.0', + checks=[ + self.check('managedRules.managedRuleSets[0].ruleSetType', 'OWASP'), + self.check('managedRules.managedRuleSets[0].ruleSetVersion', '3.0') + ]) self.cmd('network application-gateway waf-policy managed-rule rule-set add -g {rg} --policy-name {waf} ' '--type OWASP --version 3.0 ' '--group-name {csr_grp1} --rules 921100 921110') @@ -1076,6 +1082,13 @@ def test_network_app_gateway_waf_policy_with_application_gateway(self, resource_ '--type OWASP --version 3.0 ' '--group-name {csr_grp2} --rules 913100') + self.cmd('network application-gateway waf-policy managed-rule rule-set add -g {rg} --policy-name {waf} ' + '--type Microsoft_BotManagerRuleSet --version 0.1', + checks=[ + self.check('managedRules.managedRuleSets[1].ruleSetType', 'Microsoft_BotManagerRuleSet'), + self.check('managedRules.managedRuleSets[1].ruleSetVersion', '0.1') + ]) + # add one exclusion rule to the managed rules of this waf-policy self.cmd('network application-gateway waf-policy managed-rule exclusion add -g {rg} --policy-name {waf} ' '--match-variable "RequestHeaderNames" --selector-match-operator "StartsWith" --selector "Bing"') @@ -1091,6 +1104,8 @@ def test_network_app_gateway_waf_policy_with_application_gateway(self, resource_ self.check('managedRules.managedRuleSets[0].ruleGroupOverrides[0].rules[0].ruleId', '921100'), self.check('managedRules.managedRuleSets[0].ruleGroupOverrides[1].ruleGroupName', self.kwargs['csr_grp2']), self.check('managedRules.managedRuleSets[0].ruleGroupOverrides[1].rules[0].ruleId', '913100'), + self.check('managedRules.managedRuleSets[1].ruleSetType', 'Microsoft_BotManagerRuleSet'), + self.check('managedRules.managedRuleSets[1].ruleSetVersion', '0.1'), self.check('policySettings.fileUploadLimitInMb', 64), self.check('policySettings.maxRequestBodySizeInKb', 128), self.check('policySettings.mode', 'Prevention'),