# AzureAppServiceEnvironmentResource.WithDashboard

- Module: [Aspire.Hosting.Azure.AppService](/reference/api/go/aspire.hosting.azure.appservice.md)
- Defined on: [AzureAppServiceEnvironmentResource](/reference/api/go/aspire.hosting.azure.appservice/azureappserviceenvironmentresource.md)
- Version: `17.0.0`
- Kind: `method`

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

## Definition

```go
type AzureAppServiceEnvironmentResource interface {
    // ... omitted for brevity
    WithDashboard(options ...*WithDashboardOptions) AzureAppServiceEnvironmentResource
}
```

## Signature

```go
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()`.

## Defined on

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