# AzureFrontDoorResource Methods

- Package: [Aspire.Hosting.Azure.FrontDoor](/reference/api/csharp/aspire.hosting.azure.frontdoor.md)
- Type: [AzureFrontDoorResource](/reference/api/csharp/aspire.hosting.azure.frontdoor/azurefrontdoorresource.md)
- Kind: `Methods`
- Members: `1`

Represents an Azure Front Door resource in the distributed application model.

## GetEndpointUrl(string)

- Name: `GetEndpointUrl(string)`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Azure.FrontDoor/AzureFrontDoorResource.cs#L32-L33)

Gets the endpoint URL output reference for a specific origin by its resource name.

```csharp
public class AzureFrontDoorResource
{
    public BicepOutputReference GetEndpointUrl(
        string originResourceName)
    {
        // ...
    }
}
```

## Parameters

- `originResourceName` (`string`)
  The name of the origin resource (as specified in the Aspire application model).

## Returns

`BicepOutputReference` -- A `Azure.BicepOutputReference` for the Front Door endpoint URL serving that origin.

## Remarks

The output name follows the pattern `{normalizedOriginName}_endpointUrl`. For example, if the origin resource is named "api", the output is `api_endpointUrl`.
