145 references to AzureResourceInfrastructure
Aspire.Hosting.Azure (29)
AppIdentityResource.cs (1)
20private static void ConfigureAppIdentityInfrastructure(AzureResourceInfrastructure infra)
AzureProvisioningResource.cs (10)
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; 77var infrastructure = new AzureResourceInfrastructure(this, Name); 117/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that will contain the <see cref="ProvisionableResource"/>.</param> 121public static T CreateExistingOrNewProvisionableResource<T>(AzureResourceInfrastructure infrastructure, Func<string, BicepValue<string>, T> createExisting, Func<AzureResourceInfrastructure, T> createNew) 148private void EnsureParametersAlign(AzureResourceInfrastructure infrastructure)
AzureProvisioningResourceExtensions.cs (13)
23public static IResourceBuilder<AzureProvisioningResource> AddAzureInfrastructure(this IDistributedApplicationBuilder builder, [ResourceName] string name, Action<AzureResourceInfrastructure> configureInfrastructure) 38public static IResourceBuilder<T> ConfigureInfrastructure<T>(this IResourceBuilder<T> builder, Action<AzureResourceInfrastructure> configure) 56/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 66public static ProvisioningParameter AsProvisioningParameter(this IResourceBuilder<ParameterResource> parameterResourceBuilder, AzureResourceInfrastructure infrastructure, string? parameterName = null) 82/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 92public static ProvisioningParameter AsProvisioningParameter(this ParameterResource parameterResource, AzureResourceInfrastructure infrastructure, string? parameterName = null) 111/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 121public static ProvisioningParameter AsProvisioningParameter(this BicepOutputReference outputReference, AzureResourceInfrastructure infrastructure, string? parameterName = null) 140/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 148public static ProvisioningParameter AsProvisioningParameter(this EndpointReference endpointReference, AzureResourceInfrastructure infrastructure, string parameterName) 166/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that contains the <see cref="ProvisioningParameter"/>.</param> 174public static ProvisioningParameter AsProvisioningParameter(this ReferenceExpression expression, AzureResourceInfrastructure infrastructure, string parameterName) 185private static ProvisioningParameter GetOrAddParameter(AzureResourceInfrastructure infrastructure, string parameterName, bool? isSecure = null)
AzureResourceInfrastructure.cs (1)
29/// The Aspire <see cref="AzureProvisioningResource"/> resource that this <see cref="AzureResourceInfrastructure"/> represents.
AzureResourcePreparer.cs (3)
271AzureResourceInfrastructure infra, 290AzureResourceInfrastructure infrastructure, 296public AzureResourceInfrastructure Infrastructure { get; } = infrastructure;
IAddRoleAssignmentsContext.cs (1)
17public AzureResourceInfrastructure Infrastructure { get; }
Aspire.Hosting.Azure.AppConfiguration (3)
AzureAppConfigurationExtensions.cs (1)
36var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureAppConfigurationResource.cs (2)
15public class AzureAppConfigurationResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 33public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.AppContainers (11)
AzureContainerAppContainerExtensions.cs (1)
34public 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 (1)
13public class AzureContainerAppEnvironmentResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) :
AzureContainerAppExecutableExtensions.cs (1)
34public static IResourceBuilder<T> PublishAsAzureContainerApp<T>(this IResourceBuilder<T> executable, Action<AzureResourceInfrastructure, ContainerApp> configure)
AzureContainerAppProjectExtensions.cs (1)
34public static IResourceBuilder<T> PublishAsAzureContainerApp<T>(this IResourceBuilder<T> project, Action<AzureResourceInfrastructure, ContainerApp> configure)
ContainerAppContext.cs (1)
47public void BuildContainerApp(AzureResourceInfrastructure infra)
ContainerAppExtensions.cs (4)
24/// <exception cref="ArgumentException">Throws if the container app resource is not parented to a <see cref="AzureResourceInfrastructure"/>.</exception> 29/// in conjunction with the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/> 44/// method via the <see cref="AzureContainerAppContainerExtensions.PublishAsAzureContainerApp{T}(IResourceBuilder{T}, Action{AzureResourceInfrastructure, ContainerApp})"/> 64if (app.ParentInfrastructure is not AzureResourceInfrastructure module)
Aspire.Hosting.Azure.ApplicationInsights (2)
AzureApplicationInsightsExtensions.cs (1)
43var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureApplicationInsightsResource.cs (1)
13public class AzureApplicationInsightsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.CognitiveServices (4)
AzureOpenAIExtensions.cs (2)
37var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 104private static CognitiveServicesAccountDeployment CreateDeployment(AzureResourceInfrastructure infrastructure, CognitiveServicesAccount cogServicesAccount, CognitiveServicesAccountDeployment? dependency, AzureOpenAIDeployment deployment)
AzureOpenAIResource.cs (2)
14public class AzureOpenAIResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 60public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.CosmosDB (7)
AzureCosmosDBContainerResource.cs (1)
15/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBDatabaseResource.cs (1)
14/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureCosmosDBExtensions.cs (2)
388private static void ConfigureCosmosDBInfrastructure(AzureResourceInfrastructure infrastructure) 511internal static void AddContributorRoleAssignment(AzureResourceInfrastructure infra, CosmosDBAccount cosmosAccount, BicepValue<Guid> principalId)
AzureCosmosDBResource.cs (3)
17public class AzureCosmosDBResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 107public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 120var infra = roleAssignmentContext.Infrastructure;
Aspire.Hosting.Azure.EventHubs (5)
AzureEventHubConsumerGroupResource.cs (1)
17/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubResource.cs (1)
17/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureEventHubsExtensions.cs (1)
46var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureEventHubsResource.cs (2)
15public class AzureEventHubsResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 125public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.KeyVault (3)
AzureKeyVaultResource.cs (2)
15public class AzureKeyVaultResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 59public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
AzureKeyVaultResourceExtensions.cs (1)
37var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
Aspire.Hosting.Azure.OperationalInsights (2)
AzureLogAnalyticsWorkspaceExtensions.cs (1)
29var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureLogAnalyticsWorkspaceResource.cs (1)
11public class AzureLogAnalyticsWorkspaceResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.PostgreSQL (8)
AzurePostgresExtensions.cs (4)
40var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 358private static PostgreSqlFlexibleServer CreatePostgreSqlFlexibleServer(AzureResourceInfrastructure infrastructure, IDistributedApplicationBuilder distributedApplicationBuilder, IReadOnlyDictionary<string, string> databases) 425private static void ConfigurePostgreSqlInfrastructure(AzureResourceInfrastructure infrastructure, IDistributedApplicationBuilder distributedApplicationBuilder) 507internal static PostgreSqlFlexibleServerActiveDirectoryAdministrator AddActiveDirectoryAdministrator(AzureResourceInfrastructure infra, PostgreSqlFlexibleServer postgres, BicepValue<Guid> principalId, BicepValue<PostgreSqlFlexibleServerPrincipalType> principalType, BicepValue<string> principalName)
AzurePostgresFlexibleServerResource.cs (3)
19public class AzurePostgresFlexibleServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 111public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 124var infra = roleAssignmentContext.Infrastructure;
AzurePostgresResource.cs (1)
14public class AzurePostgresResource(PostgresServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure)
Aspire.Hosting.Azure.Redis (8)
AzureRedisCacheResource.cs (3)
17public class AzureRedisCacheResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 73public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 86var infra = roleAssignmentContext.Infrastructure;
AzureRedisExtensions.cs (4)
36var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 240private static CdkRedisResource CreateRedisResource(AzureResourceInfrastructure infrastructure) 263private static void ConfigureRedisInfrastructure(AzureResourceInfrastructure infrastructure) 309internal 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.Search (3)
AzureSearchExtensions.cs (1)
44void ConfigureSearch(AzureResourceInfrastructure infrastructure)
AzureSearchResource.cs (2)
15public class AzureSearchResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 35public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.ServiceBus (7)
AzureServiceBusExtensions.cs (1)
46var configureInfrastructure = static (AzureResourceInfrastructure infrastructure) =>
AzureServiceBusQueueResource.cs (1)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusResource.cs (2)
15public class AzureServiceBusResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 47public 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)
18/// Use <see cref="AzureProvisioningResourceExtensions.ConfigureInfrastructure{T}(ApplicationModel.IResourceBuilder{T}, Action{AzureResourceInfrastructure})"/> to configure specific <see cref="Azure.Provisioning"/> properties.
AzureServiceBusTopicResource.cs (1)
18/// 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)
60var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureSignalRResource.cs (2)
15public class AzureSignalRResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 41public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.Sql (8)
AzureSqlExtensions.cs (4)
25var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 81var configureInfrastructure = (AzureResourceInfrastructure infrastructure) => 198AzureResourceInfrastructure infrastructure, 284internal static SqlServerAzureADAdministrator AddActiveDirectoryAdministrator(AzureResourceInfrastructure infra, SqlServer sqlServer, BicepValue<Guid> principalId, BicepValue<string> principalName)
AzureSqlServerResource.cs (4)
23public AzureSqlServerResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 32public AzureSqlServerResource(SqlServerServerResource innerResource, Action<AzureResourceInfrastructure> configureInfrastructure) 99public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) 110var infra = roleAssignmentContext.Infrastructure;
Aspire.Hosting.Azure.Storage (3)
AzureStorageExtensions.cs (1)
44var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureStorageResource.cs (2)
15public class AzureStorageResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 94public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)
Aspire.Hosting.Azure.Tests (36)
AzureBicepResourceTests.cs (3)
46static void CreateInfrastructure(AzureResourceInfrastructure infrastructure) 1139AzureResourceInfrastructure? moduleInfrastructure = null; 1178AzureResourceInfrastructure? moduleInfrastructure = null;
PublicApiTests\AppConfigurationPublicApiTests.cs (2)
45Action<AzureResourceInfrastructure> configureInfrastructure = (c) => { }; 59Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\AppContainersPublicApiTests.cs (7)
18Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 31Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 42Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 54Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 67Action<AzureResourceInfrastructure, ContainerApp> configure = null!; 95Action<AzureResourceInfrastructure, ContainerApp> configure = (r, c) => { }; 108Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
PublicApiTests\ApplicationInsightsPublicApiTests.cs (2)
62Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 76Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\CosmosDBPublicApiTests.cs (2)
153var configureInfrastructure = (AzureResourceInfrastructure _) => { }; 167Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\EventHubsPublicApiTests.cs (2)
387Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 401Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\KeyVaultPublicApiTests.cs (2)
17Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 31Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\OperationalInsightsPublicApiTests.cs (2)
17Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 31Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\PostgreSQLPublicApiTests.cs (4)
127Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 142Action<AzureResourceInfrastructure> configureInfrastructure = null!; 203Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 217Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\RedisPublicApiTests.cs (4)
18Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 32Action<AzureResourceInfrastructure> configureInfrastructure = null!; 128Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 141Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\SearchPublicApiTests.cs (2)
45Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 59Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\SignalRPublicApiTests.cs (2)
84Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 98Action<AzureResourceInfrastructure> configureInfrastructure = null!;
PublicApiTests\WebPubSubPublicApiTests.cs (2)
162Action<AzureResourceInfrastructure> configureInfrastructure = (_) => { }; 176Action<AzureResourceInfrastructure> configureInfrastructure = null!;
Aspire.Hosting.Azure.WebPubSub (3)
AzureWebPubSubExtensions.cs (1)
39var configureInfrastructure = (AzureResourceInfrastructure infrastructure) =>
AzureWebPubSubResource.cs (2)
15public class AzureWebPubSubResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure) 33public override ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra)