Skip to content
Docs Try Aspire

AzureProvisioningResourceExtensions

Class static net8.0
📦 Aspire.Hosting.Azure v13.2.0
Extensions for working with AzureProvisioningResource and related types.
namespace Aspire.Hosting;
public static class AzureProvisioningResourceExtensions
{
// ...
}
AddAzureInfrastructure(IDistributedApplicationBuilder, string, Action<AzureResourceInfrastructure>)extensionats export
IResourceBuilder<AzureProvisioningResource>
Adds an Azure provisioning resource to the application model.
AsKeyVaultSecret(IAzureKeyVaultSecretReference, AzureResourceInfrastructure)extensionats ignored
KeyVaultSecret
Gets or creates a KeyVault.KeyVaultSecret resource in the specified AzureResourceInfrastructure for the given IAzureKeyVaultSecretReference.

If the referenced Key Vault or secret does not already exist in the infrastructure, they will be created and added. This allows referencing secrets that are provisioned outside of the current deployment.

AsProvisioningParameter(IResourceBuilder<ParameterResource>, AzureResourceInfrastructure, string?)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to parameterResourceBuilder.
AsProvisioningParameter(IManifestExpressionProvider, AzureResourceInfrastructure, string?, bool?)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to the given manifestExpressionProvider.
AsProvisioningParameter(ParameterResource, AzureResourceInfrastructure, string?)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to parameterResource.
AsProvisioningParameter(BicepOutputReference, AzureResourceInfrastructure, string?)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to outputReference.
AsProvisioningParameter(EndpointReference, AzureResourceInfrastructure, string)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to endpointReference.
AsProvisioningParameter(ReferenceExpression, AzureResourceInfrastructure, string)extensionats ignored
ProvisioningParameter
Creates a new Provisioning.ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with the same name already exists, that corresponds to expression.
ConfigureInfrastructure(IResourceBuilder<T>, Action<AzureResourceInfrastructure>)extensionats export
IResourceBuilder<T>
Configures the Azure provisioning resource Provisioning.Infrastructure.
View all methods