AzureNetworkSecurityGroupResource.withSecurityRule

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureNetworkSecurityGroupResource {
// ... omitted for brevity
withSecurityRule(rule: AzureSecurityRule): AzureNetworkSecurityGroupResource;
}

Signature

methodwithSecurityRulebuilder
Adds a security rule to the Network Security Group.
withSecurityRule(rule: AzureSecurityRule): AzureNetworkSecurityGroupResource
ruleAzureSecurityRuleThe security rule configuration.
AzureNetworkSecurityGroupResource

Defined on

This method is defined on the following type: