Show / Hide Table of Contents

Class Environment

Manages an App Service Environment.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "westeurope",
    });
    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        AddressSpaces = 
        {
            "10.0.0.0/16",
        },
    });
    var ase = new Azure.Network.Subnet("ase", new Azure.Network.SubnetArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefix = "10.0.1.0/24",
    });
    var gateway = new Azure.Network.Subnet("gateway", new Azure.Network.SubnetArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefix = "10.0.2.0/24",
    });
    var exampleEnvironment = new Azure.AppService.Environment("exampleEnvironment", new Azure.AppService.EnvironmentArgs
    {
        SubnetId = ase.Id,
        PricingTier = "I2",
        FrontEndScaleFactor = 10,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Environment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class Environment : CustomResource

Constructors

View Source

Environment(String, EnvironmentArgs, CustomResourceOptions)

Create a Environment resource with the given unique name, arguments, and options.

Declaration
public Environment(string name, EnvironmentArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EnvironmentArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

FrontEndScaleFactor

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

Declaration
public Output<int?> FrontEndScaleFactor { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

InternalLoadBalancingMode

Declaration
public Output<string> InternalLoadBalancingMode { get; }
Property Value
Type Description
Output<System.String>
View Source

Location

The location where the App Service Environment exists.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

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

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PricingTier

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

Declaration
public Output<string> PricingTier { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

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

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

SubnetId

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

Declaration
public Output<string> SubnetId { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

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

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, EnvironmentState, CustomResourceOptions)

Get an existing Environment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Environment Get(string name, Input<string> id, EnvironmentState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

EnvironmentState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Environment
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.