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,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class Environment : CustomResource
Constructors
View SourceEnvironment(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 SourceFrontEndScaleFactor
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>> |
InternalLoadBalancingMode
Declaration
public Output<string> InternalLoadBalancingMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Location
The location where the App Service Environment exists.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
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> |
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> |
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 SourceGet(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 |