# AddZitadel

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

Adds a Zitadel container resource

## Definition

```go
func (DistributedApplicationBuilder) AddZitadel(
    name string,
    options ...*AddZitadelOptions,
) ZitadelResource
```

## Parameters

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

## Options

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

- `Port` (`*float64`) -- The host port used when launching the container. If `null` a random port will be assigned
- `Username` (`*ParameterResource`) -- An optional parameter to set a username for the admin account, if `null` will auto generate one.
- `Password` (`*ParameterResource`) -- An optional parameter to set a password for the admin account, if `null` will auto generate one.
- `MasterKey` (`*ParameterResource`) -- An optional parameter to set the masterkey, if `null` will auto generate one.

## Returns

[`ZitadelResource`](/reference/api/go/communitytoolkit.aspire.hosting.zitadel/zitadelresource.md)

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

## Applies to

- `DistributedApplicationBuilder`
