Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddKeycloak

Method
📦 Aspire.Hosting.Keycloak v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) AddKeycloak(
name string,
options ...*AddKeycloakOptions,
) KeycloakResource

Signature

methodAddKeycloakbuilder
Adds a Keycloak container to the application model.
AddKeycloak(
name string,
options ...*AddKeycloakOptions,
) KeycloakResource
namestringThe name of the resource.
options...*AddKeycloakOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddKeycloakOptions argument.

Port*float64The host port that the underlying container is bound to when running locally.
AdminUsername*ParameterResourceThe parameter used as the admin for the Keycloak resource. If null a default value will be used.
AdminPassword*ParameterResourceThe parameter used as the admin password for the Keycloak resource. If null a default password will be used.
KeycloakResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder