Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddNatGateway

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
func (DistributedApplicationBuilder) AddNatGateway(name string) AzureNatGatewayResource

Signature

methodAddNatGatewaybuilder
Adds an Azure NAT Gateway resource to the application model.
AddNatGateway(name string) AzureNatGatewayResource
namestringThe name of the Azure NAT Gateway resource.
AzureNatGatewayResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder