# AzureNatGatewayResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzureNatGatewayResource.cs)
- Inherits: `AzureProvisioningResource`

Represents an Azure NAT Gateway resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureNatGatewayResource
    : Aspire.Hosting.Azure.AzureProvisioningResource
{
    // ...
}
```

## Remarks

A NAT Gateway provides outbound internet connectivity for resources in a virtual network subnet. Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.

## Constructors

- [AzureNatGatewayResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.network/azurenatgatewayresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Represents an Azure NAT Gateway resource.

## Properties

- [Id](/reference/api/csharp/aspire.hosting.azure.network/azurenatgatewayresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the "id" output reference from the Azure NAT Gateway resource.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.network/azurenatgatewayresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.network/azurenatgatewayresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
