Skip to content
Docs Try Aspire

AzureNetworkSecurityGroupResource Constructors

Class Constructors 1 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)
{
// ...
}
}
name string The name of the resource.
configureInfrastructure Action<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.