HciVmSecurityRuleProperties Constructor

Definition

Initializes a new instance of HciVmSecurityRuleProperties.

public HciVmSecurityRuleProperties(Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleProtocol protocol, Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleAccess access, int priority, Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleDirection direction);
new Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleProperties : Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleProtocol * Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleAccess * int * Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleDirection -> Azure.ResourceManager.Hci.Vm.Models.HciVmSecurityRuleProperties
Public Sub New (protocol As HciVmSecurityRuleProtocol, access As HciVmSecurityRuleAccess, priority As Integer, direction As HciVmSecurityRuleDirection)

Parameters

protocol
HciVmSecurityRuleProtocol

Network protocol this rule applies to.

access
HciVmSecurityRuleAccess

The network traffic is allowed or denied.

priority
Int32

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.

direction
HciVmSecurityRuleDirection

The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.

Applies to