# AzurePrivateEndpointResource Properties

- Package: [Aspire.Hosting.Azure.Network](/reference/api/csharp/aspire.hosting.azure.network.md)
- Type: [AzurePrivateEndpointResource](/reference/api/csharp/aspire.hosting.azure.network/azureprivateendpointresource.md)
- Kind: `Properties`
- Members: `4`

Represents an Azure Private Endpoint resource.

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointResource.cs#L26)

Gets the "id" output reference from the Azure Private Endpoint resource.

```csharp
public BicepOutputReference Id { get; }
```

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointResource.cs#L31)

Gets the "name" output reference for the resource.

```csharp
public BicepOutputReference NameOutputReference { get; }
```

## Subnet

- Name: `Subnet`
- Modifiers: `get`
- Returns: [AzureSubnetResource](/reference/api/csharp/aspire.hosting.azure.network/azuresubnetresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointResource.cs#L36)

Gets the subnet where the private endpoint will be created.

```csharp
public AzureSubnetResource Subnet { get; }
```

## Target

- Name: `Target`
- Modifiers: `get`
- Returns: `IAzurePrivateEndpointTarget`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Network/AzurePrivateEndpointResource.cs#L41)

Gets the target Azure resource to connect via private link.

```csharp
public IAzurePrivateEndpointTarget Target { get; }
```
