# withAzureFrontDoorPrivateLink

- Module: [Aspire.Hosting.Azure.FrontDoor](/reference/api/typescript/aspire.hosting.azure.frontdoor.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Connects an Azure Front Door to a compute environment, such as an Azure Container Apps environment, over Private Link and disables public network access to its apps, so that the apps in the environment are reachable only through the Front Door.

## Definition

```typescript
interface IAzureCdnPrivateLinkTarget {
  // ... omitted for brevity
  withAzureFrontDoorPrivateLink(frontDoor: AzureFrontDoorResource): IAzureCdnPrivateLinkTarget
}
```

## Parameters

- `frontDoor` ([AzureFrontDoorResource](/reference/api/typescript/aspire.hosting.azure.frontdoor/azurefrontdoorresource.md))

## Returns

`IAzureCdnPrivateLinkTarget` `builder`

## Applies to

- [IAzureCdnPrivateLinkTarget](/reference/api/typescript/aspire.hosting.azure.frontdoor/iazurecdnprivatelinktarget.md)
