{
			"if": {
				"anyOf": [
					{
						"allOf": [
							{
								"field": "type",
								"equals": "Microsoft.Network/virtualNetworks"
							},
							{
								"not": {
									"field": "Microsoft.Network/virtualNetworks/subnets[*].routeTable.id",
									"equals": "[parameters('rtId')]"
								}
							}
						]
					},
					{
						"allOf": [
							{
								"field": "type",
								"equals": "Microsoft.Network/virtualNetworks/subnets"
							},
							{
																													
								"not": {																														
									"field": "Microsoft.Network/virtualNetworks/subnets/routeTable.id",																														
									"equals": "[parameters('rtId')]"								
								}
							}
						]
					}
				]
			},
			"then": {
				"effect": "deny"
			}
		}
