Skip to content
Docs Try Aspire

addDevTunnel

Function
📦 Aspire.Hosting.DevTunnels v13.2.0-preview.1.26159.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDevTunnel(
name: string,
tunnelId?: string): DevTunnelResource;
}

Signature

method addDevTunnel builder
Adds a Dev Tunnel resource to the distributed application model.
addDevTunnel(
name: string,
tunnelId?: string): DevTunnelResource
name string
tunnelId string optional
DevTunnelResource

Applies to

This function is an extension method on the following types: