Skip to content
Docs Try Aspire
Docs Try

addParameterWithGeneratedValue

Method
📦 Aspire.Hosting v13.3.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addParameterWithGeneratedValue(
name: string,
value: GenerateParameterDefault,
secret?: boolean,
persist?: boolean): ParameterResource;
}

Signature

method addParameterWithGeneratedValue builder
Adds a parameter with a generated default value
addParameterWithGeneratedValue(
name: string,
value: GenerateParameterDefault,
secret?: boolean,
persist?: boolean): ParameterResource
name string
value GenerateParameterDefault
secret boolean optional = False
persist boolean optional = False
ParameterResource

Applies to

This method applies to the following types: