Skip to content
Docs Try Aspire

addDevTunnel

Function
📦 Aspire.Hosting.Maui v13.2.0-preview.1.26170.3
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDevTunnel(
name: string,
tunnelId?: string,
allowAnonymous?: boolean,
description?: string,
labels?: string[]): DevTunnelResource;
}

Signature

method addDevTunnel builder
Adds a Dev Tunnel resource to the distributed application model.
addDevTunnel(
name: string,
tunnelId?: string,
allowAnonymous?: boolean,
description?: string,
labels?: string[]): DevTunnelResource
name string
tunnelId string optional
allowAnonymous boolean optional = False
description string optional
labels string[] optional
DevTunnelResource

Applies to

This function is an extension method on the following types: