AzureSubnetResource.DenyInbound

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
type AzureSubnetResource interface {
// ... omitted for brevity
DenyInbound(options ...*DenyInboundOptions) AzureSubnetResource
}

Signature

methodDenyInboundbuilder
Adds an inbound deny rule to the subnet's Network Security Group.
DenyInbound(options ...*DenyInboundOptions) AzureSubnetResource
options...*DenyInboundOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*DenyInboundOptions argument.

Port*stringThe destination port range (e.g., "443", "80-443"). Defaults to "*" (any).
From*stringThe source address prefix (e.g., "Internet", "VirtualNetwork", "10.0.0.0/8"). Defaults to "*" (any).
To*stringThe destination address prefix. Defaults to "*" (any).
Protocol*SecurityRuleProtocolThe network protocol. Defaults to Asterisk (any).
Priority*float64The rule priority (100-4096). If not specified, auto-increments from 100 by 100.
Name*stringThe rule name. If not specified, auto-generated from parameters.
AzureSubnetResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: