Skip to main content

connection_monitors

Creates, updates, deletes, gets or lists a connection_monitors resource.

Overview

Nameconnection_monitors
TypeResource
Idazure.network.connection_monitors

Fields

NameDatatypeDescription
idtextID of the connection monitor.
nametextName of the connection monitor.
auto_starttextfield from the properties object
connectionMonitorNametextfield from the properties object
connection_monitor_typetextfield from the properties object
destinationtextfield from the properties object
endpointstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextConnection monitor location.
monitoring_interval_in_secondstextfield from the properties object
monitoring_statustextfield from the properties object
networkWatcherNametextfield from the properties object
notestextfield from the properties object
outputstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sourcetextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextConnection monitor tags.
test_configurationstextfield from the properties object
test_groupstextfield from the properties object
typetextConnection monitor type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdGets a connection monitor by name.
listSELECTnetworkWatcherName, resourceGroupName, subscriptionIdLists all connection monitors for the specified Network Watcher.
create_or_updateINSERTconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionId, data__propertiesCreate or update a connection monitor.
deleteDELETEconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdDeletes the specified connection monitor.
queryEXECconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdQuery a snapshot of the most recent connection states.
startEXECconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdStarts the specified connection monitor.
stopEXECconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdStops the specified connection monitor.
update_tagsEXECconnectionMonitorName, networkWatcherName, resourceGroupName, subscriptionIdUpdate tags of the specified connection monitor.

SELECT examples

Lists all connection monitors for the specified Network Watcher.

SELECT
id,
name,
auto_start,
connectionMonitorName,
connection_monitor_type,
destination,
endpoints,
etag,
location,
monitoring_interval_in_seconds,
monitoring_status,
networkWatcherName,
notes,
outputs,
provisioning_state,
resourceGroupName,
source,
start_time,
subscriptionId,
tags,
test_configurations,
test_groups,
type
FROM azure.network.vw_connection_monitors
WHERE networkWatcherName = '{{ networkWatcherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new connection_monitors resource.

/*+ create */
INSERT INTO azure.network.connection_monitors (
connectionMonitorName,
networkWatcherName,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ connectionMonitorName }}',
'{{ networkWatcherName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

DELETE example

Deletes the specified connection_monitors resource.

/*+ delete */
DELETE FROM azure.network.connection_monitors
WHERE connectionMonitorName = '{{ connectionMonitorName }}'
AND networkWatcherName = '{{ networkWatcherName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';