Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithParameter

Method
📦 Aspire.Hosting.Azure v17.0.0
func (AzureBicepResource) WithParameter(
name string,
options ...*WithParameterOptions,
) AzureBicepResource

Signature

methodWithParameterbuilder
Adds a Bicep parameter
WithParameter(
name string,
options ...*WithParameterOptions,
) AzureBicepResource
namestring
options...*WithParameterOptionsOptional settings, described under Options.

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

Valueany
AzureBicepResource

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

Applies to

This method applies to the following types: