# WithDashboard

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/go/aspire.hosting.azure.appservice.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`AzureAppServiceEnvironmentResource`](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

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

## Definition

```go
func (AzureAppServiceEnvironmentResource) WithDashboard(options ...*WithDashboardOptions) AzureAppServiceEnvironmentResource
```

## Parameters

- `options` (`...*WithDashboardOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDashboardOptions` argument.

- `Enable` (`*bool`) -- Whether to include the Aspire dashboard. Default is true.

## Returns

[`AzureAppServiceEnvironmentResource`](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md) -- The resource builder.

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

## Applies to

- [`AzureAppServiceEnvironmentResource`](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
