allowInbound

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

Signature

methodallowInboundbuilder
Adds an inbound allow rule to the subnet's Network Security Group.
allowInbound(
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 (e.g., "AzureLoadBalancer", "Internet", "10.0.0.0/8"). Defaults to "*" (any).
tostringoptionalThe destination address prefix. 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: