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(EndpointReference, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(IResourceBuilder<ParameterResource>, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(ParameterResource, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(ReferenceExpression, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(BicepOutputReference, AzureResourceInfrastructure, String) |
Creates a new ProvisioningParameter in |
AsProvisioningParameter(EndpointReference, 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 endpointReference
.
public static Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this Aspire.Hosting.ApplicationModel.EndpointReference endpointReference, Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure, string parameterName);
static member AsProvisioningParameter : Aspire.Hosting.ApplicationModel.EndpointReference * Aspire.Hosting.Azure.AzureResourceInfrastructure * string -> Azure.Provisioning.ProvisioningParameter
<Extension()>
Public Function AsProvisioningParameter (endpointReference As EndpointReference, infrastructure As AzureResourceInfrastructure, parameterName As String) As ProvisioningParameter
Parameters
- endpointReference
- EndpointReference
The EndpointReference to use for the value of 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 EndpointReference.
Applies to
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(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 parameterResource
.
public static Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this Aspire.Hosting.ApplicationModel.ParameterResource parameterResource, Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure, string? parameterName = default);
static member AsProvisioningParameter : Aspire.Hosting.ApplicationModel.ParameterResource * Aspire.Hosting.Azure.AzureResourceInfrastructure * string -> Azure.Provisioning.ProvisioningParameter
<Extension()>
Public Function AsProvisioningParameter (parameterResource As ParameterResource, infrastructure As AzureResourceInfrastructure, Optional parameterName As String = Nothing) As ProvisioningParameter
Parameters
- parameterResource
- ParameterResource
The ParameterResource 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(ReferenceExpression, 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 expression
.
public static Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this Aspire.Hosting.ApplicationModel.ReferenceExpression expression, Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure, string parameterName);
static member AsProvisioningParameter : Aspire.Hosting.ApplicationModel.ReferenceExpression * Aspire.Hosting.Azure.AzureResourceInfrastructure * string -> Azure.Provisioning.ProvisioningParameter
<Extension()>
Public Function AsProvisioningParameter (expression As ReferenceExpression, infrastructure As AzureResourceInfrastructure, parameterName As String) As ProvisioningParameter
Parameters
- expression
- ReferenceExpression
The ReferenceExpression that represents 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 EndpointReference.
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.