# AzureSecurityRule Constructors

- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Type: [AzureSecurityRule](/reference/api/csharp/aspire.hosting.azure.network/azuresecurityrule.md)
- Kind: `Constructors`
- Members: `1`

Represents a security rule configuration for an Azure Network Security Group.

## AzureSecurityRule

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureSecurityRule.cs#L52-L69)

```csharp
public sealed class AzureSecurityRule
{
    public AzureSecurityRule()
    {
        // ...
    }
}
```
