# IAzurePrivateEndpointTargetNotification

- Kind: `interface`
- 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/IAzurePrivateEndpointTargetNotification.cs)
- Implements: `IResource`, `IAzurePrivateEndpointTarget`

An optional interface that can be implemented by resources that are targets for Azure private endpoints, to receive a notification when a private endpoint is created for them.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public interface IAzurePrivateEndpointTargetNotification
    : Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.Azure.IAzurePrivateEndpointTarget
{
    // ...
}
```

## Methods

- [OnPrivateEndpointCreated(IResourceBuilder<AzurePrivateEndpointResource>)](/reference/api/csharp/aspire.hosting.azure.network/iazureprivateendpointtargetnotification/methods.md#onprivateendpointcreated-iresourcebuilder-azureprivateendpointresource) `abstract` -- Handles the event that occurs when a new Azure private endpoint resource is created.
