다음을 통해 공유


AdaptiveNetworkHardeningEnforceContent Constructor

Definition

Initializes a new instance of AdaptiveNetworkHardeningEnforceContent.

public AdaptiveNetworkHardeningEnforceContent (System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecurityCenter.Models.RecommendedSecurityRule> rules, System.Collections.Generic.IEnumerable<string> networkSecurityGroups);
new Azure.ResourceManager.SecurityCenter.Models.AdaptiveNetworkHardeningEnforceContent : seq<Azure.ResourceManager.SecurityCenter.Models.RecommendedSecurityRule> * seq<string> -> Azure.ResourceManager.SecurityCenter.Models.AdaptiveNetworkHardeningEnforceContent
Public Sub New (rules As IEnumerable(Of RecommendedSecurityRule), networkSecurityGroups As IEnumerable(Of String))

Parameters

rules
IEnumerable<RecommendedSecurityRule>

The rules to enforce.

networkSecurityGroups
IEnumerable<String>

The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules.

Exceptions

rules or networkSecurityGroups is null.

Applies to