Skip to main content

default_security_rules

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

Overview

Namedefault_security_rules
TypeResource
Idazure.network.default_security_rules

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting SecurityRule resource.

NameDatatypeDescription
idstringResource ID.
namestringThe name of the resource that is unique within a resource group. This name can be used to access the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
propertiesobjectProperties of the security rule.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, networkSecurityGroupName, defaultSecurityRuleName, subscriptionIdGet the specified default network security rule.
listselectresourceGroupName, networkSecurityGroupName, subscriptionIdGets all default security rules in a network security group.

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
defaultSecurityRuleNamestringThe name of the default security rule.
networkSecurityGroupNamestringThe name of the network security group.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the specified default network security rule.

SELECT
id,
name,
etag,
properties,
type
FROM azure.network.default_security_rules
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND networkSecurityGroupName = '{{ networkSecurityGroupName }}' -- required
AND defaultSecurityRuleName = '{{ defaultSecurityRuleName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;