# IAzurePrivateEndpointTarget Methods

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [IAzurePrivateEndpointTarget](/reference/api/csharp/aspire.hosting.azure/iazureprivateendpointtarget.md)
- Kind: `Methods`
- Members: `2`

Represents an Azure resource that can be connected to via a private endpoint.

## GetPrivateDnsZoneNames

- Name: `GetPrivateDnsZoneNames`
- Modifiers: `abstract`
- Returns: `IEnumerable<string>`

Gets the private DNS zone names for this resource type (e.g., "privatelink.blob.core.windows.net" for blob storage).

```csharp
public interface IAzurePrivateEndpointTarget
{
    public abstract IEnumerable<string> GetPrivateDnsZoneNames()
    {
        // ...
    }
}
```

## Returns

`IEnumerable<string>` -- A collection of private DNS zone names for the private endpoint.

## GetPrivateLinkGroupIds

- Name: `GetPrivateLinkGroupIds`
- Modifiers: `abstract`
- Returns: `IEnumerable<string>`

Gets the group IDs for the private link service connection (e.g., "blob", "file" for storage).

```csharp
public interface IAzurePrivateEndpointTarget
{
    public abstract IEnumerable<string> GetPrivateLinkGroupIds()
    {
        // ...
    }
}
```

## Returns

`IEnumerable<string>` -- A collection of group IDs for the private link service connection.
