AzureNatGatewayExtensions
Class static net8.0
Provides extension methods for adding Azure NAT Gateway resources to the application model.
namespace Aspire.Hosting;
public static class AzureNatGatewayExtensions{ // ...}Methods2
Section titled MethodsAddNatGateway(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<AzureNatGatewayResource> Adds an Azure NAT Gateway resource to the application model.
WithPublicIPAddress(IResourceBuilder<AzureNatGatewayResource>, IResourceBuilder<AzurePublicIPAddressResource>)extensionats exportIResourceBuilder<AzureNatGatewayResource> Associates an explicit Public IP Address resource with the NAT Gateway.