SecurityRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SecurityRule.
public class SecurityRule : Azure.Provisioning.Primitives.ProvisionableResource
type SecurityRule = class
inherit ProvisionableResource
Public Class SecurityRule
Inherits ProvisionableResource
- Inheritance
Constructors
| Name | Description |
|---|---|
| SecurityRule(String, String) |
Creates a new SecurityRule. |
Properties
| Name | Description |
|---|---|
| Access |
The network traffic is allowed or denied. |
| BicepIdentifier |
Gets or sets the the Bicep identifier name of the resource. This can be used to refer to the resource in expressions, but is not the Azure name of the resource. This value can contain letters, numbers, and underscores. (Inherited from NamedProvisionableConstruct) |
| DependsOn |
Declares explicit dependencies on other resources. (Inherited from ProvisionableResource) |
| Description |
A description for this rule. Restricted to 140 chars. |
| DestinationAddressPrefix |
The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. |
| DestinationAddressPrefixes |
The destination address prefixes. CIDR or destination IP ranges. |
| DestinationApplicationSecurityGroups |
The application security group specified as destination. |
| DestinationPortRange |
The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. |
| DestinationPortRanges |
The destination port ranges. |
| Direction |
The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. |
| ETag |
A unique read-only string that changes whenever the resource is updated. |
| Id |
Resource ID. |
| IsExistingResource |
Gets whether this is referencing an existing resource or we're defining a new resource. (Inherited from ProvisionableResource) |
| Name |
The name of the security rule. |
| Parent |
Gets or sets a reference to the parent NetworkSecurityGroup. |
| Priority |
The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. |
| Protocol |
Network protocol this rule applies to. |
| ProvisioningState |
The provisioning state of the security rule resource. |
| ResourceType |
Gets the type of the resource. (Inherited from ProvisionableResource) |
| ResourceVersion |
Gets or sets the version of the resource. (Inherited from ProvisionableResource) |
| SourceAddressPrefix |
The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. |
| SourceAddressPrefixes |
The CIDR or source IP ranges. |
| SourceApplicationSecurityGroups |
The application security group specified as source. |
| SourcePortRange |
The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. |
| SourcePortRanges |
The source port ranges. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IBicepValue.Assign(IBicepValue) |
Assign a value to this property. (Inherited from ProvisionableConstruct) |
| IBicepValue.Compile() |
Compile this value to a Bicep expression. (Inherited from ProvisionableConstruct) |
| IBicepValue.Expression |
Gets the expression for this value if it's not a literal. (Inherited from ProvisionableConstruct) |
| IBicepValue.IsEmpty |
Gets whether this value is unset or empty. (Inherited from ProvisionableConstruct) |
| IBicepValue.IsOutput |
Tracks whether this is an output only property. (Inherited from ProvisionableConstruct) |
| IBicepValue.IsRequired |
Tracks whether this property is required. (Inherited from ProvisionableConstruct) |
| IBicepValue.IsSecure |
Tracks whether this contains a secure value. (Inherited from ProvisionableConstruct) |
| IBicepValue.Kind |
Gets the kind of this value (a literal value, an expression, or it's unset). (Inherited from ProvisionableConstruct) |
| IBicepValue.LiteralValue |
Get the value of this expression, if it's literal. (Inherited from ProvisionableConstruct) |
| IBicepValue.Self |
Gets information about where this value was defined. (Inherited from ProvisionableConstruct) |
| IBicepValue.SetReadOnly() |
Make this value readonly. (Inherited from ProvisionableConstruct) |
| IBicepValue.Source |
Gets information about where this value was assigned from. (Inherited from ProvisionableConstruct) |
Extension Methods
| Name | Description |
|---|---|
| ToBicepExpression(IBicepValue) |
Convert a IBicepValue into a BicepExpression by its reference to represent its hierarchy. |