EnvironmentArgs

data class EnvironmentArgs(val allowedUserIpCidrs: Output<List<String>>? = null, val clusterSettings: Output<List<EnvironmentClusterSettingArgs>>? = null, val frontEndScaleFactor: Output<Int>? = null, val internalLoadBalancingMode: Output<String>? = null, val name: Output<String>? = null, val pricingTier: Output<String>? = null, val resourceGroupName: Output<String>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EnvironmentArgs>

Manages an App Service Environment.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.appservice.Environment;
import com.pulumi.azure.appservice.EnvironmentArgs;
import com.pulumi.azure.appservice.inputs.EnvironmentClusterSettingArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.addressSpaces("10.0.0.0/16")
.build());
var ase = new Subnet("ase", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.1.0/24")
.build());
var gateway = new Subnet("gateway", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.subnetId(ase.id())
.pricingTier("I2")
.frontEndScaleFactor(10)
.internalLoadBalancingMode("Web, Publishing")
.allowedUserIpCidrs(
"11.22.33.44/32",
"55.66.77.0/24")
.clusterSettings(EnvironmentClusterSettingArgs.builder()
.name("DisableTls1.0")
.value("1")
.build())
.build());
}
}

Import

The App Service Environment can be imported using the resource id, e.g.

$ pulumi import azure:appservice/environment:Environment myAppServiceEnv /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Web/hostingEnvironments/myAppServiceEnv

Constructors

Link copied to clipboard
fun EnvironmentArgs(allowedUserIpCidrs: Output<List<String>>? = null, clusterSettings: Output<List<EnvironmentClusterSettingArgs>>? = null, frontEndScaleFactor: Output<Int>? = null, internalLoadBalancingMode: Output<String>? = null, name: Output<String>? = null, pricingTier: Output<String>? = null, resourceGroupName: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EnvironmentArgs

Properties

Link copied to clipboard
val allowedUserIpCidrs: Output<List<String>>? = null

Allowed user added IP ranges on the ASE database. Use the addresses you want to set as the explicit egress address ranges.

Link copied to clipboard

Zero or more cluster_setting blocks as defined below.

Link copied to clipboard
val frontEndScaleFactor: Output<Int>? = null

Scale factor for front end instances. Possible values are between 5 and 15. Defaults to 15.

Link copied to clipboard
val internalLoadBalancingMode: Output<String>? = null

Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment. Possible values are None, Web, Publishing and combined value "Web, Publishing". Defaults to None. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the App Service Environment. Changing this forces a new resource to be created.

Link copied to clipboard
val pricingTier: Output<String>? = null

Pricing tier for the front end instances. Possible values are I1, I2 and I3. Defaults to I1.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the App Service Environment exists. Defaults to the Resource Group of the Subnet (specified by subnet_id).

Link copied to clipboard
val subnetId: Output<String>? = null

The ID of the Subnet which the App Service Environment should be connected to. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource. Changing this forces a new resource to be created.