# AddSeq

- Module: [Aspire.Hosting.Seq](/reference/api/go/aspire.hosting.seq.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: `DistributedApplicationBuilder`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Adds a Seq server resource to the application model with authentication enabled. A container is used for local development.

## Remarks

This version of the package defaults to the tag of the container image.

## Definition

```go
func (DistributedApplicationBuilder) AddSeq(
    name string,
    adminPassword ParameterResource,
    options ...*AddSeqOptions,
) SeqResource
```

## Parameters

- `name` (`string`) -- The name to give the resource.
- `adminPassword` (`ParameterResource`) -- The admin password for Seq. If not provided, authentication will be disabled.
- `options` (`...*AddSeqOptions`) -- optional settings, see [Options](#options)

## Options

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

- `Port` (`*float64`) -- The host port for the Seq server.

## Returns

[`SeqResource`](/reference/api/go/aspire.hosting.seq/seqresource.md)

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

## Applies to

- `DistributedApplicationBuilder`
