Skip to content
DocsTry Aspire
DocsTry

allowInbound

Method
📦 Aspire.Hosting.Azure.Network v13.4.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: