144 references to WithComputeEnvironment
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdPolyglotTests.cs (1)
365.WithComputeEnvironment(environment);
EntraIdProvisioningTests.cs (3)
1142var web = builder.AddContainer("web", "image").WithHttpsEndpoint(targetPort: 8080).WithComputeEnvironment(environment); 1227web.WithComputeEnvironment(environment); 1251web.WithComputeEnvironment(environment);
Aspire.Hosting.Azure.Kubernetes.Tests (7)
AzureKubernetesFoundryReferenceTests.cs (2)
61.WithComputeEnvironment(aks) 65.WithComputeEnvironment(aks);
AzureKubernetesInfrastructureTests.cs (5)
188.WithComputeEnvironment(enva); 190.WithComputeEnvironment(enva); 192.WithComputeEnvironment(envb); 458.WithComputeEnvironment(east); 460.WithComputeEnvironment(west);
Aspire.Hosting.Azure.Tests (88)
AzureApiManagementTests.cs (11)
293.WithComputeEnvironment(environment) 847.WithComputeEnvironment(environment) 1055.WithComputeEnvironment(environment) 1096.WithComputeEnvironment(environment) 1242.WithComputeEnvironment(environment) 1266.WithComputeEnvironment(environment) 1335.WithComputeEnvironment(environment) 1628.WithComputeEnvironment(environment); 1653.WithComputeEnvironment(environment); 2187.WithComputeEnvironment(environment) 2732.WithComputeEnvironment(environment);
AzureAppServiceTests.cs (3)
437.WithComputeEnvironment(appServiceEnv) 818.WithComputeEnvironment(env1); 822.WithComputeEnvironment(env2);
AzureContainerAppEnvironmentExtensionsTests.cs (1)
622.WithComputeEnvironment(environment);
AzureContainerAppExpressEndpointTests.cs (6)
243.WithComputeEnvironment(consumerEnvironment); 247.WithComputeEnvironment(producerEnvironment); 280.WithComputeEnvironment(standard); 284.WithComputeEnvironment(express) 314.WithComputeEnvironment(producer); 317.WithComputeEnvironment(consumer)
AzureContainerAppsTests.cs (27)
200.WithComputeEnvironment(acaEnv) 2028.WithComputeEnvironment(env1); 2031.WithComputeEnvironment(env2); 2054.WithComputeEnvironment(env1); 2057.WithComputeEnvironment(env2); 2110.WithComputeEnvironment(env1); 2113.WithComputeEnvironment(env2); 2149.WithComputeEnvironment(env1); 2152.WithComputeEnvironment(env2); 2180.WithComputeEnvironment(includedEnvironment); 2210.WithComputeEnvironment(env); 2240.WithComputeEnvironment(env); 2269.WithComputeEnvironment(env); 2302.WithComputeEnvironment(env1); 2304.WithComputeEnvironment(env2); 2327.WithComputeEnvironment(env1); 2329.WithComputeEnvironment(env2); 2356.WithComputeEnvironment(env1); 2358.WithComputeEnvironment(env2); 2385.WithComputeEnvironment(azdEnvironment); 2387.WithComputeEnvironment(uniqueEnvironment); 2419.WithComputeEnvironment(env1); 2422.WithComputeEnvironment(env2); 3047.WithComputeEnvironment(aca); 3055.WithComputeEnvironment(appService); 3061.WithComputeEnvironment(aca); 3071.WithComputeEnvironment(appService);
AzureDeployerTests.cs (10)
665.WithComputeEnvironment(containerAppEnv); 787.WithComputeEnvironment(appServiceEnv); 869builder.AddRedis("cache").WithComputeEnvironment(acaEnv); 870var apiService = builder.AddProject<Project>("api-service", launchProfileName: null).WithComputeEnvironment(aasEnv); 871var pythonApp = builder.AddDockerfile("python-app", "python-app.Dockerfile").WithComputeEnvironment(acaEnv); 947builder.AddRedis("cache").WithComputeEnvironment(acaEnv); 948builder.AddProject<Project>("api-service", launchProfileName: null).WithComputeEnvironment(aasEnv); 949builder.AddDockerfile("python-app", "python-app.Dockerfile").WithComputeEnvironment(acaEnv); 1134builder.AddRedis("cache").WithComputeEnvironment(containerAppEnv); 1592.WithComputeEnvironment(acaEnv);
AzureFrontDoorAppServicePrivateLinkTests.cs (3)
123var web = AddProject(builder, "web").WithComputeEnvironment(appService); 124var api = AddProject(builder, "api").WithComputeEnvironment(containerApps); 125var publicApp = AddProject(builder, "public-app").WithComputeEnvironment(publicEnvironment);
AzureFrontDoorPrivateLinkTests.cs (16)
115.WithComputeEnvironment(environment); 119.WithComputeEnvironment(publicEnvironment); 174.WithComputeEnvironment(privateEnvironment); 178.WithComputeEnvironment(publicEnvironment); 236.WithComputeEnvironment(west); 240.WithComputeEnvironment(west); 244.WithComputeEnvironment(east); 298.WithComputeEnvironment(publicEnvironment); 442.WithComputeEnvironment(west); 446.WithComputeEnvironment(east); 472.WithComputeEnvironment(target); 501.WithComputeEnvironment(target); 505.WithComputeEnvironment(target); 534.WithComputeEnvironment(target); 538.WithComputeEnvironment(other); 542.WithComputeEnvironment(target);
AzureSandboxesTests.cs (7)
323.WithComputeEnvironment(sandboxGroup) 2573.WithComputeEnvironment(sandboxGroup) 2678.WithComputeEnvironment(containerApps) 2882.WithComputeEnvironment(frontendGroup); 2885.WithComputeEnvironment(backendGroup); 3138.WithComputeEnvironment(producerGroup) 3142.WithComputeEnvironment(consumerGroup)
FoundryExtensionsTests.cs (4)
787.WithComputeEnvironment(env); 853.WithComputeEnvironment(env); 893.WithComputeEnvironment(env); 933.WithComputeEnvironment(env);
Aspire.Hosting.Docker.Tests (7)
DockerComposeTests.cs (7)
162.WithComputeEnvironment(env1); 165.WithComputeEnvironment(env2); 870.WithComputeEnvironment(dockerCompose); 875.WithComputeEnvironment(kubernetes); 880.WithComputeEnvironment(dockerCompose); 885.WithComputeEnvironment(kubernetes); 937.WithComputeEnvironment(dockerCompose);
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
456ResourceBuilderExtensions.WithComputeEnvironment(builder, project);
Aspire.Hosting.Kubernetes.Tests (14)
KubernetesEnvironmentResourceTests.cs (9)
104.WithComputeEnvironment(env1); 107.WithComputeEnvironment(env2); 146.WithComputeEnvironment(kubernetes); 151.WithComputeEnvironment(dockerCompose); 156.WithComputeEnvironment(kubernetes); 161.WithComputeEnvironment(dockerCompose); 209.WithComputeEnvironment(dockerCompose) 236.WithComputeEnvironment(kubernetes); 240.WithComputeEnvironment(dockerCompose);
KubernetesIngressTests.cs (1)
449.WithComputeEnvironment(otherEnvironment);
KubernetesPublisherTests.cs (4)
194.WithExternalHttpEndpoints().WithComputeEnvironment(environment); 196.WithExternalHttpEndpoints().WithComputeEnvironment(environment); 199var consumer = builder.AddContainer("consumer", "image").WithComputeEnvironment(environment) 2989.WithComputeEnvironment(envB)
Aspire.Hosting.Radius.Tests (8)
InnerLoop\MultiEnvironmentTests.cs (2)
61builder.AddContainer("api", "myapp/api:latest").WithComputeEnvironment(env1); 82builder.AddContainer("api", "myapp/api:latest").WithComputeEnvironment(env1);
Publishing\BackingResourceProjectionTests.cs (2)
166var cache = builder.AddRedis("cache").WithComputeEnvironment(envB); 168.WithComputeEnvironment(envA)
Publishing\ContainerEnvironmentEmissionTests.cs (2)
97.WithComputeEnvironment(dataEnv); 100.WithComputeEnvironment(frontendEnv);
Publishing\MultiEnvironmentPublishTests.cs (2)
81builder.AddContainer("api-dev", "myapp/api", "latest").WithComputeEnvironment(dev); 82builder.AddContainer("api-staging", "myapp/api", "latest").WithComputeEnvironment(staging);
Aspire.Hosting.Tests (5)
ComputeEnvironmentEndpointResolverTests.cs (2)
78.WithComputeEnvironment(currentEnv); 116.WithComputeEnvironment(currentEnv);
ComputeEnvironmentValidationTests.cs (1)
62.WithComputeEnvironment(env1);
WithVolumeTests.cs (2)
273.WithComputeEnvironment(environment); 296.WithComputeEnvironment(computeEnvironment);
AzureApiManagement.AppHost (2)
AppHost.cs (2)
25catalog.WithComputeEnvironment(environment) 41catalog.WithComputeEnvironment(environment)
Deployers.AppHost (5)
AppHost.cs (5)
35.WithComputeEnvironment(aca); 39.WithComputeEnvironment(aas) 48.WithComputeEnvironment(aas); 60.WithComputeEnvironment(aca); 64.WithComputeEnvironment(aca)
FoundryAgents.AppHost (1)
AppHost.cs (1)
74.WithComputeEnvironment(aca)
Pipelines.AppHost (2)
AppHost.cs (2)
39.WithComputeEnvironment(acaEnv) 326.WithComputeEnvironment(aasEnv)