AzurePostgresFlexibleServerResource.AddAsExistingResource 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.
Adds a new ProvisionableResource into infra
. The new resource
represents a reference to the current AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource.
public override Azure.Provisioning.Primitives.ProvisionableResource AddAsExistingResource(Aspire.Hosting.Azure.AzureResourceInfrastructure infra);
override this.AddAsExistingResource : Aspire.Hosting.Azure.AzureResourceInfrastructure -> Azure.Provisioning.Primitives.ProvisionableResource
Public Overrides Function AddAsExistingResource (infra As AzureResourceInfrastructure) As ProvisionableResource
Parameters
The AzureResourceInfrastructure to add the existing resource into.
Returns
A new ProvisionableResource, typically using the FromExisting method on the derived ProvisionableResource class.