Skip to content
DocsTry Aspire
DocsTry

AzureNetworkSecurityGroupResource Constructors

ClassConstructors1 member
Represents an Azure Network Security Group resource.
Constructor(string, Action<AzureResourceInfrastructure>)Section titled Constructor(string, Action<AzureResourceInfrastructure>)
Represents an Azure Network Security Group resource.
public class AzureNetworkSecurityGroupResource
{
public AzureNetworkSecurityGroupResource(
string name,
Action<AzureResourceInfrastructure> configureInfrastructure)
{
// ...
}
}
namestringThe name of the resource.
configureInfrastructureAction<AzureResourceInfrastructure>Callback to configure the Azure Network Security Group resource.
A Network Security Group contains security rules that control inbound and outbound network traffic. Use AzureProvisioningResourceExtensions.ConfigureInfrastructure to configure specific Azure.Provisioning properties.