Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithSecurityRule

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
func (AzureNetworkSecurityGroupResource) WithSecurityRule(rule *AzureSecurityRule) AzureNetworkSecurityGroupResource

Signature

methodWithSecurityRulebuilder
Adds a security rule to the Network Security Group.
WithSecurityRule(rule *AzureSecurityRule) AzureNetworkSecurityGroupResource
rule*AzureSecurityRuleThe security rule configuration.
AzureNetworkSecurityGroupResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: