AzureProvisionableAspireResource<T>
Class abstract net8.0
An Aspire wrapper around an Azure.Provisioning.ProvisionableResource.
namespace Aspire.Hosting.Foundry;
public abstract class AzureProvisionableAspireResource<T> : Aspire.Hosting.Azure.AzureProvisioningResource where T : ProvisionableResource{ // ...}T
: ProvisionableResource AzureProvisioningResource
5 members
Properties1
Section titled PropertiesMethods4
Section titled MethodsAddAsExistingResource(AzureResourceInfrastructure)virtualTFromExisting(string)abstractT Gets the Azure.Provisioning resource from an existing Bicep identifier. Because static methods can't be abstract, this is an instance method.
GetProvisionableResource(AzureResourceInfrastructure, string)staticT? Get the underlying provisionable resource of type T for the given AzureProvisioningResource.
SetName(T, BicepValue<string>)abstract Sets the name of the provisionable resource. This is needed because not all ProvisionableResource classes have a name property with a setter, and we can't put a type bound on T to require it.