22 instantiations of AzureResourceInfrastructure
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Tests (21)
352 references to AzureResourceInfrastructure
Aspire.Hosting.Azure (41)
AzureProvisioningResource.cs (14)
21public class AzureProvisioningResource(string name, Action<AzureResourceInfrastructure> configureInfrastructure)
39public Action<AzureResourceInfrastructure> ConfigureInfrastructure { get; internal set; } = configureInfrastructure ?? throw new ArgumentNullException(nameof(configureInfrastructure));
51/// <param name="infra">The <see cref="AzureResourceInfrastructure"/> to add the existing resource into.</param>
53public virtual ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) => throw new NotImplementedException();
61var infra = roleAssignmentContext.Infrastructure;
96var infrastructure = new AzureResourceInfrastructure(this, Name);
125Infrastructure.ValidateBicepIdentifier(alias, nameof(AzureResourceInfrastructure.BicepExtensions));
126ArgumentException.ThrowIfNullOrWhiteSpace(reference, nameof(AzureResourceInfrastructure.BicepExtensions));
160/// <param name="infrastructure">The <see cref="AzureResourceInfrastructure"/> that will contain the <see cref="ProvisionableResource"/>.</param>
164public static T CreateExistingOrNewProvisionableResource<T>(AzureResourceInfrastructure infrastructure, Func<string, BicepValue<string>, T> createExisting, Func<AzureResourceInfrastructure, T> createNew)
207public static bool TryApplyExistingResourceAnnotation(IAzureResource aspireResource, AzureResourceInfrastructure infra, ProvisionableResource provisionableResource)
298private static BicepValue<string> CreateScopeExpression(AzureBicepResourceScope scope, AzureResourceInfrastructure infra)
350private 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)
Aspire.Hosting.Azure.ApiManagement (14)
AzureApiManagementExtensions.cs (12)
1558private static void ConfigureInfrastructure(AzureResourceInfrastructure infrastructure)
1781AzureResourceInfrastructure infrastructure,
1815AzureResourceInfrastructure infrastructure,
1848AzureResourceInfrastructure infrastructure,
1908AzureResourceInfrastructure infrastructure,
1984AzureResourceInfrastructure infrastructure,
2118AzureResourceInfrastructure infrastructure,
2163AzureResourceInfrastructure infrastructure,
2323AzureResourceInfrastructure infrastructure,
2453AzureResourceInfrastructure infrastructure,
2512AzureResourceInfrastructure infrastructure,
2602AzureResourceInfrastructure infrastructure,
Aspire.Hosting.Azure.AppConfiguration (3)
Aspire.Hosting.Azure.AppContainers (30)
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)
Aspire.Hosting.Azure.ApplicationInsights (3)
Aspire.Hosting.Azure.AppService (22)
Aspire.Hosting.Azure.CognitiveServices (4)
Aspire.Hosting.Azure.ConnectorNamespace (3)
Aspire.Hosting.Azure.ContainerRegistry (5)
Aspire.Hosting.Azure.CosmosDB (7)
Aspire.Hosting.Azure.EntraId (11)
Provisioning\EntraIdApiProvisioning.cs (7)
27AzureResourceInfrastructure infrastructure,
56AzureResourceInfrastructure infrastructure,
149AzureResourceInfrastructure infrastructure,
184AzureResourceInfrastructure infrastructure,
217private static BicepValue<string> GetApiApplicationId(EntraIdApiAccess access, AzureResourceInfrastructure infrastructure, EntraIdSymbolNames symbolNames) => access switch
224private static BicepValue<string> GetApiServicePrincipalId(EntraIdApiAccess access, AzureResourceInfrastructure infrastructure, EntraIdSymbolNames symbolNames)
240private static BicepValue<string> GetClientId(EntraIdApplicationResource application, AzureResourceInfrastructure infrastructure, EntraIdSymbolNames symbolNames) => application.ClientIdValue switch
Aspire.Hosting.Azure.EntraId.Tests (1)
Aspire.Hosting.Azure.EventHubs (5)
Aspire.Hosting.Azure.FrontDoor (3)
Aspire.Hosting.Azure.KeyVault (4)
Aspire.Hosting.Azure.Kubernetes (6)
Aspire.Hosting.Azure.Kusto (4)
Aspire.Hosting.Azure.Network (29)
Aspire.Hosting.Azure.OperationalInsights (3)
Aspire.Hosting.Azure.PostgreSQL (8)
Aspire.Hosting.Azure.Provisioning (6)
Aspire.Hosting.Azure.Provisioning.Tests (7)
Aspire.Hosting.Azure.Redis (13)
Aspire.Hosting.Azure.Sandboxes (8)
Aspire.Hosting.Azure.Search (3)
Aspire.Hosting.Azure.ServiceBus (7)
Aspire.Hosting.Azure.SignalR (3)
Aspire.Hosting.Azure.Sql (9)
Aspire.Hosting.Azure.Storage (3)
Aspire.Hosting.Azure.Tests (59)
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) => { };
108Action<AzureResourceInfrastructure, ContainerApp> configure = null!;
Aspire.Hosting.Azure.WebPubSub (3)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (4)
AtsTypeScriptCodeGeneratorTests.cs (4)
1985AssertCallbackParameterTypes(publishAsWebsite, "configure", typeof(AzureResourceInfrastructure), typeof(WebSite));
1986AssertCallbackParameterTypes(publishAsWebsite, "configureSlot", typeof(AzureResourceInfrastructure), typeof(WebSiteSlot));
1989AssertCallbackParameterTypes(publishAsContainerAppJob, "configure", typeof(AzureResourceInfrastructure), typeof(ContainerAppJob));
2209typeof(AzureResourceInfrastructure).Assembly,
Aspire.Hosting.Foundry (21)