22 instantiations of AzureResourceInfrastructure
Aspire.Hosting.Azure (1)
AzureProvisioningResource.cs (1)
81var infrastructure = new AzureResourceInfrastructure(this, Name);
Aspire.Hosting.Azure.Tests (21)
AzureAppConfigurationExtensionsTests.cs (1)
101var infrastructure = new AzureResourceInfrastructure(appConfigurationResource, "test-app-config");
AzureAppServiceEnvironmentExtensionsTests.cs (1)
20var infrastructure = new AzureResourceInfrastructure(appServiceEnvironmentResource, "test-app-service-env");
AzureContainerAppEnvironmentExtensionsTests.cs (1)
23var infrastructure = new AzureResourceInfrastructure(containerAppEnvironmentResource, "test-container-app-env");
AzureContainerRegistryTests.cs (1)
102var infrastructure = new AzureResourceInfrastructure(containerRegistryResource, "test-acr");
AzureCosmosDBExtensionsTests.cs (1)
577var infrastructure = new AzureResourceInfrastructure(cosmosDBResource, "test-cosmosdb");
AzureEventHubsExtensionsTests.cs (1)
660var infrastructure = new AzureResourceInfrastructure(eventHubsResource, "test-eventhubs");
AzureKeyVaultTests.cs (1)
359var infrastructure = new AzureResourceInfrastructure(keyVaultResource, "test-keyvault");
AzureKustoExtensionsTests.cs (1)
42var infrastructure = new AzureResourceInfrastructure(kustoResource, "test-kusto");
AzureLogAnalyticsWorkspaceExtensionsTests.cs (1)
37var infrastructure = new AzureResourceInfrastructure(logAnalyticsWorkspaceResource, "test-log-workspace");
AzureManagedRedisExtensionsTests.cs (1)
194var infrastructure = new AzureResourceInfrastructure(redisResource, "test-redis");
AzureOpenAIExtensionsTests.cs (1)
240var infrastructure = new AzureResourceInfrastructure(openAIResource, "test-openai");
AzurePostgresExtensionsTests.cs (1)
621var infrastructure = new AzureResourceInfrastructure(postgresResource, "test-postgres");
AzureRedisExtensionsTests.cs (1)
273var infrastructure = new AzureResourceInfrastructure(redisResource, "test-redis");
AzureSearchExtensionsTests.cs (1)
104var infrastructure = new AzureResourceInfrastructure(searchResource, "test-search");
AzureServiceBusExtensionsTests.cs (1)
932var infrastructure = new AzureResourceInfrastructure(serviceBusResource, "test-servicebus");
AzureSignalRExtensionsTests.cs (1)
74var infrastructure = new AzureResourceInfrastructure(signalRResource, "test-signalr");
AzureSqlExtensionsTests.cs (1)
305var infrastructure = new AzureResourceInfrastructure(sqlResource, "test-sql");
AzureStorageExtensionsTests.cs (1)
1014var infrastructure = new AzureResourceInfrastructure(storageResource, "test-storage");
AzureUserAssignedIdentityTests.cs (1)
351var infrastructure = new AzureResourceInfrastructure(userAssignedIdentityResource, "test-identity");
AzureWebPubSubExtensionsTests.cs (1)
358var infrastructure = new AzureResourceInfrastructure(webPubSubResource, "test-webpubsub");
FoundryExtensionsTests.cs (1)
294var infrastructure = new AzureResourceInfrastructure(aiFoundryResource, "test-foundry");
297 references to AzureResourceInfrastructure
Aspire.Hosting.Azure (39)
AzureProvisioningResource.cs (12)
18public class AzureProvisioningResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 24public Action<AzureResourceInfrastructure> ConfigureInfrastructure { get; internal set; } = configureInfrastructure ?? throw new ArgumentNullException(nameof(configureInfrastructure)); 36/// <param name="infra">The <see cref="AzureResourceInfrastructure"/> to add the existing resource into.</param> 38public virtual ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) => throw new NotImplementedException(); 46var infra = roleAssignmentContext.Infrastructure; 81var infrastructure = new AzureResourceInfrastructure(this, Name); 121/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that will contain the <see cref="ProvisionableResource"/>.</param> 125public static T CreateExistingOrNewProvisionableResource<T>(AzureResourceInfrastructure infrastructure, Func<string, BicepValue<string>, T> createExisting, Func<AzureResourceInfrastructure, T> createNew) 167public static bool TryApplyExistingResourceAnnotation(IAzureResource aspireResource, AzureResourceInfrastructure infra, ProvisionableResource provisionableResource) 217private static BicepValue<string> CreateScopeExpression(AzureBicepResourceScope scope, AzureResourceInfrastructure infra) 269private void EnsureParametersAlign(AzureResourceInfrastructure infrastructure)
AzureProvisioningResourceExtensions.cs (18)
25public static IResourceBuilder<AzureProvisioningResource> AddAzureInfrastructure(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<AzureResourceInfrastructure> configureInfrastructure) 42public static IResourceBuilder<T> ConfigureInfrastructure<T>(this IResourceBuilder<T> builder, Action<AzureResourceInfrastructure> configure) 53/// Gets or creates a <see cref="KeyVaultSecret"/> resource in the specified <see cref="AzureResourceInfrastructure"/> 61/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> in which to locate or add the <see cref="KeyVaultSecret"/>.</param> 67public static KeyVaultSecret AsKeyVaultSecret(this IAzureKeyVaultSecretReference secretReference, AzureResourceInfrastructure infrastructure) 118/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 129public static ProvisioningParameter AsProvisioningParameter(this IResourceBuilder<ParameterResource> parameterResourceBuilder, AzureResourceInfrastructure infrastructure, string? parameterName = null) 142/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 150public static ProvisioningParameter AsProvisioningParameter(this IManifestExpressionProvider manifestExpressionProvider, AzureResourceInfrastructure infrastructure, string? parameterName = null, bool? isSecure = null) 170/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 181public static ProvisioningParameter AsProvisioningParameter(this ParameterResource parameterResource, AzureResourceInfrastructure infrastructure, string? parameterName = null) 200/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 211public static ProvisioningParameter AsProvisioningParameter(this BicepOutputReference outputReference, AzureResourceInfrastructure infrastructure, string? parameterName = null) 230/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 239public static ProvisioningParameter AsProvisioningParameter(this EndpointReference endpointReference, AzureResourceInfrastructure infrastructure, string parameterName) 257/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 266public static ProvisioningParameter AsProvisioningParameter(this ReferenceExpression expression, AzureResourceInfrastructure infrastructure, string parameterName) 277private static ProvisioningParameter GetOrAddParameter(AzureResourceInfrastructure infrastructure, string parameterName, bool? isSecure = null)
AzureResourceInfrastructure.cs (1)
31/// The Aspire <see cref="AzureProvisioningResource"/> resource that this <see cref="AzureResourceInfrastructure"/> represents.
AzureResourcePreparer.cs (4)
436AzureResourceInfrastructure infra, 457AzureResourceInfrastructure infrastructure, 464public AzureResourceInfrastructure Infrastructure { get; } = infrastructure; 592AzureResourceInfrastructure infra,
AzureRoleAssignmentResource.cs (1)
29Action<AzureResourceInfrastructure> configureInfrastructure)
AzureUserAssignedIdentityResource.cs (2)
41private static void ConfigureAppIdentityInfrastructure(AzureResourceInfrastructure infrastructure) 67public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
IAddRoleAssignmentsContext.cs (1)
17public AzureResourceInfrastructure Infrastructure { get; }
Aspire.Hosting.Azure.AppConfiguration (3)
AzureAppConfigurationExtensions.cs (1)
44var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureAppConfigurationResource.cs (2)
17public class AzureAppConfigurationResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 52public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.AppContainers (30)
AzureContainerAppContainerExtensions.cs (1)
35public static IResourceBuilder<T> PublishAsAzureContainerApp<T>(this IResourceBuilder<T> container, Action<AzureResourceInfrastructure, ContainerApp> configure)
AzureContainerAppCustomizationAnnotation.cs (2)
12public sealed class AzureContainerAppCustomizationAnnotation(Action<AzureResourceInfrastructure, ContainerApp> configure) 18public Action<AzureResourceInfrastructure, ContainerApp> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
AzureContainerAppEnvironmentResource.cs (2)
37public AzureContainerAppEnvironmentResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 416public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureContainerAppExecutableExtensions.cs (1)
35public static IResourceBuilder<T> PublishAsAzureContainerApp<T>(this IResourceBuilder<T> executable, Action<AzureResourceInfrastructure, ContainerApp> configure)
AzureContainerAppExtensions.cs (3)
759AzureResourceInfrastructure infra, 861AzureResourceInfrastructure infra, 1175var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureContainerAppJobCustomizationAnnotation.cs (2)
12public sealed class AzureContainerAppJobCustomizationAnnotation(Action<AzureResourceInfrastructure, ContainerAppJob> configure) 18public Action<AzureResourceInfrastructure, ContainerAppJob> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
AzureContainerAppProjectExtensions.cs (1)
36public static IResourceBuilder<T> PublishAsAzureContainerApp<T>(this IResourceBuilder<T> project, Action<AzureResourceInfrastructure, ContainerApp> configure)
AzureContainerAppResource.cs (1)
25public AzureContainerAppResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, IResource targetResource)
BaseContainerAppContext.cs (3)
42protected AzureResourceInfrastructure? _infrastructure; 43public AzureResourceInfrastructure Infra => _infrastructure ?? throw new InvalidOperationException("Infra is not set"); 45public abstract void BuildContainerApp(AzureResourceInfrastructure infra);
ContainerAppContext.cs (1)
21public override void BuildContainerApp(AzureResourceInfrastructure infra)
ContainerAppExtensions.cs (9)
23/// <exception cref="ArgumentException">Throws if the container app resource is not parented to a <see cref="AzureResourceInfrastructure"/>.</exception> 28/// in conjunction with the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/> 42/// method via the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/> 64if (app.ParentInfrastructure is not AzureResourceInfrastructure module) 153public static IResourceBuilder<T> PublishAsAzureContainerAppJob<T>(this IResourceBuilder<T> resource, Action<AzureResourceInfrastructure, ContainerAppJob> configure) 208Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null) 227/// This method is a convenience wrapper around <see cref="PublishAsAzureContainerAppJob{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerAppJob})"/> 239public static IResourceBuilder<T> PublishAsScheduledAzureContainerAppJob<T>(this IResourceBuilder<T> resource, string cronExpression, Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null) 261Action<AzureResourceInfrastructure, ContainerAppJob>? configure = null)
ContainerAppJobContext.cs (1)
15public override void BuildContainerApp(AzureResourceInfrastructure infra)
src\Shared\ContainerRegistryInfrastructure.cs (3)
18internal static void ConfigureContainerRegistry(AzureResourceInfrastructure infrastructure) 30AzureResourceInfrastructure infrastructure, 31Action<ContainerRegistryService, AzureResourceInfrastructure>? configureNewRegistry)
Aspire.Hosting.Azure.ApplicationInsights (3)
AzureApplicationInsightsExtensions.cs (1)
47var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureApplicationInsightsResource.cs (2)
15public class AzureApplicationInsightsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 39public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.AppService (21)
AzureAppServiceComputeResourceExtensions.cs (2)
36Action<AzureResourceInfrastructure, WebSite>? configure = null, 37Action<AzureResourceInfrastructure, WebSiteSlot>? configureSlot = null)
AzureAppServiceEnvironmentResource.cs (3)
45public AzureAppServiceEnvironmentResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 377internal BicepValue<ResourceIdentifier>? GetDelegatedSubnetId(AzureResourceInfrastructure infra) 544public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureAppServiceEnvironmentUtility.cs (1)
24public static WebSite AddDashboard(AzureResourceInfrastructure infra,
AzureAppServiceWebsiteContext.cs (7)
34private AzureResourceInfrastructure? _infrastructure; 35public AzureResourceInfrastructure Infra => _infrastructure ?? throw new InvalidOperationException("Infra is not set"); 324public void BuildWebSite(AzureResourceInfrastructure infra) 366AzureResourceInfrastructure infra, 701AzureResourceInfrastructure infra, 770AzureResourceInfrastructure infra, 832private static void AddWebSiteNetworkConfig(AzureResourceInfrastructure infra, WebSite webSite)
AzureAppServiceWebsiteCustomizationAnnotation.cs (2)
12public sealed class AzureAppServiceWebsiteCustomizationAnnotation(Action<AzureResourceInfrastructure, WebSite> configure) 18public Action<AzureResourceInfrastructure, WebSite> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
AzureAppServiceWebSiteResource.cs (1)
25public AzureAppServiceWebSiteResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, IResource targetResource)
AzureAppServiceWebsiteSlotCustomizationAnnotation.cs (2)
13public sealed class AzureAppServiceWebsiteSlotCustomizationAnnotation(Action<AzureResourceInfrastructure, WebSiteSlot> configure) 19public Action<AzureResourceInfrastructure, WebSiteSlot> Configure { get; } = configure ?? throw new ArgumentNullException(nameof(configure));
src\Shared\ContainerRegistryInfrastructure.cs (3)
18internal static void ConfigureContainerRegistry(AzureResourceInfrastructure infrastructure) 30AzureResourceInfrastructure infrastructure, 31Action<ContainerRegistryService, AzureResourceInfrastructure>? configureNewRegistry)
Aspire.Hosting.Azure.CognitiveServices (4)
AzureOpenAIExtensions.cs (2)
43var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 125private static CognitiveServicesAccountDeployment CreateDeployment(AzureResourceInfrastructure infrastructure, CognitiveServicesAccount cogServicesAccount, CognitiveServicesAccountDeployment? dependency, AzureOpenAIDeployment deployment)
AzureOpenAIResource.cs (2)
18public class AzureOpenAIResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 86public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.ContainerRegistry (5)
AzureContainerRegistryResource.cs (2)
25public AzureContainerRegistryResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 72public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
src\Shared\ContainerRegistryInfrastructure.cs (3)
18internal static void ConfigureContainerRegistry(AzureResourceInfrastructure infrastructure) 30AzureResourceInfrastructure infrastructure, 31Action<ContainerRegistryService, AzureResourceInfrastructure>? configureNewRegistry)
Aspire.Hosting.Azure.CosmosDB (7)
AzureCosmosDBContainerResource.cs (1)
16/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBDatabaseResource.cs (1)
15/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBExtensions.cs (2)
613private static void ConfigureCosmosDBInfrastructure(AzureResourceInfrastructure infrastructure) 777internal static void AddContributorRoleAssignment(AzureResourceInfrastructure infra, CosmosDBAccount cosmosAccount, BicepValue<Guid> principalId)
AzureCosmosDBResource.cs (3)
19public class AzureCosmosDBResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 167public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 200var infra = roleAssignmentContext.Infrastructure;
Aspire.Hosting.Azure.EventHubs (5)
AzureEventHubConsumerGroupResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubsExtensions.cs (1)
52var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureEventHubsResource.cs (2)
18public class AzureEventHubsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 172public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.FrontDoor (2)
AzureFrontDoorExtensions.cs (1)
66var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureFrontDoorResource.cs (1)
18public class AzureFrontDoorResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.KeyVault (4)
AzureKeyVaultResource.cs (2)
17public class AzureKeyVaultResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 117public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureKeyVaultResourceExtensions.cs (1)
71var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureKeyVaultSecretResource.cs (1)
14/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentExtensions.cs (1)
510private static void ConfigureAksInfrastructure(AzureResourceInfrastructure infrastructure)
AzureKubernetesEnvironmentResource.cs (1)
29Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Kusto (4)
AzureKustoBuilderExtensions.cs (1)
53var configureInfrastructure = (Aspire.Hosting.Azure.AzureResourceInfrastructure infrastructure) =>
AzureKustoClusterResource.cs (3)
26public AzureKustoClusterResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 84public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 115var infra = roleAssignmentContext.Infrastructure;
Aspire.Hosting.Azure.Network (29)
AzureNatGatewayExtensions.cs (1)
89private static void ConfigureNatGateway(AzureResourceInfrastructure infra)
AzureNatGatewayResource.cs (3)
14/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> 19public class AzureNatGatewayResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 38public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureNetworkSecurityGroupExtensions.cs (1)
110private static void ConfigureNetworkSecurityGroup(AzureResourceInfrastructure infra)
AzureNetworkSecurityGroupResource.cs (3)
14/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> 19public class AzureNetworkSecurityGroupResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 37public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureNetworkSecurityPerimeterExtensions.cs (1)
161private static void ConfigureNetworkSecurityPerimeter(AzureResourceInfrastructure infra)
AzureNetworkSecurityPerimeterResource.cs (3)
19/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> 25public class AzureNetworkSecurityPerimeterResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 43public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzurePrivateDnsZoneResource.cs (2)
48public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 76private static void ConfigureDnsZone(AzureResourceInfrastructure infra)
AzurePrivateEndpointExtensions.cs (1)
98void ConfigurePrivateEndpoint(AzureResourceInfrastructure infra)
AzurePrivateEndpointResource.cs (2)
20Action<AzureResourceInfrastructure> configureInfrastructure) 49public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzurePublicIPAddressExtensions.cs (2)
25/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> 55private static void ConfigurePublicIPAddress(AzureResourceInfrastructure infra)
AzurePublicIPAddressResource.cs (3)
13/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> 18public class AzurePublicIPAddressResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 37public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureSubnetResource.cs (2)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties. 98internal SubnetResource ToProvisioningEntity(AzureResourceInfrastructure infra, ProvisionableResource? dependsOn)
AzureVirtualNetworkExtensions.cs (1)
113private static void ConfigureVirtualNetwork(AzureResourceInfrastructure infra)
AzureVirtualNetworkResource.cs (4)
16public class AzureVirtualNetworkResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 55public AzureVirtualNetworkResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, string? addressPrefix) 67public AzureVirtualNetworkResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, ParameterResource addressPrefix) 75public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.OperationalInsights (3)
AzureLogAnalyticsWorkspaceExtensions.cs (1)
31var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureLogAnalyticsWorkspaceResource.cs (2)
16public class AzureLogAnalyticsWorkspaceResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 35public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.PostgreSQL (8)
AzurePostgresExtensions.cs (4)
44var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 433private static PostgreSqlFlexibleServer CreatePostgreSqlFlexibleServer(AzureResourceInfrastructure infrastructure, IDistributedApplicationBuilder distributedApplicationBuilder, IReadOnlyDictionary<string, string> databases) 521private static void ConfigurePostgreSqlInfrastructure(AzureResourceInfrastructure infrastructure, IDistributedApplicationBuilder distributedApplicationBuilder) 608internal static PostgreSqlFlexibleServerActiveDirectoryAdministrator AddActiveDirectoryAdministrator(AzureResourceInfrastructure infra, PostgreSqlFlexibleServer postgres, BicepValue<Guid> principalId, BicepValue<PostgreSqlFlexibleServerPrincipalType> principalType, BicepValue<string> principalName)
AzurePostgresFlexibleServerResource.cs (3)
21public class AzurePostgresFlexibleServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 243public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 276var infra = roleAssignmentContext.Infrastructure;
AzurePostgresResource.cs (1)
14public class AzurePostgresResource(PostgresServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Redis (13)
AzureManagedRedisExtensions.cs (1)
203private static void ConfigureRedisInfrastructure(AzureResourceInfrastructure infrastructure)
AzureManagedRedisResource.cs (4)
22public class AzureManagedRedisResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 168public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 201var infra = roleAssignmentContext.Infrastructure; 220private static void AddEnterpriseContributorPolicyAssignment(AzureResourceInfrastructure infra, RedisEnterpriseDatabase database, BicepValue<Guid> principalId)
AzureRedisCacheResource.cs (3)
18public class AzureRedisCacheResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 106public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 139var infra = roleAssignmentContext.Infrastructure;
AzureRedisExtensions.cs (4)
36var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 250private static CdkRedisResource CreateRedisResource(AzureResourceInfrastructure infrastructure) 274private static void ConfigureRedisInfrastructure(AzureResourceInfrastructure infrastructure) 322internal static void AddContributorPolicyAssignment(AzureResourceInfrastructure infra, CdkRedisResource redis, BicepValue<Guid> principalId, BicepValue<string> principalName)
AzureRedisResource.cs (1)
14public class AzureRedisResource(RedisResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Sandboxes (8)
AzureSandboxesExtensions.cs (3)
44static void ConfigureInfrastructure(AzureResourceInfrastructure infrastructure) 337private static void AddSandboxGroupDeploymentPrincipalRoleAssignment(AzureResourceInfrastructure infrastructure, SandboxGroup sandboxGroup) 471AzureResourceInfrastructure infrastructure)
AzureSandboxGroupResource.cs (2)
33public AzureSandboxGroupResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 282public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
src\Shared\ContainerRegistryInfrastructure.cs (3)
18internal static void ConfigureContainerRegistry(AzureResourceInfrastructure infrastructure) 30AzureResourceInfrastructure infrastructure, 31Action<ContainerRegistryService, AzureResourceInfrastructure>? configureNewRegistry)
Aspire.Hosting.Azure.Search (3)
AzureSearchExtensions.cs (1)
50void ConfigureSearch(AzureResourceInfrastructure infrastructure)
AzureSearchResource.cs (2)
17public class AzureSearchResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 61public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.ServiceBus (7)
AzureServiceBusExtensions.cs (1)
51var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureServiceBusQueueResource.cs (1)
19/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusResource.cs (2)
18public class AzureServiceBusResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 94public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureServiceBusRule.cs (1)
16/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusSubscriptionResource.cs (1)
19/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusTopicResource.cs (1)
19/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
Aspire.Hosting.Azure.SignalR (3)
AzureSignalRExtensions.cs (1)
64var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureSignalRResource.cs (2)
17public class AzureSignalRResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 64public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.Sql (9)
AzureSqlExtensions.cs (5)
30var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 88var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 228AzureResourceInfrastructure infrastructure, 243AzureResourceInfrastructure infrastructure, 282private static SqlServer CreateSqlServerResourceOnly(AzureResourceInfrastructure infrastructure,
AzureSqlServerResource.cs (4)
40public AzureSqlServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 49public AzureSqlServerResource(SqlServerServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure) 190public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 227var infra = roleAssignmentContext.Infrastructure;
Aspire.Hosting.Azure.Storage (3)
AzureStorageExtensions.cs (1)
48var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureStorageResource.cs (2)
17public class AzureStorageResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 179public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.Tests (57)
AzureAppConfigurationExtensionsTests.cs (1)
101var infrastructure = new AzureResourceInfrastructure(appConfigurationResource, "test-app-config");
AzureAppServiceEnvironmentExtensionsTests.cs (1)
20var infrastructure = new AzureResourceInfrastructure(appServiceEnvironmentResource, "test-app-service-env");
AzureBicepResourceTests.cs (1)
37static void CreateInfrastructure(AzureResourceInfrastructure infrastructure)
AzureContainerAppEnvironmentExtensionsTests.cs (1)
23var infrastructure = new AzureResourceInfrastructure(containerAppEnvironmentResource, "test-container-app-env");
AzureContainerRegistryTests.cs (1)
102var infrastructure = new AzureResourceInfrastructure(containerRegistryResource, "test-acr");
AzureCosmosDBExtensionsTests.cs (1)
577var infrastructure = new AzureResourceInfrastructure(cosmosDBResource, "test-cosmosdb");
AzureEventHubsExtensionsTests.cs (1)
660var infrastructure = new AzureResourceInfrastructure(eventHubsResource, "test-eventhubs");
AzureInfrastructureExtensionsTests.cs (2)
40AzureResourceInfrastructure? moduleInfrastructure = null; 79AzureResourceInfrastructure? moduleInfrastructure = null;
AzureKeyVaultTests.cs (1)
359var infrastructure = new AzureResourceInfrastructure(keyVaultResource, "test-keyvault");
AzureKustoExtensionsTests.cs (1)
42var infrastructure = new AzureResourceInfrastructure(kustoResource, "test-kusto");
AzureLogAnalyticsWorkspaceExtensionsTests.cs (1)
37var infrastructure = new AzureResourceInfrastructure(logAnalyticsWorkspaceResource, "test-log-workspace");
AzureManagedRedisExtensionsTests.cs (1)
194var infrastructure = new AzureResourceInfrastructure(redisResource, "test-redis");
AzureOpenAIExtensionsTests.cs (1)
240var infrastructure = new AzureResourceInfrastructure(openAIResource, "test-openai");
AzurePostgresExtensionsTests.cs (1)
621var infrastructure = new AzureResourceInfrastructure(postgresResource, "test-postgres");
AzureRedisExtensionsTests.cs (1)
273var infrastructure = new AzureResourceInfrastructure(redisResource, "test-redis");
AzureSearchExtensionsTests.cs (1)
104var infrastructure = new AzureResourceInfrastructure(searchResource, "test-search");
AzureServiceBusExtensionsTests.cs (1)
932var infrastructure = new AzureResourceInfrastructure(serviceBusResource, "test-servicebus");
AzureSignalRExtensionsTests.cs (1)
74var infrastructure = new AzureResourceInfrastructure(signalRResource, "test-signalr");
AzureSqlExtensionsTests.cs (1)
305var infrastructure = new AzureResourceInfrastructure(sqlResource, "test-sql");
AzureStorageExtensionsTests.cs (1)
1014var infrastructure = new AzureResourceInfrastructure(storageResource, "test-storage");
AzureUserAssignedIdentityTests.cs (1)
351var infrastructure = new AzureResourceInfrastructure(userAssignedIdentityResource, "test-identity");
AzureWebPubSubExtensionsTests.cs (1)
358var infrastructure = new AzureResourceInfrastructure(webPubSubResource, "test-webpubsub");
FoundryExtensionsTests.cs (1)
294var infrastructure = new AzureResourceInfrastructure(aiFoundryResource, "test-foundry");
PublicApiTests\AppConfigurationPublicApiTests.cs (2)
44Action<AzureResourceInfrastructure> configureInfrastructure = (c) => { }; 58Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\AppContainersPublicApiTests.cs (7)
16Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 29Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 40Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 52Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 65Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 93Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 106Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
PublicApiTests\ApplicationInsightsPublicApiTests.cs (2)
61Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 75Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\CosmosDBPublicApiTests.cs (2)
255var configureInfrastructure = (AzureResourceInfrastructure _) => { }; 269Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\EventHubsPublicApiTests.cs (2)
386Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 400Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\KeyVaultPublicApiTests.cs (2)
16Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 30Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\OperationalInsightsPublicApiTests.cs (2)
16Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 30Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\PostgreSQLPublicApiTests.cs (4)
126Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 141Action<AzureResourceInfrastructure> configureInfrastructure = null!; 202Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 216Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\RedisPublicApiTests.cs (4)
19Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 33Action<AzureResourceInfrastructure> configureInfrastructure = null!; 129Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 142Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\SearchPublicApiTests.cs (2)
44Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 58Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\SignalRPublicApiTests.cs (2)
83Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 97Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\WebPubSubPublicApiTests.cs (2)
161Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 175Action<AzureResourceInfrastructure> configureInfrastructure = null!;
Aspire.Hosting.Azure.WebPubSub (3)
AzureWebPubSubExtensions.cs (1)
44var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureWebPubSubResource.cs (2)
17public class AzureWebPubSubResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 51public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
1429AssertCallbackParameterTypes(publishAsWebsite, "configure", typeof(AzureResourceInfrastructure), typeof(WebSite)); 1430AssertCallbackParameterTypes(publishAsWebsite, "configureSlot", typeof(AzureResourceInfrastructure), typeof(WebSiteSlot)); 1433AssertCallbackParameterTypes(publishAsContainerAppJob, "configure", typeof(AzureResourceInfrastructure), typeof(ContainerAppJob)); 1613typeof(AzureResourceInfrastructure).Assembly,
Aspire.Hosting.Foundry (18)
FoundryExtensions.cs (1)
436private static void ConfigureInfrastructure(AzureResourceInfrastructure infrastructure)
FoundryResource.cs (2)
19public class FoundryResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) : 91public override CognitiveServicesAccount AddAsExistingResource(AzureResourceInfrastructure infra)
Project\AzureCognitiveServicesBase.cs (4)
14public abstract class AzureProvisionableAspireResource<T>(string name, Action<AzureResourceInfrastructure> configureInfrastructure) : 21public static T? GetProvisionableResource(AzureResourceInfrastructure infra, string bicepIdentifier) 34public override T AddAsExistingResource(AzureResourceInfrastructure infra) 82protected AzureProvisionableAspireResourceWithParent(string name, Action<AzureResourceInfrastructure> configureInfrastructure, P parent)
Project\ConnectionBuilderExtensions.cs (4)
36Func<AzureResourceInfrastructure, CognitiveServicesConnectionProperties> configureProperties) 41void configureInfrastructure(AzureResourceInfrastructure infrastructure) 426Func<AzureResourceInfrastructure, CognitiveServicesConnectionProperties> configureProperties) 428void configureInfrastructure(AzureResourceInfrastructure infrastructure)
Project\ConnectionResource.cs (2)
13public class AzureCognitiveServicesProjectConnectionResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, AzureCognitiveServicesProjectResource parent) : 41public class BingGroundingConnectionResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure, AzureCognitiveServicesProjectResource parent) :
Project\ProjectBuilderExtension.cs (1)
337internal static void ConfigureInfrastructure(AzureResourceInfrastructure infra)
Project\ProjectResource.cs (1)
32public AzureCognitiveServicesProjectResource([ResourceName] string name, Action<AzureResourceInfrastructure> configureInfrastructure, FoundryResource parent)
src\Shared\ContainerRegistryInfrastructure.cs (3)
18internal static void ConfigureContainerRegistry(AzureResourceInfrastructure infrastructure) 30AzureResourceInfrastructure infrastructure, 31Action<ContainerRegistryService, AzureResourceInfrastructure>? configureNewRegistry)