AzureSubnetResource.withNetworkSecurityGroup

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureSubnetResource {
// ... 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

Defined on

This method is defined on the following type: