Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithOrigin

Method
📦 Aspire.Hosting.Azure.FrontDoor v17.0.0-preview.1.26565.2
func (AzureFrontDoorResource) WithOrigin(resource IComputeResource) AzureFrontDoorResource

Signature

methodWithOriginbuilder
Adds an origin (backend) to the Azure Front Door resource. Each origin gets its own Front Door endpoint with a distinct *.azurefd.net hostname, its own origin group, and a default route.
WithOrigin(resource IComputeResource) AzureFrontDoorResource
resourceIComputeResourceThe resource to add as an origin (e.g., a project, container, or other compute resource with endpoints).
AzureFrontDoorResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: