Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddDevTunnel

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
func (DistributedApplicationBuilder) AddDevTunnel(
name string,
options ...*AddDevTunnelOptions,
) DevTunnelResource

Signature

methodAddDevTunnelbuilder
Adds a Dev Tunnel resource to the distributed application model.
AddDevTunnel(
name string,
options ...*AddDevTunnelOptions,
) DevTunnelResource
namestring
options...*AddDevTunnelOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddDevTunnelOptions argument.

TunnelId*string
AllowAnonymous*bool
Description*string
Labels[]string
DevTunnelResource

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder