Skip to content
DocsTry Aspire
DocsTry

AzureApplicationInsightsResource Methods

ClassMethods1 member
A resource that represents an Azure Application Insights resource.
AddAsExistingResource(AzureResourceInfrastructure)Section titled AddAsExistingResource(AzureResourceInfrastructure)overrideProvisionableResource
Adds a new Primitives.ProvisionableResource into infra. The new resource represents a reference to the current Azure.AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource.
public class AzureApplicationInsightsResource
{
public override ProvisionableResource AddAsExistingResource(
AzureResourceInfrastructure infra)
{
// ...
}
}
infraAzureResourceInfrastructureThe Azure.AzureResourceInfrastructure to add the existing resource into.
ProvisionableResourceA new Primitives.ProvisionableResource, typically using the FromExisting method on the derived Primitives.ProvisionableResource class.