Skip to main content

watchers_vm_security_rules

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

Overview

Namewatchers_vm_security_rules
TypeResource
Idazure.network.watchers_vm_security_rules

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns security group rules on the VM.

NameDatatypeDescription
networkInterfacesarrayList of network interfaces on the specified VM.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, networkWatcherName, subscriptionIdGets the configured and effective security group rules on the specified VM.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
networkWatcherNamestringThe name of the network watcher.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the configured and effective security group rules on the specified VM.

SELECT
networkInterfaces
FROM azure.network.watchers_vm_security_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkWatcherName = '{{ networkWatcherName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;