Skip to content
DocsTry Aspire
DocsTry

DevTunnelOptions Properties

ClassProperties4 members
Options for the dev tunnel resource. Controls the creation and access settings of the underyling dev tunnel.
Whether to allow anonymous access to this dev tunnel. If false, authentication is required. Defaults to false.
public bool AllowAnonymous { get; set; }
DescriptionSection titled Descriptionnullablestring?
Optional description for the tunnel.
public string? Description { get; set; }
LabelsSection titled LabelsnullableList<string>
Optional labels to attach to the tunnel.
public List<string>? Labels { get; set; }
Optional region to create the dev tunnel in. If not specified, the region will be selected automatically based on the ping.
public DevTunnelRegion? Region { get; set; }
Set this value, for example to
DevTunnelRegion.NorthEurope
, when an existing tunnel must be reused in a specific service region.