# AzurePublicIPAddressResource

- 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/AzurePublicIPAddressResource.cs)
- Inherits: `AzureProvisioningResource`

Represents an Azure Public IP Address resource.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

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

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties such as DNS labels, zones, or IP version.

## Constructors

- [AzurePublicIPAddressResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.network/azurepublicipaddressresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Represents an Azure Public IP Address resource.

## Properties

- [Id](/reference/api/csharp/aspire.hosting.azure.network/azurepublicipaddressresource/properties.md#id) : `BicepOutputReference` `get` -- Gets the "id" output reference from the Azure Public IP Address resource.
- [IpAddress](/reference/api/csharp/aspire.hosting.azure.network/azurepublicipaddressresource/properties.md#ipaddress) : `BicepOutputReference` `get` -- Gets the "ipAddress" output reference containing the allocated IP address for the resource.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.network/azurepublicipaddressresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.

## Methods

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