# allowOutbound

- Module: [Aspire.Hosting.Azure.Network](/reference/api/typescript/aspire.hosting.azure.network.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Adds an outbound allow rule to the subnet's Network Security Group.

## Definition

```typescript
interface AzureSubnetResource {
  // ... omitted for brevity
  allowOutbound(
    port?: string,
    from?: string,
    to?: string,
    protocol?: SecurityRuleProtocol,
    priority?: number,
    name?: string): AzureSubnetResource
}
```

## Parameters

- `port` (`string`) `optional`
- `from` (`string`) `optional`
- `to` (`string`) `optional`
- `protocol` (`SecurityRuleProtocol`) `optional`
- `priority` (`number`) `optional`
- `name` (`string`) `optional`

## Returns

[AzureSubnetResource](/reference/api/typescript/aspire.hosting.azure.network/azuresubnetresource.md) `builder`

## Applies to

- [AzureSubnetResource](/reference/api/typescript/aspire.hosting.azure.network/azuresubnetresource.md)
