Share via


AzureAppServiceEnvironmentExtensions.WithDashboard Method

Definition

Configures whether the Aspire dashboard should be included in the Azure App Service environment.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> WithDashboard(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> builder, bool enable = true);
static member WithDashboard : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource> * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureAppServiceEnvironmentResource>
<Extension()>
Public Function WithDashboard (builder As IResourceBuilder(Of AzureAppServiceEnvironmentResource), Optional enable As Boolean = true) As IResourceBuilder(Of AzureAppServiceEnvironmentResource)

Parameters

builder
IResourceBuilder<AzureAppServiceEnvironmentResource>

The AzureAppServiceEnvironmentResource to configure.

enable
Boolean

Whether to include the Aspire dashboard. Default is true.

Returns

IResourceBuilder<T>

Applies to