Condividi tramite


AzureBicepResourceExtensions.WithParameter Method

Definition

Overloads

WithParameter<T>(IResourceBuilder<T>, String, Func<Object>)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, IEnumerable<String>)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, BicepOutputReference)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, ReferenceExpression)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, IResourceBuilder<IResourceWithConnectionString>)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, IResourceBuilder<ParameterResource>)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, String)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, EndpointReference)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, ParameterResource)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, JsonNode)

Adds a parameter to the bicep template.

WithParameter<T>(IResourceBuilder<T>, String, Func<Object>)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Func<object?> valueCallback) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Func<obj> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, valueCallback As Func(Of Object)) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

valueCallback
Func<Object>

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, IEnumerable<String>)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, System.Collections.Generic.IEnumerable<string> value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * seq<string> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As IEnumerable(Of String)) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
IEnumerable<String>

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, BicepOutputReference)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.Azure.BicepOutputReference value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.Azure.BicepOutputReference -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As BicepOutputReference) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
BicepOutputReference

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, ReferenceExpression)

Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.ApplicationModel.ReferenceExpression value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.ApplicationModel.ReferenceExpression -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As ReferenceExpression) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
ReferenceExpression

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, IResourceBuilder<IResourceWithConnectionString>)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.IResourceWithConnectionString> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As IResourceBuilder(Of IResourceWithConnectionString)) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
IResourceBuilder<IResourceWithConnectionString>

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, IResourceBuilder<ParameterResource>)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As IResourceBuilder(Of ParameterResource)) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
IResourceBuilder<ParameterResource>

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, String)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, string value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As String) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
String

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, EndpointReference)

Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.ApplicationModel.EndpointReference value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.ApplicationModel.EndpointReference -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As EndpointReference) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
EndpointReference

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, ParameterResource)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, Aspire.Hosting.ApplicationModel.ParameterResource value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As ParameterResource) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
ParameterResource

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to

WithParameter<T>(IResourceBuilder<T>, String, JsonNode)

Source:
AzureBicepResourceExtensions.cs
Source:
AzureBicepResourceExtensions.cs

Adds a parameter to the bicep template.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithParameter<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string name, System.Text.Json.Nodes.JsonNode value) where T : Aspire.Hosting.Azure.AzureBicepResource;
static member WithParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> * string * System.Text.Json.Nodes.JsonNode -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)> (requires 'T :> Aspire.Hosting.Azure.AzureBicepResource)
<Extension()>
Public Function WithParameter(Of T As AzureBicepResource) (builder As IResourceBuilder(Of T), name As String, value As JsonNode) As IResourceBuilder(Of T)

Type Parameters

Parameters

builder
IResourceBuilder<T>

The resource builder.

name
String

The name of the input.

value
JsonNode

The value of the parameter.

Returns

An IResourceBuilder<T>.

Applies to