allowOutbound

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureSubnetResource {
// ... omitted for brevity
allowOutbound(
port?: string,
from?: string,
to?: string,
protocol?: SecurityRuleProtocol,
priority?: number,
name?: string): AzureSubnetResource;
}

Signature

methodallowOutboundbuilder
Adds an outbound allow rule to the subnet's Network Security Group.
allowOutbound(
port?: string,
from?: string,
to?: string,
protocol?: SecurityRuleProtocol,
priority?: number,
name?: string): AzureSubnetResource
portstringoptionalThe destination port range (e.g., "443", "80-443"). Defaults to "*" (any).
fromstringoptionalThe source address prefix. Defaults to "*" (any).
tostringoptionalThe destination address prefix (e.g., "Internet", "VirtualNetwork"). Defaults to "*" (any).
protocolSecurityRuleProtocoloptionalThe network protocol. Defaults to `Asterisk` (any).
prioritynumberoptionalThe rule priority (100-4096). If not specified, auto-increments from 100 by 100.
namestringoptionalThe rule name. If not specified, auto-generated from parameters.
AzureSubnetResource

Applies to

This method applies to the following types: