Condividi tramite


AzureProvisioningResourceExtensions.AsProvisioningParameter Method

Definition

Overloads

AsProvisioningParameter(IResourceBuilder<ParameterResource>, AzureResourceInfrastructure, String)

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to parameterResourceBuilder.

AsProvisioningParameter(BicepOutputReference, AzureResourceInfrastructure, String)

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to outputReference.

AsProvisioningParameter(IResourceBuilder<ParameterResource>, AzureResourceInfrastructure, String)

Source:
AzureProvisioningResourceExtensions.cs

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to parameterResourceBuilder.

public static Azure.Provisioning.ProvisioningParameter AsProvisioningParameter (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> parameterResourceBuilder, Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure, string? parameterName = default);
static member AsProvisioningParameter : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> * Aspire.Hosting.Azure.AzureResourceInfrastructure * string -> Azure.Provisioning.ProvisioningParameter
<Extension()>
Public Function AsProvisioningParameter (parameterResourceBuilder As IResourceBuilder(Of ParameterResource), infrastructure As AzureResourceInfrastructure, Optional parameterName As String = Nothing) As ProvisioningParameter

Parameters

parameterResourceBuilder
IResourceBuilder<ParameterResource>

The IResourceBuilder<T> that represents a parameter in the Aspire.Hosting.ApplicationModel to get or create a corresponding ProvisioningParameter.

parameterName
String

The name of the parameter to be assigned.

Returns

The corresponding ProvisioningParameter that was found or newly created.

Remarks

This is useful when assigning a BicepValue to the value of an Aspire ParameterResource.

Applies to

AsProvisioningParameter(BicepOutputReference, AzureResourceInfrastructure, String)

Source:
AzureProvisioningResourceExtensions.cs

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to outputReference.

public static Azure.Provisioning.ProvisioningParameter AsProvisioningParameter (this Aspire.Hosting.Azure.BicepOutputReference outputReference, Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure, string? parameterName = default);
static member AsProvisioningParameter : Aspire.Hosting.Azure.BicepOutputReference * Aspire.Hosting.Azure.AzureResourceInfrastructure * string -> Azure.Provisioning.ProvisioningParameter
<Extension()>
Public Function AsProvisioningParameter (outputReference As BicepOutputReference, infrastructure As AzureResourceInfrastructure, Optional parameterName As String = Nothing) As ProvisioningParameter

Parameters

outputReference
BicepOutputReference

The BicepOutputReference that contains the value to use for the ProvisioningParameter.

parameterName
String

The name of the parameter to be assigned.

Returns

The corresponding ProvisioningParameter that was found or newly created.

Remarks

This is useful when assigning a BicepValue to the value of an Aspire BicepOutputReference.

Applies to