AzureSubnetResource.WithNetworkSecurityGroup

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
type AzureSubnetResource interface {
// ... omitted for brevity
WithNetworkSecurityGroup(nsg AzureNetworkSecurityGroupResource) AzureSubnetResource
}

Signature

methodWithNetworkSecurityGroupbuilder
Associates a Network Security Group with the subnet.
WithNetworkSecurityGroup(nsg AzureNetworkSecurityGroupResource) AzureSubnetResource
nsgAzureNetworkSecurityGroupResourceThe Network Security Group to associate with the subnet.
AzureSubnetResource

The resource builder.

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

Defined on

This method is defined on the following type: