Skip to content
DocsTry Aspire
DocsTry

addDevTunnel

Method
📦 Aspire.Hosting.DevTunnels v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDevTunnel(
name: string,
tunnelId?: string,
allowAnonymous?: boolean,
description?: string,
labels?: string[]): DevTunnelResource;
}

Signature

methodaddDevTunnelbuilder
Adds a Dev Tunnel resource to the distributed application model.
addDevTunnel(
name: string,
tunnelId?: string,
allowAnonymous?: boolean,
description?: string,
labels?: string[]): DevTunnelResource
namestring
tunnelIdstringoptional
allowAnonymousbooleanoptional= False
descriptionstringoptional
labelsstring[]optional
DevTunnelResource

Applies to

This method applies to the following types: