Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithNetworkSecurityPerimeter

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
func (Resource) WithNetworkSecurityPerimeter(
nsp AzureNetworkSecurityPerimeterResource,
options ...*WithNetworkSecurityPerimeterOptions,
) Resource

Signature

methodWithNetworkSecurityPerimeterbuilder
Associates an Azure PaaS resource with a Network Security Perimeter.
WithNetworkSecurityPerimeter(
nsp AzureNetworkSecurityPerimeterResource,
options ...*WithNetworkSecurityPerimeterOptions,
) Resource
nspAzureNetworkSecurityPerimeterResourceThe Network Security Perimeter to associate with.
options...*WithNetworkSecurityPerimeterOptionsOptional settings, described under Options.

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

AccessMode*NetworkSecurityPerimeterAssociationAccessModeThe access mode for the association. Defaults to Enforced. Use Learning to log violations without blocking traffic.
AssociationName*stringAn optional name for the association. If not provided, defaults to "{resourceName}-assoc".
Resource

A reference to the target resource builder for chaining.

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

Applies to

This method applies to the following types: