AzureProvisioningResourceExtensions.AsProvisioningParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsProvisioningParameter(IResourceBuilder<ParameterResource>, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(BicepOutputReference, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
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
.
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.
- infrastructure
- AzureResourceInfrastructure
The AzureResourceInfrastructure that contains 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 ParameterResource.
Applies to
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
.
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.
- infrastructure
- AzureResourceInfrastructure
The AzureResourceInfrastructure that contains 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.