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

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
descriptiontextfield from the properties object
accesstextfield from the properties object
defaultSecurityRuleNametextfield from the properties object
destination_address_prefixtextfield from the properties object
destination_address_prefixestextfield from the properties object
destination_application_security_groupstextfield from the properties object
destination_port_rangetextfield from the properties object
destination_port_rangestextfield from the properties object
directiontextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
networkSecurityGroupNametextfield from the properties object
prioritytextfield from the properties object
protocoltextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
source_address_prefixtextfield from the properties object
source_address_prefixestextfield from the properties object
source_application_security_groupstextfield from the properties object
source_port_rangetextfield from the properties object
source_port_rangestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdefaultSecurityRuleName, networkSecurityGroupName, resourceGroupName, subscriptionIdGet the specified default network security rule.
listSELECTnetworkSecurityGroupName, resourceGroupName, subscriptionIdGets all default security rules in a network security group.

SELECT examples

Gets all default security rules in a network security group.

SELECT
id,
name,
description,
access,
defaultSecurityRuleName,
destination_address_prefix,
destination_address_prefixes,
destination_application_security_groups,
destination_port_range,
destination_port_ranges,
direction,
etag,
networkSecurityGroupName,
priority,
protocol,
provisioning_state,
resourceGroupName,
source_address_prefix,
source_address_prefixes,
source_application_security_groups,
source_port_range,
source_port_ranges,
subscriptionId,
type
FROM azure.network.vw_default_security_rules
WHERE networkSecurityGroupName = '{{ networkSecurityGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';