# AddUmami

- Module: [CommunityToolkit.Aspire.Hosting.Umami](/reference/api/go/communitytoolkit.aspire.hosting.umami.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: `DistributedApplicationBuilder`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Adds a Umami resource to the application model. A container is used for local development. The default image is and the tag is .

## Remarks

Add a Umami container to the application model and reference it in a .NET project.
```
var builder = DistributedApplication.CreateBuilder(args);
var db = builder.AddPostgres("postgres")
.AddDatabase("db");
var umami = builder.AddUmami("umami")
.WithPostgreSQL(db);
builder.Build().Run();
```

## Definition

```go
func (DistributedApplicationBuilder) AddUmami(
    name string,
    options ...*AddUmamiOptions,
) UmamiResource
```

## Parameters

- `name` (`string`) -- The name of the resource. This name will be used as the connection string name when referenced in a dependency.
- `options` (`...*AddUmamiOptions`) -- optional settings, see [Options](#options)

## Options

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

- `Secret` (`*ParameterResource`) -- The parameter used to provide the app secret for the Umami resource.
- `Port` (`*float64`) -- The host port for the Umami app.

## Returns

[`UmamiResource`](/reference/api/go/communitytoolkit.aspire.hosting.umami/umamiresource.md) -- A reference to the `IResourceBuilder`.

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

## Applies to

- `DistributedApplicationBuilder`
