2 instantiations of AzureAppServiceEnvironmentResource
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentExtensions.cs (1)
47
var resource = new
AzureAppServiceEnvironmentResource
(name, static infra =>
Aspire.Hosting.Azure.Tests (1)
AzureAppServiceEnvironmentExtensionsTests.cs (1)
14
var appServiceEnvironmentResource = new
AzureAppServiceEnvironmentResource
("test-app-service-env", _ => { });
47 references to AzureAppServiceEnvironmentResource
Aspire.Hosting.Azure.AppService (26)
AzureAppServiceEnvironmentContext.cs (2)
13
AzureAppServiceEnvironmentResource
environment,
20
public
AzureAppServiceEnvironmentResource
Environment => environment;
AzureAppServiceEnvironmentExtensions.cs (17)
43
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> AddAzureAppServiceEnvironment(this IDistributedApplicationBuilder builder, string name)
47
var
resource = new AzureAppServiceEnvironmentResource(name, static infra =>
50
var
resource = (
AzureAppServiceEnvironmentResource
)infra.AspireResource;
122
Value =
AzureAppServiceEnvironmentResource
.GetWebSiteSuffixBicep()
227
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithDashboard(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder, bool enable = true)
238
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithAzureApplicationInsights(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder)
251
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithAzureApplicationInsights(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder, string applicationInsightsLocation)
264
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithAzureApplicationInsights(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder, IResourceBuilder<ParameterResource> applicationInsightsLocation)
277
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithAzureApplicationInsights(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder, IResourceBuilder<AzureApplicationInsightsResource> applicationInsightsBuilder)
289
public static IResourceBuilder<
AzureAppServiceEnvironmentResource
> WithAutomaticScaling(this IResourceBuilder<
AzureAppServiceEnvironmentResource
> builder)
AzureAppServiceEnvironmentResource.cs (1)
25
/// Initializes a new instance of the <see cref="
AzureAppServiceEnvironmentResource
"/> class.
AzureAppServiceInfrastructure.cs (3)
25
var appServiceEnvironments = @event.Model.Resources.OfType<
AzureAppServiceEnvironmentResource
>().ToArray();
33
foreach (
var
appServiceEnvironment in appServiceEnvironments)
66
throw new InvalidOperationException($"Resource '{r.Name}' is configured to publish as an Azure AppService Website, but there are no '{nameof(
AzureAppServiceEnvironmentResource
)}' resources. Ensure you have added one by calling '{nameof(AzureAppServiceEnvironmentExtensions.AddAzureAppServiceEnvironment)}'.");
AzureAppServiceWebsiteContext.cs (1)
38
BicepFunction.Interpolate($"{BicepFunction.ToLower(resource.Name)}-{
AzureAppServiceEnvironmentResource
.GetWebSiteSuffixBicep()}"), 60);
AzureAppServiceWebSiteResource.cs (2)
77
var
computerEnv = (
AzureAppServiceEnvironmentResource
)deploymentTargetAnnotation.ComputeEnvironment!;
Aspire.Hosting.Azure.Tests (18)
AzureAppServiceEnvironmentExtensionsTests.cs (1)
14
var
appServiceEnvironmentResource = new AzureAppServiceEnvironmentResource("test-app-service-env", _ => { });
AzureAppServiceTests.cs (16)
68
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
283
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
414
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
470
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
705
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
726
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
748
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
770
var
environment = Assert.Single(model.Resources.OfType<
AzureAppServiceEnvironmentResource
>());
AzureUserAssignedIdentityTests.cs (1)
211
r => Assert.IsType<
AzureAppServiceEnvironmentResource
>(r),
Pipelines.Library (3)
DistributedApplicationPipelineExtensions.cs (3)
22
var appServiceEnvironments = context.Model.Resources.OfType<
AzureAppServiceEnvironmentResource
>();
28
foreach (
var
appServiceEnvironment in appServiceEnvironments)
60
AzureAppServiceEnvironmentResource
appServiceEnvironment,