From 5d4fbc9f5cbe6f17be4760d444fc23e137c0ce15 Mon Sep 17 00:00:00 2001 From: AllyWang Date: Tue, 21 Feb 2023 15:25:54 +0800 Subject: [PATCH 1/5] add connector cmds --- .../2022-01-01.json | 2 +- .../2022-01-01.xml | 73 ++++++++++--------- 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json index a154a1180dc..5834658f60d 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml index 6d5eb0fef3c..f0499b60c41 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml @@ -295,9 +295,7 @@ - - - + @@ -330,7 +328,29 @@ - + + + + + + + + + + + + + + + + + + + + + + + @@ -406,39 +426,25 @@ - - - - - - + + + - - + + - - - - - + + - - - - - - - - - - - + + + @@ -531,7 +537,9 @@ - + + + @@ -555,11 +563,6 @@ - - - - - @@ -659,7 +662,7 @@ - + From 71df140dac57e37c9e6d6a8eabaf493b0bbf3d9e Mon Sep 17 00:00:00 2001 From: AllyWang Date: Thu, 23 Feb 2023 19:53:26 +0800 Subject: [PATCH 2/5] add connector sungroups --- Commands/network/readme.md | 2 +- .../connection-monitor/endpoint/_create.md | 26 + .../connection-monitor/endpoint/_list.md | 16 + .../connection-monitor/endpoint/_remove.md | 21 + .../connection-monitor/endpoint/_show.md | 16 + .../connection-monitor/endpoint/_update.md | 9 + .../connection-monitor/endpoint/readme.md | 20 + .../watcher/connection-monitor/output/_add.md | 9 + .../connection-monitor/output/_delete.md | 9 + .../connection-monitor/output/_list.md | 9 + .../connection-monitor/output/_show.md | 9 + .../connection-monitor/output/_update.md | 9 + .../connection-monitor/output/readme.md | 20 + .../watcher/connection-monitor/readme.md | 14 + .../test-configuration/_create.md | 9 + .../test-configuration/_delete.md | 9 + .../test-configuration/_list.md | 9 + .../test-configuration/_show.md | 9 + .../test-configuration/_update.md | 9 + .../test-configuration/readme.md | 20 + .../connection-monitor/test-group/_create.md | 9 + .../connection-monitor/test-group/_delete.md | 9 + .../connection-monitor/test-group/_list.md | 9 + .../connection-monitor/test-group/_show.md | 9 + .../connection-monitor/test-group/_update.md | 9 + .../connection-monitor/test-group/readme.md | 20 + Commands/network/watcher/readme.md | 2 +- .../2022-01-01.json | 2 +- .../2022-01-01.xml | 6190 ++++++++++++++++- 29 files changed, 6501 insertions(+), 12 deletions(-) create mode 100644 Commands/network/watcher/connection-monitor/endpoint/_create.md create mode 100644 Commands/network/watcher/connection-monitor/endpoint/_list.md create mode 100644 Commands/network/watcher/connection-monitor/endpoint/_remove.md create mode 100644 Commands/network/watcher/connection-monitor/endpoint/_show.md create mode 100644 Commands/network/watcher/connection-monitor/endpoint/_update.md create mode 100644 Commands/network/watcher/connection-monitor/endpoint/readme.md create mode 100644 Commands/network/watcher/connection-monitor/output/_add.md create mode 100644 Commands/network/watcher/connection-monitor/output/_delete.md create mode 100644 Commands/network/watcher/connection-monitor/output/_list.md create mode 100644 Commands/network/watcher/connection-monitor/output/_show.md create mode 100644 Commands/network/watcher/connection-monitor/output/_update.md create mode 100644 Commands/network/watcher/connection-monitor/output/readme.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_create.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_delete.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_list.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_show.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_update.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/readme.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_create.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_delete.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_list.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_show.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_update.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/readme.md diff --git a/Commands/network/readme.md b/Commands/network/readme.md index ae022ddd1da..4366b6aafa0 100644 --- a/Commands/network/readme.md +++ b/Commands/network/readme.md @@ -89,7 +89,7 @@ Manage Azure Network resources. : Manage site-to-site VPN gateways. - [watcher](/Commands/network/watcher/readme.md) -: Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://learn.microsoft.com/en-us/azure/network-watcher. +: Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://docs.microsoft.com/azure/network-watcher/. ## Commands diff --git a/Commands/network/watcher/connection-monitor/endpoint/_create.md b/Commands/network/watcher/connection-monitor/endpoint/_create.md new file mode 100644 index 00000000000..e9f8ad8200f --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/_create.md @@ -0,0 +1,26 @@ +# [Command] _network watcher connection-monitor endpoint create_ + +Add an endpoint to a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Add an external address as a destination endpoint + ```bash + network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyExternalEndpoint --address "bing.com" --dest-test-groups DefaultTestGroup --type ExternalAddress + ``` + +- Add an Azure VM as a source endpoint + ```bash + network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyVMEndpoint --resource-id MyVMResourceID --source-test-groups DefaultTestGroup --type AzureVM + ``` + +- Add a Subnet as a source endpoint with addresses excluded + ```bash + network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MySubnetEndpoint --resource-id MySubnetID --source-test-groups DefaultTestGroup --type AzureSubnet --address-exclude 10.0.0.25 10.0.0.30 --coverage-level BelowAverage + ``` diff --git a/Commands/network/watcher/connection-monitor/endpoint/_list.md b/Commands/network/watcher/connection-monitor/endpoint/_list.md new file mode 100644 index 00000000000..d1c2f7ff6c5 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/_list.md @@ -0,0 +1,16 @@ +# [Command] _network watcher connection-monitor endpoint list_ + +List all endpoints form a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- List all endpoints form a connection monitor. + ```bash + network watcher connection-monitor endpoint list --connection-monitor MyConnectionMonitor --location westus2 + ``` diff --git a/Commands/network/watcher/connection-monitor/endpoint/_remove.md b/Commands/network/watcher/connection-monitor/endpoint/_remove.md new file mode 100644 index 00000000000..dfea9019259 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/_remove.md @@ -0,0 +1,21 @@ +# [Command] _network watcher connection-monitor endpoint remove_ + +Remove an endpoint from a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Remove endpoint from all test groups of a connection monitor + ```bash + network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint + ``` + +- Remove endpoint from two test groups of a connection monitor + ```bash + network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint --test-groups DefaultTestGroup HealthCheckTestGroup + ``` diff --git a/Commands/network/watcher/connection-monitor/endpoint/_show.md b/Commands/network/watcher/connection-monitor/endpoint/_show.md new file mode 100644 index 00000000000..4e81db352b5 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/_show.md @@ -0,0 +1,16 @@ +# [Command] _network watcher connection-monitor endpoint show_ + +Show an endpoint from a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Show an endpoint from a connection monitor. + ```bash + network watcher connection-monitor endpoint show --connection-monitor MyConnectionMonitor --location westus2 --name myconnectionmonitorendpoint --subscription MySubscription + ``` diff --git a/Commands/network/watcher/connection-monitor/endpoint/_update.md b/Commands/network/watcher/connection-monitor/endpoint/_update.md new file mode 100644 index 00000000000..716af34ebdd --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/_update.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor endpoint update_ + +network watcher connection-monitor endpoint update + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/endpoint/readme.md b/Commands/network/watcher/connection-monitor/endpoint/readme.md new file mode 100644 index 00000000000..299d53faef9 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/endpoint/readme.md @@ -0,0 +1,20 @@ +# [Group] _network watcher connection-monitor endpoint_ + +Manage endpoint of a connection monitor. + +## Commands + +- [create](/Commands/network/watcher/connection-monitor/endpoint/_create.md) +: Add an endpoint to a connection monitor. + +- [list](/Commands/network/watcher/connection-monitor/endpoint/_list.md) +: List all endpoints form a connection monitor. + +- [remove](/Commands/network/watcher/connection-monitor/endpoint/_remove.md) +: Remove an endpoint from a connection monitor. + +- [show](/Commands/network/watcher/connection-monitor/endpoint/_show.md) +: Show an endpoint from a connection monitor. + +- [update](/Commands/network/watcher/connection-monitor/endpoint/_update.md) +: network watcher connection-monitor endpoint update diff --git a/Commands/network/watcher/connection-monitor/output/_add.md b/Commands/network/watcher/connection-monitor/output/_add.md new file mode 100644 index 00000000000..fb553e2ada7 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/_add.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor output add_ + +Add an output to a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/output/_delete.md b/Commands/network/watcher/connection-monitor/output/_delete.md new file mode 100644 index 00000000000..4adb88b3ab5 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/_delete.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor output delete_ + +Remove all outputs from a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/output/_list.md b/Commands/network/watcher/connection-monitor/output/_list.md new file mode 100644 index 00000000000..4c02062e02c --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/_list.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor output list_ + +List all output from a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/output/_show.md b/Commands/network/watcher/connection-monitor/output/_show.md new file mode 100644 index 00000000000..3dd3bcd4cd2 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/_show.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor output show_ + +network watcher connection-monitor output show + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/output/_update.md b/Commands/network/watcher/connection-monitor/output/_update.md new file mode 100644 index 00000000000..fb16a181163 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/_update.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor output update_ + +network watcher connection-monitor output update + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/output/readme.md b/Commands/network/watcher/connection-monitor/output/readme.md new file mode 100644 index 00000000000..bfb8915b971 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/output/readme.md @@ -0,0 +1,20 @@ +# [Group] _network watcher connection-monitor output_ + +Manage output of connection monitor. + +## Commands + +- [add](/Commands/network/watcher/connection-monitor/output/_add.md) +: Add an output to a connection monitor. + +- [delete](/Commands/network/watcher/connection-monitor/output/_delete.md) +: Remove all outputs from a connection monitor. + +- [list](/Commands/network/watcher/connection-monitor/output/_list.md) +: List all output from a connection monitor. + +- [show](/Commands/network/watcher/connection-monitor/output/_show.md) +: network watcher connection-monitor output show + +- [update](/Commands/network/watcher/connection-monitor/output/_update.md) +: network watcher connection-monitor output update diff --git a/Commands/network/watcher/connection-monitor/readme.md b/Commands/network/watcher/connection-monitor/readme.md index 6a1bf35a37f..f2241ca979d 100644 --- a/Commands/network/watcher/connection-monitor/readme.md +++ b/Commands/network/watcher/connection-monitor/readme.md @@ -2,6 +2,20 @@ Manage connection monitoring between an Azure Virtual Machine and any IP resource. Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc. +## Subgroups + +- [endpoint](/Commands/network/watcher/connection-monitor/endpoint/readme.md) +: Manage endpoint of a connection monitor. + +- [output](/Commands/network/watcher/connection-monitor/output/readme.md) +: Manage output of connection monitor. + +- [test-configuration](/Commands/network/watcher/connection-monitor/test-configuration/readme.md) +: Manage test configuration of a connection monitor. + +- [test-group](/Commands/network/watcher/connection-monitor/test-group/readme.md) +: Manage a test group of a connection monitor. + ## Commands - [create](/Commands/network/watcher/connection-monitor/_create.md) diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_create.md b/Commands/network/watcher/connection-monitor/test-configuration/_create.md new file mode 100644 index 00000000000..7b46e6a7b86 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_create.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-configuration create_ + +network watcher connection-monitor test-configuration create + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_delete.md b/Commands/network/watcher/connection-monitor/test-configuration/_delete.md new file mode 100644 index 00000000000..a413da12e57 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_delete.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-configuration delete_ + +network watcher connection-monitor test-configuration delete + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_list.md b/Commands/network/watcher/connection-monitor/test-configuration/_list.md new file mode 100644 index 00000000000..82ae45262e1 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_list.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-configuration list_ + +network watcher connection-monitor test-configuration list + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_show.md b/Commands/network/watcher/connection-monitor/test-configuration/_show.md new file mode 100644 index 00000000000..e6619736dfb --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_show.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-configuration show_ + +network watcher connection-monitor test-configuration show + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_update.md b/Commands/network/watcher/connection-monitor/test-configuration/_update.md new file mode 100644 index 00000000000..3cfb4b042ec --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_update.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-configuration update_ + +network watcher connection-monitor test-configuration update + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-configuration/readme.md b/Commands/network/watcher/connection-monitor/test-configuration/readme.md new file mode 100644 index 00000000000..c3d76b4c325 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/readme.md @@ -0,0 +1,20 @@ +# [Group] _network watcher connection-monitor test-configuration_ + +Manage test configuration of a connection monitor. + +## Commands + +- [create](/Commands/network/watcher/connection-monitor/test-configuration/_create.md) +: network watcher connection-monitor test-configuration create + +- [delete](/Commands/network/watcher/connection-monitor/test-configuration/_delete.md) +: network watcher connection-monitor test-configuration delete + +- [list](/Commands/network/watcher/connection-monitor/test-configuration/_list.md) +: network watcher connection-monitor test-configuration list + +- [show](/Commands/network/watcher/connection-monitor/test-configuration/_show.md) +: network watcher connection-monitor test-configuration show + +- [update](/Commands/network/watcher/connection-monitor/test-configuration/_update.md) +: network watcher connection-monitor test-configuration update diff --git a/Commands/network/watcher/connection-monitor/test-group/_create.md b/Commands/network/watcher/connection-monitor/test-group/_create.md new file mode 100644 index 00000000000..63391774b43 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_create.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-group create_ + +network watcher connection-monitor test-group create + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-group/_delete.md b/Commands/network/watcher/connection-monitor/test-group/_delete.md new file mode 100644 index 00000000000..9e44211f181 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_delete.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-group delete_ + +network watcher connection-monitor test-group delete + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-group/_list.md b/Commands/network/watcher/connection-monitor/test-group/_list.md new file mode 100644 index 00000000000..14ea5f3df96 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_list.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-group list_ + +network watcher connection-monitor test-group list + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-group/_show.md b/Commands/network/watcher/connection-monitor/test-group/_show.md new file mode 100644 index 00000000000..3e4229d2bb8 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_show.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-group show_ + +network watcher connection-monitor test-group show + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-group/_update.md b/Commands/network/watcher/connection-monitor/test-group/_update.md new file mode 100644 index 00000000000..b2624aa350d --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_update.md @@ -0,0 +1,9 @@ +# [Command] _network watcher connection-monitor test-group update_ + +network watcher connection-monitor test-group update + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + diff --git a/Commands/network/watcher/connection-monitor/test-group/readme.md b/Commands/network/watcher/connection-monitor/test-group/readme.md new file mode 100644 index 00000000000..0861e242b98 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/readme.md @@ -0,0 +1,20 @@ +# [Group] _network watcher connection-monitor test-group_ + +Manage a test group of a connection monitor. + +## Commands + +- [create](/Commands/network/watcher/connection-monitor/test-group/_create.md) +: network watcher connection-monitor test-group create + +- [delete](/Commands/network/watcher/connection-monitor/test-group/_delete.md) +: network watcher connection-monitor test-group delete + +- [list](/Commands/network/watcher/connection-monitor/test-group/_list.md) +: network watcher connection-monitor test-group list + +- [show](/Commands/network/watcher/connection-monitor/test-group/_show.md) +: network watcher connection-monitor test-group show + +- [update](/Commands/network/watcher/connection-monitor/test-group/_update.md) +: network watcher connection-monitor test-group update diff --git a/Commands/network/watcher/readme.md b/Commands/network/watcher/readme.md index 0e3aaba4a66..eaca1d3d9d5 100644 --- a/Commands/network/watcher/readme.md +++ b/Commands/network/watcher/readme.md @@ -1,6 +1,6 @@ # [Group] _network watcher_ -Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://learn.microsoft.com/en-us/azure/network-watcher. +Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://docs.microsoft.com/azure/network-watcher/. ## Subgroups diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json index 5834658f60d..561f31b6fbc 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}], "commandGroups": [{"name": "endpoint", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "", "help": {"short": "Test coverage for the endpoint. Allowed values: AboveAverage, Average, BelowAverage, Default, Full, Low"}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["filter-items"], "group": "", "help": {"short": "List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["filter-type"], "group": "", "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "", "help": {"short": "The endpoint type. Allowed values: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "Parameters.properties.endpoints[]", "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "Parameters.properties.endpoints[]", "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["endpoint-name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "output", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}, {"name": "Parameters.properties.outputs[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["output-type"], "group": "Parameters.properties.outputs[]", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "group": "Parameters.properties.outputs[]", "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "group": "", "help": {"short": "output-index"}}, {"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type", "output-type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "test-configuration", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"]}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "test-group", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"]}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml index f0499b60c41..cec1118a34c 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml @@ -58,7 +58,7 @@ - + @@ -594,7 +594,7 @@ - + @@ -785,7 +785,7 @@ - + @@ -974,15 +974,13 @@ - + - - - + @@ -1285,7 +1283,7 @@ - + @@ -1485,7 +1483,7 @@ - + @@ -1687,5 +1685,6179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e4eb31ec1b6b8e11fd9e095dc443601830dc2dee Mon Sep 17 00:00:00 2001 From: AllyWang Date: Wed, 1 Mar 2023 12:34:36 +0800 Subject: [PATCH 3/5] add connector monitor cmds --- .../watcher/connection-monitor/_create.md | 8 + .../endpoint/{_create.md => _add.md} | 2 +- .../connection-monitor/endpoint/readme.md | 2 +- .../watcher/connection-monitor/readme.md | 4 +- .../test-configuration/_add.md | 21 + .../test-configuration/_create.md | 9 - .../test-configuration/_delete.md | 9 - .../test-configuration/_list.md | 9 +- .../test-configuration/_remove.md | 21 + .../test-configuration/_show.md | 9 +- .../test-configuration/readme.md | 14 +- .../connection-monitor/test-group/_add.md | 26 + .../connection-monitor/test-group/_create.md | 9 - .../connection-monitor/test-group/_list.md | 9 +- .../test-group/{_delete.md => _remove.md} | 11 +- .../connection-monitor/test-group/_show.md | 9 +- .../connection-monitor/test-group/readme.md | 14 +- Commands/network/watcher/readme.md | 2 +- .../2022-01-01.json | 2 +- .../2022-01-01.xml | 1423 +++++++++-------- 20 files changed, 864 insertions(+), 749 deletions(-) rename Commands/network/watcher/connection-monitor/endpoint/{_create.md => _add.md} (95%) create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_add.md delete mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_create.md delete mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_delete.md create mode 100644 Commands/network/watcher/connection-monitor/test-configuration/_remove.md create mode 100644 Commands/network/watcher/connection-monitor/test-group/_add.md delete mode 100644 Commands/network/watcher/connection-monitor/test-group/_create.md rename Commands/network/watcher/connection-monitor/test-group/{_delete.md => _remove.md} (52%) diff --git a/Commands/network/watcher/connection-monitor/_create.md b/Commands/network/watcher/connection-monitor/_create.md index d7cc85ca798..13ec2b713ac 100644 --- a/Commands/network/watcher/connection-monitor/_create.md +++ b/Commands/network/watcher/connection-monitor/_create.md @@ -7,3 +7,11 @@ Create a connection monitor. ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Stable** + +#### examples + +- Create a connection monitor + ```bash + network watcher connection-monitor create --name MyV2ConnectionMonitor --endpoint-source- name "vm01" --endpoint-source-resource-id MyVM01ResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name TCPTestConfig --protocol Tcp --tcp-port 2048 + network watcher connection-monitor create --endpoint-dest-address bing.com --endpoint- dest-name bing --endpoint-source-name "vm01" --endpoint-source-resource-id MyVM01ResourceID --location westus2 --name MyConnectionMonitorName --protocol Tcp --tcp-port 2048 --test- config-name TCPTestConfig + ``` diff --git a/Commands/network/watcher/connection-monitor/endpoint/_create.md b/Commands/network/watcher/connection-monitor/endpoint/_add.md similarity index 95% rename from Commands/network/watcher/connection-monitor/endpoint/_create.md rename to Commands/network/watcher/connection-monitor/endpoint/_add.md index e9f8ad8200f..ced84beaf3e 100644 --- a/Commands/network/watcher/connection-monitor/endpoint/_create.md +++ b/Commands/network/watcher/connection-monitor/endpoint/_add.md @@ -1,4 +1,4 @@ -# [Command] _network watcher connection-monitor endpoint create_ +# [Command] _network watcher connection-monitor endpoint add_ Add an endpoint to a connection monitor. diff --git a/Commands/network/watcher/connection-monitor/endpoint/readme.md b/Commands/network/watcher/connection-monitor/endpoint/readme.md index 299d53faef9..719a1ca334d 100644 --- a/Commands/network/watcher/connection-monitor/endpoint/readme.md +++ b/Commands/network/watcher/connection-monitor/endpoint/readme.md @@ -4,7 +4,7 @@ Manage endpoint of a connection monitor. ## Commands -- [create](/Commands/network/watcher/connection-monitor/endpoint/_create.md) +- [add](/Commands/network/watcher/connection-monitor/endpoint/_add.md) : Add an endpoint to a connection monitor. - [list](/Commands/network/watcher/connection-monitor/endpoint/_list.md) diff --git a/Commands/network/watcher/connection-monitor/readme.md b/Commands/network/watcher/connection-monitor/readme.md index f2241ca979d..fce5c8e8f18 100644 --- a/Commands/network/watcher/connection-monitor/readme.md +++ b/Commands/network/watcher/connection-monitor/readme.md @@ -1,6 +1,8 @@ # [Group] _network watcher connection-monitor_ -Manage connection monitoring between an Azure Virtual Machine and any IP resource. Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc. +Manage connection monitoring between an Azure Virtual Machine and any IP resource. + +Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc. ## Subgroups diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_add.md b/Commands/network/watcher/connection-monitor/test-configuration/_add.md new file mode 100644 index 00000000000..8cfaf29041f --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_add.md @@ -0,0 +1,21 @@ +# [Command] _network watcher connection-monitor test-configuration add_ + +Add a test configuration to a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Add a test configuration with HTTP supported + ```bash + network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups DefaultTestGroup --protocol Http --http-request-header name=Host value=bing.com --http- request-header name=UserAgent value=Edge + ``` + +- Add a test configuration with TCP supported + ```bash + network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups TCPTestGroup DefaultTestGroup --protocol Tcp --tcp-port 4096 + ``` diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_create.md b/Commands/network/watcher/connection-monitor/test-configuration/_create.md deleted file mode 100644 index 7b46e6a7b86..00000000000 --- a/Commands/network/watcher/connection-monitor/test-configuration/_create.md +++ /dev/null @@ -1,9 +0,0 @@ -# [Command] _network watcher connection-monitor test-configuration create_ - -network watcher connection-monitor test-configuration create - -## Versions - -### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** - - diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_delete.md b/Commands/network/watcher/connection-monitor/test-configuration/_delete.md deleted file mode 100644 index a413da12e57..00000000000 --- a/Commands/network/watcher/connection-monitor/test-configuration/_delete.md +++ /dev/null @@ -1,9 +0,0 @@ -# [Command] _network watcher connection-monitor test-configuration delete_ - -network watcher connection-monitor test-configuration delete - -## Versions - -### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** - - diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_list.md b/Commands/network/watcher/connection-monitor/test-configuration/_list.md index 82ae45262e1..f79c63d9625 100644 --- a/Commands/network/watcher/connection-monitor/test-configuration/_list.md +++ b/Commands/network/watcher/connection-monitor/test-configuration/_list.md @@ -1,9 +1,16 @@ # [Command] _network watcher connection-monitor test-configuration list_ -network watcher connection-monitor test-configuration list +List all test configurations of a connection monitor. ## Versions ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + +#### examples + +- List all test configurations of a connection monitor. + ```bash + network watcher connection-monitor test-configuration list --connection-monitor MyConnectionMonitor --location westus2 + ``` diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_remove.md b/Commands/network/watcher/connection-monitor/test-configuration/_remove.md new file mode 100644 index 00000000000..80272208a21 --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-configuration/_remove.md @@ -0,0 +1,21 @@ +# [Command] _network watcher connection-monitor test-configuration remove_ + +Remove a test configuration from a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Remove a test configuration from all test groups of a connection monitor + ```bash + network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyTCPTestConfiguration + ``` + +- Remove a test configuration from two test groups of a connection monitor + ```bash + network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups HTTPTestGroup DefaultTestGroup + ``` diff --git a/Commands/network/watcher/connection-monitor/test-configuration/_show.md b/Commands/network/watcher/connection-monitor/test-configuration/_show.md index e6619736dfb..2f4868487bc 100644 --- a/Commands/network/watcher/connection-monitor/test-configuration/_show.md +++ b/Commands/network/watcher/connection-monitor/test-configuration/_show.md @@ -1,9 +1,16 @@ # [Command] _network watcher connection-monitor test-configuration show_ -network watcher connection-monitor test-configuration show +Show a test configuration from a connection monitor. ## Versions ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + +#### examples + +- Show a test configuration from a connection monitor. + ```bash + network watcher connection-monitor test-configuration show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestConfiguration + ``` diff --git a/Commands/network/watcher/connection-monitor/test-configuration/readme.md b/Commands/network/watcher/connection-monitor/test-configuration/readme.md index c3d76b4c325..9e820793622 100644 --- a/Commands/network/watcher/connection-monitor/test-configuration/readme.md +++ b/Commands/network/watcher/connection-monitor/test-configuration/readme.md @@ -4,17 +4,17 @@ Manage test configuration of a connection monitor. ## Commands -- [create](/Commands/network/watcher/connection-monitor/test-configuration/_create.md) -: network watcher connection-monitor test-configuration create - -- [delete](/Commands/network/watcher/connection-monitor/test-configuration/_delete.md) -: network watcher connection-monitor test-configuration delete +- [add](/Commands/network/watcher/connection-monitor/test-configuration/_add.md) +: Add a test configuration to a connection monitor. - [list](/Commands/network/watcher/connection-monitor/test-configuration/_list.md) -: network watcher connection-monitor test-configuration list +: List all test configurations of a connection monitor. + +- [remove](/Commands/network/watcher/connection-monitor/test-configuration/_remove.md) +: Remove a test configuration from a connection monitor. - [show](/Commands/network/watcher/connection-monitor/test-configuration/_show.md) -: network watcher connection-monitor test-configuration show +: Show a test configuration from a connection monitor. - [update](/Commands/network/watcher/connection-monitor/test-configuration/_update.md) : network watcher connection-monitor test-configuration update diff --git a/Commands/network/watcher/connection-monitor/test-group/_add.md b/Commands/network/watcher/connection-monitor/test-group/_add.md new file mode 100644 index 00000000000..d821d53f2fd --- /dev/null +++ b/Commands/network/watcher/connection-monitor/test-group/_add.md @@ -0,0 +1,26 @@ +# [Command] _network watcher connection-monitor test-group add_ + +Add a test group along with new-added/existing endpoint and test configuration to a connection monitor. + +## Versions + +### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + + + +#### examples + +- Add a test group along with existing endpoint and test configuration via their names + ```bash + network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestGroup --endpoint-source-name MySourceEndpoint --endpoint-dest-name MyDestinationEndpoint --test-config-name MyTestConfiguration + ``` + +- Add a test group long with new-added source endpoint and existing test configuration via its name + ```bash + network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyLogAnalysisWorkspaceID --endpoint-dest-name MyExistingDestinationEndpoint --test-config-name MyExistingTestConfiguration + ``` + +- Add a test group along with new-added endpoints and test configuration + ```bash + network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyVMResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name MyNewTestConfiguration --protocol Tcp --tcp-port 4096 + ``` diff --git a/Commands/network/watcher/connection-monitor/test-group/_create.md b/Commands/network/watcher/connection-monitor/test-group/_create.md deleted file mode 100644 index 63391774b43..00000000000 --- a/Commands/network/watcher/connection-monitor/test-group/_create.md +++ /dev/null @@ -1,9 +0,0 @@ -# [Command] _network watcher connection-monitor test-group create_ - -network watcher connection-monitor test-group create - -## Versions - -### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** - - diff --git a/Commands/network/watcher/connection-monitor/test-group/_list.md b/Commands/network/watcher/connection-monitor/test-group/_list.md index 14ea5f3df96..95a292efee1 100644 --- a/Commands/network/watcher/connection-monitor/test-group/_list.md +++ b/Commands/network/watcher/connection-monitor/test-group/_list.md @@ -1,9 +1,16 @@ # [Command] _network watcher connection-monitor test-group list_ -network watcher connection-monitor test-group list +List all test groups of a connection monitor. ## Versions ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + +#### examples + +- List all test groups of a connection monitor. + ```bash + network watcher connection-monitor test-group list --connection-monitor MyConnectionMonitor --location westus2 + ``` diff --git a/Commands/network/watcher/connection-monitor/test-group/_delete.md b/Commands/network/watcher/connection-monitor/test-group/_remove.md similarity index 52% rename from Commands/network/watcher/connection-monitor/test-group/_delete.md rename to Commands/network/watcher/connection-monitor/test-group/_remove.md index 9e44211f181..eb2a6480f30 100644 --- a/Commands/network/watcher/connection-monitor/test-group/_delete.md +++ b/Commands/network/watcher/connection-monitor/test-group/_remove.md @@ -1,9 +1,16 @@ -# [Command] _network watcher connection-monitor test-group delete_ +# [Command] _network watcher connection-monitor test-group remove_ -network watcher connection-monitor test-group delete +Remove test group from a connection monitor. ## Versions ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + +#### examples + +- Remove test group from a connection monitor. + ```bash + network watcher connection-monitor test-group remove --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup + ``` diff --git a/Commands/network/watcher/connection-monitor/test-group/_show.md b/Commands/network/watcher/connection-monitor/test-group/_show.md index 3e4229d2bb8..57dc0e1137f 100644 --- a/Commands/network/watcher/connection-monitor/test-group/_show.md +++ b/Commands/network/watcher/connection-monitor/test-group/_show.md @@ -1,9 +1,16 @@ # [Command] _network watcher connection-monitor test-group show_ -network watcher connection-monitor test-group show +Show a test group of a connection monitor. ## Versions ### [2022-01-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml) **Preview** + +#### examples + +- Show a test group of a connection monitor. + ```bash + network watcher connection-monitor test-group show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup --subscription MySubscription + ``` diff --git a/Commands/network/watcher/connection-monitor/test-group/readme.md b/Commands/network/watcher/connection-monitor/test-group/readme.md index 0861e242b98..9ed596c64d6 100644 --- a/Commands/network/watcher/connection-monitor/test-group/readme.md +++ b/Commands/network/watcher/connection-monitor/test-group/readme.md @@ -4,17 +4,17 @@ Manage a test group of a connection monitor. ## Commands -- [create](/Commands/network/watcher/connection-monitor/test-group/_create.md) -: network watcher connection-monitor test-group create - -- [delete](/Commands/network/watcher/connection-monitor/test-group/_delete.md) -: network watcher connection-monitor test-group delete +- [add](/Commands/network/watcher/connection-monitor/test-group/_add.md) +: Add a test group along with new-added/existing endpoint and test configuration to a connection monitor. - [list](/Commands/network/watcher/connection-monitor/test-group/_list.md) -: network watcher connection-monitor test-group list +: List all test groups of a connection monitor. + +- [remove](/Commands/network/watcher/connection-monitor/test-group/_remove.md) +: Remove test group from a connection monitor. - [show](/Commands/network/watcher/connection-monitor/test-group/_show.md) -: network watcher connection-monitor test-group show +: Show a test group of a connection monitor. - [update](/Commands/network/watcher/connection-monitor/test-group/_update.md) : network watcher connection-monitor test-group update diff --git a/Commands/network/watcher/readme.md b/Commands/network/watcher/readme.md index eaca1d3d9d5..69463954fce 100644 --- a/Commands/network/watcher/readme.md +++ b/Commands/network/watcher/readme.md @@ -5,7 +5,7 @@ Manage the Azure Network Watcher. Network Watcher assists with monitoring and di ## Subgroups - [connection-monitor](/Commands/network/watcher/connection-monitor/readme.md) -: Manage connection monitoring between an Azure Virtual Machine and any IP resource. Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc. +: Manage connection monitoring between an Azure Virtual Machine and any IP resource. - [flow-log](/Commands/network/watcher/flow-log/readme.md) : Manage network security group flow logging. diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json index 561f31b6fbc..88f2a5ac1ca 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}], "commandGroups": [{"name": "endpoint", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "", "help": {"short": "Test coverage for the endpoint. Allowed values: AboveAverage, Average, BelowAverage, Default, Full, Low"}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["filter-items"], "group": "", "help": {"short": "List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["filter-type"], "group": "", "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "", "help": {"short": "The endpoint type. Allowed values: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "Parameters.properties.endpoints[]", "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "Parameters.properties.endpoints[]", "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["endpoint-name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "output", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}, {"name": "Parameters.properties.outputs[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["output-type"], "group": "Parameters.properties.outputs[]", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "group": "Parameters.properties.outputs[]", "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "group": "", "help": {"short": "output-index"}}, {"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type", "output-type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "test-configuration", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"]}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.testConfigurations[Index]", "options": ["test-configuration-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testConfigurations[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "test-group", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"]}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.testGroups[Index]", "options": ["test-group-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.testGroups[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}], "commandGroups": [{"name": "endpoint", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "Parameters.properties.endpoints[]", "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "Parameters.properties.endpoints[]", "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "", "help": {"short": "Test coverage for the endpoint. Allowed values: AboveAverage, Average, BelowAverage, Default, Full, Low"}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["filter-items"], "group": "", "help": {"short": "List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["filter-type"], "group": "", "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported. Allowed values: Include."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["scope-exclude"], "group": "", "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.exclude[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["scope-include"], "group": "", "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.include[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "", "help": {"short": "The endpoint type. Allowed values: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.exclude[].address"}]}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.include[].address"}]}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "output", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "group": "", "help": {"short": "output-index"}}, {"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type", "output-type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}, {"name": "Parameters.properties.outputs[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["output-type"], "group": "Parameters.properties.outputs[]", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "group": "Parameters.properties.outputs[]", "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "test-configuration", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Allowed values: IPv4, IPv6."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "group": "", "help": {"short": "The protocol to use in test evaluation. Allowed values: Http, Icmp, Tcp."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["threshold-failed-percent"], "group": "", "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["threshold-round-trip-time"], "group": "", "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["frequency"], "group": "", "help": {"short": "The frequency of test evaluation, in seconds. Default: 60."}}]}, {"name": "HTTP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["http-method"], "group": "HTTP Protocol", "help": {"short": "The HTTP method to use. Allowed values: Get, Post."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["http-path"], "group": "HTTP Protocol", "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["http-port"], "group": "HTTP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["http-prefer-https"], "group": "HTTP Protocol", "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["http-request-headers"], "group": "HTTP Protocol", "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["http-valid-status-codes"], "group": "HTTP Protocol", "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"name": "ICMP Protocol", "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["icmp-disable-trace-route"], "group": "ICMP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}]}, {"name": "TCP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["tcp-port-behavior"], "group": "TCP Protocol", "help": {"short": "Destination port behavior. Allowed values: ListenIfAvailable, None."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["tcp-disable-trace-route"], "group": "TCP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["tcp-port"], "group": "TCP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "test-group", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "", "help": {"short": "Value indicating whether test group is disabled. false is default. Allowed values: false, true."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "group": "V2 Test Configuration", "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml index cec1118a34c..dffc603f395 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml @@ -147,7 +147,7 @@ - + @@ -207,7 +207,7 @@ - + @@ -297,7 +297,7 @@ - + @@ -673,7 +673,7 @@ - + @@ -733,7 +733,7 @@ - + @@ -874,7 +874,7 @@ - + @@ -934,7 +934,7 @@ - + @@ -977,10 +977,12 @@ - + - + + + @@ -1372,7 +1374,7 @@ - + @@ -1432,7 +1434,7 @@ - + @@ -1562,7 +1564,7 @@ - + @@ -1622,7 +1624,7 @@ - + @@ -1692,10 +1694,12 @@ - + - + + + @@ -1834,7 +1838,7 @@ - + @@ -1894,7 +1898,7 @@ - + @@ -1931,25 +1935,29 @@ - + - + - + + + - + - + + + - - + + @@ -1959,34 +1967,52 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + + + + + + + + + + + + + + + + @@ -1999,23 +2025,6 @@ - - - - - - - - - - - - - - - - - @@ -2155,7 +2164,7 @@ - + @@ -2215,7 +2224,7 @@ - + @@ -2251,7 +2260,7 @@ - + @@ -2265,7 +2274,7 @@ - + @@ -2308,7 +2317,7 @@ - + @@ -2348,93 +2357,25 @@ - + - + - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2575,7 +2516,7 @@ - + @@ -2635,7 +2576,7 @@ - + @@ -2671,64 +2612,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -2766,7 +2652,6 @@ - @@ -2774,12 +2659,14 @@ - + - + + + - + @@ -2922,7 +2809,7 @@ - + @@ -2982,7 +2869,7 @@ - + @@ -3019,23 +2906,91 @@ - + - + - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3176,7 +3131,7 @@ - + @@ -3236,7 +3191,7 @@ - + @@ -3272,9 +3227,66 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3312,6 +3324,7 @@ + @@ -3465,7 +3478,7 @@ - + @@ -3525,7 +3538,7 @@ - + @@ -3562,10 +3575,10 @@ - + - + @@ -3575,30 +3588,27 @@ - + - - - - + + + + - - - - - + + - + @@ -3733,7 +3743,7 @@ - + @@ -3793,7 +3803,7 @@ - + @@ -3829,7 +3839,7 @@ - + @@ -3837,12 +3847,12 @@ - + - + @@ -3882,7 +3892,7 @@ - + @@ -3895,8 +3905,25 @@ + + + + + + + + + + + + + + + + + @@ -4036,7 +4063,7 @@ - + @@ -4096,7 +4123,7 @@ - + @@ -4131,12 +4158,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -4146,27 +4225,13 @@ - - - - - - - - - - - - - - - + - + @@ -4301,7 +4366,7 @@ - + @@ -4361,7 +4426,7 @@ - + @@ -4396,58 +4461,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -4463,7 +4476,7 @@ - + @@ -4607,7 +4620,7 @@ - + @@ -4667,7 +4680,7 @@ - + @@ -4749,13 +4762,15 @@ - + - + - + + + @@ -4894,7 +4909,7 @@ - + @@ -4954,7 +4969,7 @@ - + @@ -4991,75 +5006,76 @@ - + - + - + - + + + - + - - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + @@ -5067,33 +5083,33 @@ - + - + - + - + - + - + - + - + @@ -5101,7 +5117,7 @@ - + @@ -5236,7 +5252,7 @@ - + @@ -5296,7 +5312,7 @@ - + @@ -5332,7 +5348,7 @@ - + @@ -5393,7 +5409,7 @@ - + @@ -5433,117 +5449,28 @@ - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -5678,7 +5605,7 @@ - + @@ -5738,7 +5665,7 @@ - + @@ -5773,129 +5700,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + + + - + - + + + - + @@ -6030,7 +5861,7 @@ - + @@ -6090,7 +5921,7 @@ - + @@ -6167,24 +5998,108 @@ - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -6319,7 +6234,7 @@ - + @@ -6379,7 +6294,7 @@ - + @@ -6414,6 +6329,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -6421,13 +6436,15 @@ - + - + - + + + @@ -6566,7 +6583,7 @@ - + @@ -6626,7 +6643,7 @@ - + @@ -6663,47 +6680,48 @@ - + - + - + - + + + - + - - + - + - + - + - + - + - + - + @@ -6838,7 +6856,7 @@ - + @@ -6898,7 +6916,7 @@ - + @@ -6934,7 +6952,7 @@ - + @@ -6950,7 +6968,7 @@ - + @@ -6990,47 +7008,28 @@ - + - + - + - - - - - - - - - - - - - - + + - + + - - - - - - - - - + @@ -7165,7 +7164,7 @@ - + @@ -7225,7 +7224,7 @@ - + @@ -7260,84 +7259,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + + + - + - + + + - + @@ -7472,7 +7420,7 @@ - + @@ -7532,7 +7480,7 @@ - + @@ -7609,24 +7557,50 @@ - + - + - + - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -7761,7 +7735,7 @@ - + @@ -7821,7 +7795,7 @@ - + @@ -7856,6 +7830,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 590f6284ead60ff9b51772c7d0ae2c5704c943c0 Mon Sep 17 00:00:00 2001 From: AllyWang Date: Wed, 1 Mar 2023 12:58:25 +0800 Subject: [PATCH 4/5] add command tree --- Commands/tree.json | 728 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 726 insertions(+), 2 deletions(-) diff --git a/Commands/tree.json b/Commands/tree.json index 3c3bcc850f5..c59f51421b0 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -38528,6 +38528,718 @@ "watcher": { "commandGroups": { "connection-monitor": { + "commandGroups": { + "endpoint": { + "commands": { + "add": { + "help": { + "short": "Add an endpoint to a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint", + "add" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyExternalEndpoint --address \"bing.com\" --dest-test-groups DefaultTestGroup --type ExternalAddress" + ], + "name": "Add an external address as a destination endpoint" + }, + { + "commands": [ + "network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MyVMEndpoint --resource-id MyVMResourceID --source-test-groups DefaultTestGroup --type AzureVM" + ], + "name": "Add an Azure VM as a source endpoint" + }, + { + "commands": [ + "network watcher connection-monitor endpoint add --connection-monitor MyConnectionMonitor --location westus --name MySubnetEndpoint --resource-id MySubnetID --source-test-groups DefaultTestGroup --type AzureSubnet --address-exclude 10.0.0.25 10.0.0.30 --coverage-level BelowAverage" + ], + "name": "Add a Subnet as a source endpoint with addresses excluded" + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.endpoints[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "list": { + "help": { + "short": "List all endpoints form a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint", + "list" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor endpoint list --connection-monitor MyConnectionMonitor --location westus2" + ], + "name": "List all endpoints form a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.endpoints", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "remove": { + "help": { + "short": "Remove an endpoint from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint", + "remove" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint" + ], + "name": "Remove endpoint from all test groups of a connection monitor" + }, + { + "commands": [ + "network watcher connection-monitor endpoint remove --connection-monitor MyConnectionMonitor --location westus --name MyEndpoint --test-groups DefaultTestGroup HealthCheckTestGroup" + ], + "name": "Remove endpoint from two test groups of a connection monitor" + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.endpoints[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "show": { + "help": { + "short": "Show an endpoint from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint", + "show" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor endpoint show --connection-monitor MyConnectionMonitor --location westus2 --name myconnectionmonitorendpoint --subscription MySubscription" + ], + "name": "Show an endpoint from a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.endpoints[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "update": { + "help": { + "short": "network watcher connection-monitor endpoint update" + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint", + "update" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.endpoints[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + } + }, + "help": { + "short": "Manage endpoint of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "endpoint" + ] + }, + "output": { + "commands": { + "add": { + "help": { + "short": "Add an output to a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output", + "add" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.outputs[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "delete": { + "help": { + "short": "Remove all outputs from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output", + "delete" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.outputs[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "list": { + "help": { + "short": "List all output from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output", + "list" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.outputs", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "show": { + "help": { + "short": "network watcher connection-monitor output show" + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output", + "show" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.outputs[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "update": { + "help": { + "short": "network watcher connection-monitor output update" + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output", + "update" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.outputs[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + } + }, + "help": { + "short": "Manage output of connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "output" + ] + }, + "test-configuration": { + "commands": { + "add": { + "help": { + "short": "Add a test configuration to a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration", + "add" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups DefaultTestGroup --protocol Http --http-request-header name=Host value=bing.com --http- request-header name=UserAgent value=Edge" + ], + "name": "Add a test configuration with HTTP supported" + }, + { + "commands": [ + "network watcher connection-monitor test-configuration add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups TCPTestGroup DefaultTestGroup --protocol Tcp --tcp-port 4096" + ], + "name": "Add a test configuration with TCP supported" + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testConfigurations[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "list": { + "help": { + "short": "List all test configurations of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration", + "list" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-configuration list --connection-monitor MyConnectionMonitor --location westus2" + ], + "name": "List all test configurations of a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testConfigurations", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "remove": { + "help": { + "short": "Remove a test configuration from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration", + "remove" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyTCPTestConfiguration" + ], + "name": "Remove a test configuration from all test groups of a connection monitor" + }, + { + "commands": [ + "network watcher connection-monitor test-configuration remove --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestConfiguration --test-groups HTTPTestGroup DefaultTestGroup" + ], + "name": "Remove a test configuration from two test groups of a connection monitor" + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testConfigurations[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "show": { + "help": { + "short": "Show a test configuration from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration", + "show" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-configuration show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestConfiguration" + ], + "name": "Show a test configuration from a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testConfigurations[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "update": { + "help": { + "short": "network watcher connection-monitor test-configuration update" + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration", + "update" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testConfigurations[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + } + }, + "help": { + "short": "Manage test configuration of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-configuration" + ] + }, + "test-group": { + "commands": { + "add": { + "help": { + "short": "Add a test group along with new-added/existing endpoint and test configuration to a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group", + "add" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyHTTPTestGroup --endpoint-source-name MySourceEndpoint --endpoint-dest-name MyDestinationEndpoint --test-config-name MyTestConfiguration" + ], + "name": "Add a test group along with existing endpoint and test configuration via their names" + }, + { + "commands": [ + "network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyLogAnalysisWorkspaceID --endpoint-dest-name MyExistingDestinationEndpoint --test-config-name MyExistingTestConfiguration" + ], + "name": "Add a test group long with new-added source endpoint and existing test configuration via its name" + }, + { + "commands": [ + "network watcher connection-monitor test-group add --connection-monitor MyConnectionMonitor --location westus --name MyAccessibilityTestGroup --endpoint-source-name MySourceEndpoint --endpoint-source-resource-id MyVMResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name MyNewTestConfiguration --protocol Tcp --tcp-port 4096" + ], + "name": "Add a test group along with new-added endpoints and test configuration" + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testGroups[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "list": { + "help": { + "short": "List all test groups of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group", + "list" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-group list --connection-monitor MyConnectionMonitor --location westus2" + ], + "name": "List all test groups of a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testGroups", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "remove": { + "help": { + "short": "Remove test group from a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group", + "remove" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-group remove --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup" + ], + "name": "Remove test group from a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testGroups[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "show": { + "help": { + "short": "Show a test group of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group", + "show" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "network watcher connection-monitor test-group show --connection-monitor MyConnectionMonitor --location westus2 --name MyConnectionMonitorTestGroup --subscription MySubscription" + ], + "name": "Show a test group of a connection monitor." + } + ], + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testGroups[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + }, + "update": { + "help": { + "short": "network watcher connection-monitor test-group update" + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group", + "update" + ], + "versions": [ + { + "name": "2022-01-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", + "plane": "mgmt-plane", + "subresource": "properties.testGroups[]", + "version": "2022-01-01" + } + ], + "stage": "Preview" + } + ] + } + }, + "help": { + "short": "Manage a test group of a connection monitor." + }, + "names": [ + "network", + "watcher", + "connection-monitor", + "test-group" + ] + } + }, "commands": { "create": { "help": { @@ -38541,6 +39253,15 @@ ], "versions": [ { + "examples": [ + { + "commands": [ + "network watcher connection-monitor create --name MyV2ConnectionMonitor --endpoint-source- name \"vm01\" --endpoint-source-resource-id MyVM01ResourceID --endpoint-dest-name bing --endpoint-dest-address bing.com --test-config-name TCPTestConfig --protocol Tcp --tcp-port 2048", + "network watcher connection-monitor create --endpoint-dest-address bing.com --endpoint- dest-name bing --endpoint-source-name \"vm01\" --endpoint-source-resource-id MyVM01ResourceID --location westus2 --name MyConnectionMonitorName --protocol Tcp --tcp-port 2048 --test- config-name TCPTestConfig" + ], + "name": "Create a connection monitor" + } + ], "name": "2022-01-01", "resources": [ { @@ -38764,7 +39485,10 @@ } }, "help": { - "short": "Manage connection monitoring between an Azure Virtual Machine and any IP resource. Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc." + "lines": [ + "Connection monitor can be used to monitor network connectivity between an Azure virtual machine and an IP address. The IP address can be assigned to another Azure resource or a resource on the Internet or on-premises. To learn more visit https://aka.ms/connectionmonitordoc." + ], + "short": "Manage connection monitoring between an Azure Virtual Machine and any IP resource." }, "names": [ "network", @@ -39713,7 +40437,7 @@ } }, "help": { - "short": "Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://learn.microsoft.com/en-us/azure/network-watcher." + "short": "Manage the Azure Network Watcher. Network Watcher assists with monitoring and diagnosing conditions at a network scenario level. To learn more visit https://docs.microsoft.com/azure/network-watcher/." }, "names": [ "network", From 07c7f9bfe23086bbfff51764f194e9d30473af1d Mon Sep 17 00:00:00 2001 From: AllyWang Date: Wed, 1 Mar 2023 19:34:19 +0800 Subject: [PATCH 5/5] fix help messages --- .../2022-01-01.json | 2 +- .../2022-01-01.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json index 88f2a5ac1ca..6dda5a232ce 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}], "commandGroups": [{"name": "endpoint", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "Parameters.properties.endpoints[]", "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "Parameters.properties.endpoints[]", "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "", "help": {"short": "Test coverage for the endpoint. Allowed values: AboveAverage, Average, BelowAverage, Default, Full, Low"}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["filter-items"], "group": "", "help": {"short": "List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["filter-type"], "group": "", "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported. Allowed values: Include."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["scope-exclude"], "group": "", "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.exclude[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["scope-include"], "group": "", "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.include[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "", "help": {"short": "The endpoint type. Allowed values: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.exclude[].address"}]}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.include[].address"}]}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "output", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "group": "", "help": {"short": "output-index"}}, {"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type", "output-type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}, {"name": "Parameters.properties.outputs[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["output-type"], "group": "Parameters.properties.outputs[]", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "group": "Parameters.properties.outputs[]", "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "test-configuration", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Allowed values: IPv4, IPv6."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "group": "", "help": {"short": "The protocol to use in test evaluation. Allowed values: Http, Icmp, Tcp."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["threshold-failed-percent"], "group": "", "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["threshold-round-trip-time"], "group": "", "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["frequency"], "group": "", "help": {"short": "The frequency of test evaluation, in seconds. Default: 60."}}]}, {"name": "HTTP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["http-method"], "group": "HTTP Protocol", "help": {"short": "The HTTP method to use. Allowed values: Get, Post."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["http-path"], "group": "HTTP Protocol", "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["http-port"], "group": "HTTP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["http-prefer-https"], "group": "HTTP Protocol", "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["http-request-headers"], "group": "HTTP Protocol", "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["http-valid-status-codes"], "group": "HTTP Protocol", "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"name": "ICMP Protocol", "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["icmp-disable-trace-route"], "group": "ICMP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}]}, {"name": "TCP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["tcp-port-behavior"], "group": "TCP Protocol", "help": {"short": "Destination port behavior. Allowed values: ListenIfAvailable, None."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["tcp-disable-trace-route"], "group": "TCP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["tcp-port"], "group": "TCP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "test-group", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "", "help": {"short": "Value indicating whether test group is disabled. false is default. Allowed values: false, true."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "group": "V2 Test Configuration", "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "commandGroups": [{"name": "network watcher connection-monitor", "commands": [{"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group-name"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ConnectionMonitors_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [202]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["network-watcher-name"], "required": true, "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}, "default": {"value": true}}, {"type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "default": {"value": 60}, "format": {"maximum": 1800, "minimum": 30}}, {"type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "required": true, "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}]}, {"name": "V2", "args": [{"type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "V2 Endpoint", "help": {"short": "List of connection monitor endpoints."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "@ConnectionMonitorEndpointScopeItem_create.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}]}, {"name": "V2 Output", "args": [{"type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "V2 Output", "help": {"short": "List of connection monitor outputs."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported. Allowed values: Workspace."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace."}}]}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "V2 Test Configuration", "help": {"short": "List of connection monitor test configurations."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}]}, {"name": "V2 Test Group", "args": [{"type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "V2 Test Group", "help": {"short": "List of connection monitor test groups."}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_create>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_create"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_create.address"}], "cls": "ConnectionMonitorEndpointScopeItem_create"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["n", "name", "connection-monitor", "connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"nullable": true, "type": "string", "var": "$parameters.location", "options": ["l", "location"], "group": "", "help": {"short": "Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=`."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]. Use ''to clear existing tags."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.autoStart", "options": ["auto-start"], "group": "Properties", "help": {"short": "Determines if the connection monitor will start automatically once created."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.destination", "options": ["destination"], "group": "Properties", "help": {"short": "Describes the destination of connection monitor."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.destination.address", "options": ["address"], "help": {"short": "Address of the connection monitor destination (IP or domain name)."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.destination.port", "options": ["port"], "help": {"short": "The destination port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "string", "var": "$parameters.properties.destination.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the destination by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints", "options": ["endpoints"], "group": "Properties", "help": {"short": "List of connection monitor endpoints."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.monitoringIntervalInSeconds", "options": ["monitor-in-sec", "monitoring-interval-in-seconds"], "group": "Properties", "help": {"short": "Monitoring interval in seconds."}, "format": {"maximum": 1800, "minimum": 30}}, {"nullable": true, "type": "array", "var": "$parameters.properties.outputs", "options": ["outputs"], "group": "Properties", "help": {"short": "List of connection monitor outputs."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type"], "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.source", "options": ["source"], "group": "Properties", "help": {"short": "Describes the source of connection monitor."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.source.port", "options": ["port"], "help": {"short": "The source port used by connection monitor."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "var": "$parameters.properties.source.resourceId", "options": ["resource-id"], "help": {"short": "The ID of the resource used as the source by connection monitor."}}]}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations", "options": ["test-configurations"], "group": "Properties", "help": {"short": "List of connection monitor test configurations."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "help": {"short": "The frequency of test evaluation, in seconds."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testGroups", "options": ["test-groups"], "group": "Properties", "help": {"short": "List of connection monitor test groups."}, "item": {"nullable": true, "type": "object", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}}]}, {"name": "V2", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.notes", "options": ["notes"], "group": "V2", "help": {"short": "Optional notes to be associated with the connection monitor."}}]}], "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "location", "arg": "$parameters.location"}, {"type": "object", "name": "properties", "required": true, "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart", "arg": "$parameters.properties.autoStart"}, {"type": "object", "name": "destination", "arg": "$parameters.properties.destination", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.destination.address"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.destination.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.destination.resourceId"}]}, {"type": "array", "name": "endpoints", "arg": "$parameters.properties.endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "arg": "$parameters.properties.monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"type": "string", "name": "notes", "arg": "$parameters.properties.notes"}, {"type": "array", "name": "outputs", "arg": "$parameters.properties.outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}, {"type": "object", "name": "source", "arg": "$parameters.properties.source", "props": [{"type": "integer32", "name": "port", "arg": "$parameters.properties.source.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.source.resourceId", "required": true}]}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "arg": "$parameters.properties.testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}], "commandGroups": [{"name": "endpoint", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.endpoints[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Test coverage for the endpoint."}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].filter", "options": ["filter"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Filter for sub-items within the endpoint."}, "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["items"], "help": {"short": "List of items in the filter."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["type"], "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}]}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["name"], "required": true, "group": "Parameters.properties.endpoints[]", "help": {"short": "The name of the connection monitor endpoint."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.endpoints[].scope", "options": ["scope"], "group": "Parameters.properties.endpoints[]", "help": {"short": "Endpoint scope."}, "args": [{"nullable": true, "type": "array<@ConnectionMonitorEndpointScopeItem_update>", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["exclude"], "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"nullable": true, "type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"nullable": true, "type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["include"], "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "@ConnectionMonitorEndpointScopeItem_update.address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "Parameters.properties.endpoints[]", "help": {"short": "The endpoint type."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "arg": "$parameters.properties.endpoints[].filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "arg": "$parameters.properties.endpoints[].scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_update>", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_update"}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "@ConnectionMonitorEndpointScopeItem_update.address"}], "cls": "ConnectionMonitorEndpointScopeItem_update"}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.endpoints[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.endpoints[].address", "options": ["address"], "group": "", "help": {"short": "Address of the connection monitor endpoint (IP or domain name)."}}, {"type": "string", "var": "$parameters.properties.endpoints[].coverageLevel", "options": ["coverage-level"], "group": "", "help": {"short": "Test coverage for the endpoint. Allowed values: AboveAverage, Average, BelowAverage, Default, Full, Low"}, "enum": {"items": [{"name": "AboveAverage", "value": "AboveAverage"}, {"name": "Average", "value": "Average"}, {"name": "BelowAverage", "value": "BelowAverage"}, {"name": "Default", "value": "Default"}, {"name": "Full", "value": "Full"}, {"name": "Low", "value": "Low"}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].filter.items", "options": ["filter-items"], "group": "", "help": {"short": "List of property=value pairs to define filter items. Property currently include: type, address. Property value of type supports 'AgentAddress' only now."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].address", "options": ["address"], "help": {"short": "The address of the filter item."}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.items[].type", "options": ["type"], "help": {"short": "The type of item included in the filter. Currently only 'AgentAddress' is supported."}, "enum": {"items": [{"name": "AgentAddress", "value": "AgentAddress"}]}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].filter.type", "options": ["filter-type"], "group": "", "help": {"short": "The behavior of the endpoint filter. Currently only 'Include' is supported. Allowed values: Include."}, "enum": {"items": [{"name": "Include", "value": "Include"}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].name", "options": ["n", "name", "endpoint-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor endpoint."}}, {"type": "string", "var": "$parameters.properties.endpoints[].resourceId", "options": ["resource-id"], "group": "", "help": {"short": "Resource ID of the connection monitor endpoint."}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.exclude", "options": ["scope-exclude"], "group": "", "help": {"short": "List of items which needs to be excluded from the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.exclude[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "array", "var": "$parameters.properties.endpoints[].scope.include", "options": ["scope-include"], "group": "", "help": {"short": "List of items which needs to be included to the endpoint scope."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.endpoints[].scope.include[].address", "options": ["address"], "help": {"short": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address."}}]}}, {"type": "string", "var": "$parameters.properties.endpoints[].type", "options": ["type"], "group": "", "help": {"short": "The endpoint type. Allowed values: AzureArcVM, AzureSubnet, AzureVM, AzureVMSS, AzureVNet, ExternalAddress, MMAWorkspaceMachine, MMAWorkspaceNetwork."}, "enum": {"items": [{"name": "AzureArcVM", "value": "AzureArcVM"}, {"name": "AzureSubnet", "value": "AzureSubnet"}, {"name": "AzureVM", "value": "AzureVM"}, {"name": "AzureVMSS", "value": "AzureVMSS"}, {"name": "AzureVNet", "value": "AzureVNet"}, {"name": "ExternalAddress", "value": "ExternalAddress"}, {"name": "MMAWorkspaceMachine", "value": "MMAWorkspaceMachine"}, {"name": "MMAWorkspaceNetwork", "value": "MMAWorkspaceNetwork"}]}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.endpoints", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.endpoints[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.endpoints[]", "required": true, "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].address"}, {"type": "string", "name": "coverageLevel", "arg": "$parameters.properties.endpoints[].coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "arg": "$parameters.properties.endpoints[].filter.items", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].filter.items[].address"}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.items[].type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].filter.type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.endpoints[].name", "required": true}, {"type": "string", "name": "resourceId", "arg": "$parameters.properties.endpoints[].resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array", "name": "exclude", "arg": "$parameters.properties.endpoints[].scope.exclude", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.exclude[].address"}]}}, {"type": "array", "name": "include", "arg": "$parameters.properties.endpoints[].scope.include", "item": {"type": "object", "props": [{"type": "string", "name": "address", "arg": "$parameters.properties.endpoints[].scope.include[].address"}]}}]}, {"type": "string", "name": "type", "arg": "$parameters.properties.endpoints[].type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "output", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "group": "", "help": {"short": "output-index"}}, {"type": "string", "var": "$parameters.properties.outputs[].type", "options": ["type", "output-type"], "group": "", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-id"], "group": "", "help": {"short": "The id of log analytics workspace"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]"}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}, {"name": "Parameters.properties.outputs[]", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].type", "options": ["output-type"], "group": "Parameters.properties.outputs[]", "help": {"short": "Connection monitor output destination type. Currently, only \"Workspace\" is supported."}, "enum": {"items": [{"name": "Workspace", "value": "Workspace"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.outputs[].workspaceSettings", "options": ["workspace-settings"], "group": "Parameters.properties.outputs[]", "help": {"short": "Describes the settings for producing output into a log analytics workspace."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId", "options": ["workspace-resource-id"], "help": {"short": "Log analytics workspace resource ID."}}]}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.outputs[]", "required": true, "props": [{"type": "string", "name": "type", "arg": "$parameters.properties.outputs[].type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "arg": "$parameters.properties.outputs[].workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId", "arg": "$parameters.properties.outputs[].workspaceSettings.workspaceResourceId"}]}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor-name"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.outputs[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "integer", "var": "$parameters.properties.outputs[Index]", "options": ["output-index"], "required": true}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.outputs", "item": {"type": "object"}, "identifiers": [{"type": "integer", "name": "[Index]", "arg": "$parameters.properties.outputs[Index]", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}]}, {"name": "test-configuration", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testConfigurations[]", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].httpConfiguration", "options": ["http-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over HTTP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["method"], "help": {"short": "The HTTP method to use."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["path"], "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["prefer-https"], "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["request-headers"], "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"nullable": true, "type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["valid-status-code-ranges"], "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"nullable": true, "type": "string"}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].icmpConfiguration", "options": ["icmp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over ICMP."}, "args": [{"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}]}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The name of the connection monitor test configuration."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The protocol to use in test evaluation."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].successThreshold", "options": ["success-threshold"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The threshold for declaring a test successful."}, "args": [{"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["checks-failed-percent"], "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"nullable": true, "type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["round-trip-time-ms"], "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.testConfigurations[].tcpConfiguration", "options": ["tcp-configuration"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The parameters used to perform test evaluation over TCP."}, "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["destination-port-behavior"], "help": {"short": "Destination port behavior."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["disable-trace-route"], "help": {"short": "Value indicating whether path evaluation with trace route should be disabled."}}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["port"], "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}, {"nullable": true, "type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["test-frequency-sec"], "group": "Parameters.properties.testConfigurations[]", "help": {"short": "The frequency of test evaluation, in seconds."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "arg": "$parameters.properties.testConfigurations[].httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "arg": "$parameters.properties.testConfigurations[].successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testConfigurations[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].name", "options": ["n", "name", "test-configuration-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test configuration."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].preferredIPVersion", "options": ["preferred-ip-version"], "group": "", "help": {"short": "The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Allowed values: IPv4, IPv6."}, "enum": {"items": [{"name": "IPv4", "value": "IPv4"}, {"name": "IPv6", "value": "IPv6"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].protocol", "options": ["protocol"], "required": true, "group": "", "help": {"short": "The protocol to use in test evaluation. Allowed values: Http, Icmp, Tcp."}, "enum": {"items": [{"name": "Http", "value": "Http"}, {"name": "Icmp", "value": "Icmp"}, {"name": "Tcp", "value": "Tcp"}]}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent", "options": ["threshold-failed-percent"], "group": "", "help": {"short": "The maximum percentage of failed checks permitted for a test to evaluate as successful."}}, {"type": "float", "var": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs", "options": ["threshold-round-trip-time"], "group": "", "help": {"short": "The maximum round-trip time in milliseconds permitted for a test to evaluate as successful."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].testFrequencySec", "options": ["frequency"], "group": "", "help": {"short": "The frequency of test evaluation, in seconds. Default: 60."}}]}, {"name": "HTTP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.method", "options": ["http-method"], "group": "HTTP Protocol", "help": {"short": "The HTTP method to use. Allowed values: Get, Post."}, "enum": {"items": [{"name": "Get", "value": "Get"}, {"name": "Post", "value": "Post"}]}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.path", "options": ["http-path"], "group": "HTTP Protocol", "help": {"short": "The path component of the URI. For instance, \"/dir1/dir2\"."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].httpConfiguration.port", "options": ["http-port"], "group": "HTTP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS", "options": ["http-prefer-https"], "group": "HTTP Protocol", "help": {"short": "Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit."}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "options": ["http-request-headers"], "group": "HTTP Protocol", "help": {"short": "The HTTP headers to transmit with the request."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name", "options": ["name"], "help": {"short": "The name in HTTP header."}}, {"type": "string", "var": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value", "options": ["value"], "help": {"short": "The value in HTTP header."}}]}}, {"type": "array", "var": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "options": ["http-valid-status-codes"], "group": "HTTP Protocol", "help": {"short": "HTTP status codes to consider successful. For instance, \"2xx,301-304,418\"."}, "item": {"type": "string"}}]}, {"name": "ICMP Protocol", "args": [{"type": "boolean", "var": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute", "options": ["icmp-disable-trace-route"], "group": "ICMP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}]}, {"name": "TCP Protocol", "args": [{"type": "string", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "options": ["tcp-port-behavior"], "group": "TCP Protocol", "help": {"short": "Destination port behavior. Allowed values: ListenIfAvailable, None."}, "enum": {"items": [{"name": "ListenIfAvailable", "value": "ListenIfAvailable"}, {"name": "None", "value": "None"}]}}, {"type": "boolean", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute", "options": ["tcp-disable-trace-route"], "group": "TCP Protocol", "help": {"short": "Value indicating whether path evaluation with trace route should be disabled. false is default. Allowed values: false, true."}}, {"type": "integer32", "var": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "options": ["tcp-port"], "group": "TCP Protocol", "help": {"short": "The port to connect to."}, "format": {"maximum": 65535, "minimum": 0}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testConfigurations", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testConfigurations[]", "required": true, "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.path"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.preferHTTPS"}, {"type": "array", "name": "requestHeaders", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].name"}, {"type": "string", "name": "value", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.requestHeaders[].value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "arg": "$parameters.properties.testConfigurations[].httpConfiguration.validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].icmpConfiguration.disableTraceRoute"}]}, {"type": "string", "name": "name", "arg": "$parameters.properties.testConfigurations[].name", "required": true}, {"type": "string", "name": "preferredIPVersion", "arg": "$parameters.properties.testConfigurations[].preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "arg": "$parameters.properties.testConfigurations[].protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent", "arg": "$parameters.properties.testConfigurations[].successThreshold.checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs", "arg": "$parameters.properties.testConfigurations[].successThreshold.roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.disableTraceRoute"}, {"type": "integer32", "name": "port", "arg": "$parameters.properties.testConfigurations[].tcpConfiguration.port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec", "arg": "$parameters.properties.testConfigurations[].testFrequencySec"}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}, {"name": "test-group", "commands": [{"name": "list", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups"}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}]}, {"name": "Parameters.properties.testGroups[]", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of destination endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "Parameters.properties.testGroups[]", "help": {"short": "Value indicating whether test group is disabled."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["name"], "required": true, "group": "Parameters.properties.testGroups[]", "help": {"short": "The name of the connection monitor test group."}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of source endpoint names."}, "item": {"nullable": true, "type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "group": "Parameters.properties.testGroups[]", "help": {"short": "List of test configuration names."}, "item": {"nullable": true, "type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "show", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}, {"name": "remove", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceDelete": {"ref": "$Subresource", "json": {}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "confirmation": ""}, {"name": "add", "version": "2022-01-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkwatchers/{}/connectionmonitors/{}", "version": "2022-01-01", "subresource": "properties.testGroups[]", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrV2F0Y2hlcnMve25ldHdvcmtXYXRjaGVyTmFtZX0vY29ubmVjdGlvbk1vbml0b3JzL3tjb25uZWN0aW9uTW9uaXRvck5hbWV9/V/MjAyMi0wMS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.connectionMonitorName", "options": ["connection-monitor"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "Connection monitor name."}}, {"type": "string", "var": "$Path.networkWatcherName", "options": ["watcher-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the Network Watcher resource."}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "watcher-rg"], "required": true, "group": "", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Query.migrate", "options": ["migrate"], "hide": true, "group": "", "help": {"short": "Value indicating whether connection monitor V1 should be migrated to V2 format."}}, {"type": "boolean", "var": "$parameters.properties.testGroups[].disable", "options": ["disable"], "group": "", "help": {"short": "Value indicating whether test group is disabled. false is default. Allowed values: false, true."}}, {"type": "string", "var": "$parameters.properties.testGroups[].name", "options": ["n", "name", "test-group-name"], "required": true, "group": "", "help": {"short": "The name of the connection monitor test group."}}]}, {"name": "V2 Endpoint", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].destinations", "options": ["destinations"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of destination endpoint names."}, "item": {"type": "string"}}, {"type": "array", "var": "$parameters.properties.testGroups[].sources", "options": ["sources"], "required": true, "group": "V2 Endpoint", "help": {"short": "List of source endpoint names."}, "item": {"type": "string"}}]}, {"name": "V2 Test Configuration", "args": [{"type": "array", "var": "$parameters.properties.testGroups[].testConfigurations", "options": ["test-configurations"], "required": true, "group": "V2 Test Configuration", "help": {"short": "List of test configuration names."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "array", "name": "properties.testGroups", "item": {"type": "object"}, "identifiers": [{"type": "string", "name": "[].name", "arg": "$parameters.properties.testGroups[].name", "required": true}]}}}, "operations": [{"operationId": "ConnectionMonitors_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/networkWatchers/{}/connectionMonitors/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"default": {"value": true}, "type": "boolean", "name": "autoStart"}, {"readOnly": true, "type": "string", "name": "connectionMonitorType", "enum": {"items": [{"value": "MultiEndpoint"}, {"value": "SingleSourceDestination"}]}}, {"type": "object", "name": "destination", "props": [{"type": "string", "name": "address"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId"}]}, {"type": "array", "name": "endpoints", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "coverageLevel", "enum": {"items": [{"value": "AboveAverage"}, {"value": "Average"}, {"value": "BelowAverage"}, {"value": "Default"}, {"value": "Full"}, {"value": "Low"}]}}, {"type": "object", "name": "filter", "props": [{"type": "array", "name": "items", "item": {"type": "object", "props": [{"type": "string", "name": "address"}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AgentAddress"}]}}]}}, {"type": "string", "name": "type", "enum": {"items": [{"value": "Include"}]}}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "resourceId"}, {"type": "object", "name": "scope", "props": [{"type": "array<@ConnectionMonitorEndpointScopeItem_read>", "name": "exclude", "item": {"type": "@ConnectionMonitorEndpointScopeItem_read"}}, {"type": "array", "name": "include", "item": {"type": "object", "props": [{"type": "string", "name": "address"}], "cls": "ConnectionMonitorEndpointScopeItem_read"}}]}, {"type": "string", "name": "type", "enum": {"items": [{"value": "AzureArcVM"}, {"value": "AzureSubnet"}, {"value": "AzureVM"}, {"value": "AzureVMSS"}, {"value": "AzureVNet"}, {"value": "ExternalAddress"}, {"value": "MMAWorkspaceMachine"}, {"value": "MMAWorkspaceNetwork"}]}}]}, "identifiers": ["name"]}, {"default": {"value": 60}, "type": "integer32", "name": "monitoringIntervalInSeconds", "format": {"maximum": 1800, "minimum": 30}}, {"readOnly": true, "type": "string", "name": "monitoringStatus"}, {"type": "string", "name": "notes"}, {"type": "array", "name": "outputs", "item": {"type": "object", "props": [{"type": "string", "name": "type", "enum": {"items": [{"value": "Workspace"}]}}, {"type": "object", "name": "workspaceSettings", "props": [{"type": "string", "name": "workspaceResourceId"}]}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "object", "name": "source", "props": [{"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "string", "name": "resourceId", "required": true}]}, {"readOnly": true, "type": "dateTime", "name": "startTime"}, {"type": "array", "name": "testConfigurations", "item": {"type": "object", "props": [{"type": "object", "name": "httpConfiguration", "props": [{"type": "string", "name": "method", "enum": {"items": [{"value": "Get"}, {"value": "Post"}]}}, {"type": "string", "name": "path"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}, {"type": "boolean", "name": "preferHTTPS"}, {"type": "array", "name": "requestHeaders", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}}, {"type": "array", "name": "validStatusCodeRanges", "item": {"type": "string"}}]}, {"type": "object", "name": "icmpConfiguration", "props": [{"type": "boolean", "name": "disableTraceRoute"}]}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "preferredIPVersion", "enum": {"items": [{"value": "IPv4"}, {"value": "IPv6"}]}}, {"type": "string", "name": "protocol", "required": true, "enum": {"items": [{"value": "Http"}, {"value": "Icmp"}, {"value": "Tcp"}]}}, {"type": "object", "name": "successThreshold", "props": [{"type": "integer32", "name": "checksFailedPercent"}, {"type": "float", "name": "roundTripTimeMs"}]}, {"type": "object", "name": "tcpConfiguration", "props": [{"type": "string", "name": "destinationPortBehavior", "enum": {"items": [{"value": "ListenIfAvailable"}, {"value": "None"}]}}, {"type": "boolean", "name": "disableTraceRoute"}, {"type": "integer32", "name": "port", "format": {"maximum": 65535, "minimum": 0}}]}, {"type": "integer32", "name": "testFrequencySec"}]}, "identifiers": ["name"]}, {"type": "array", "name": "testGroups", "item": {"type": "object", "props": [{"type": "array", "name": "destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable"}, {"type": "string", "name": "name", "required": true}, {"type": "array", "name": "sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "required": true, "item": {"type": "string"}}]}, "identifiers": ["name"]}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceCreate": {"ref": "$Subresource", "json": {"schema": {"type": "object", "name": "parameters.properties.testGroups[]", "required": true, "props": [{"type": "array", "name": "destinations", "arg": "$parameters.properties.testGroups[].destinations", "required": true, "item": {"type": "string"}}, {"type": "boolean", "name": "disable", "arg": "$parameters.properties.testGroups[].disable"}, {"type": "string", "name": "name", "arg": "$parameters.properties.testGroups[].name", "required": true}, {"type": "array", "name": "sources", "arg": "$parameters.properties.testGroups[].sources", "required": true, "item": {"type": "string"}}, {"type": "array", "name": "testConfigurations", "arg": "$parameters.properties.testGroups[].testConfigurations", "required": true, "item": {"type": "string"}}]}}}}, {"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "ConnectionMonitors_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "connectionMonitorName", "arg": "$Path.connectionMonitorName", "required": true}, {"type": "string", "name": "networkWatcherName", "arg": "$Path.networkWatcherName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "string", "name": "migrate", "arg": "$Query.migrate"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2022-01-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ConnectionMonitorResult_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}], "confirmation": ""}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml index dffc603f395..8e61312aca0 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmt3YXRjaGVycy97fS9jb25uZWN0aW9ubW9uaXRvcnMve30=/2022-01-01.xml @@ -6007,7 +6007,9 @@ - + + +