Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

allowInbound

Method
📦 Aspire.Hosting.Azure.Network v13.6.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
portstringoptional
fromstringoptional
tostringoptional
protocolSecurityRuleProtocoloptional
prioritynumberoptional
namestringoptional
AzureSubnetResource

Applies to

This method applies to the following types: