Microsoft.Web hostingEnvironments 2015-08-01

The hostingEnvironments resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Web/hostingEnvironments resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Web/hostingEnvironments@2015-08-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  kind: 'string'
  properties: {
    allowedMultiSizes: 'string'
    allowedWorkerSizes: 'string'
    apiManagementAccountId: 'string'
    clusterSettings: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    databaseEdition: 'string'
    databaseServiceObjective: 'string'
    dnsSuffix: 'string'
    environmentCapacities: [
      {
        availableCapacity: int
        computeMode: 'string'
        excludeFromCapacityAllocation: bool
        isApplicableForAllComputeModes: bool
        name: 'string'
        siteMode: 'string'
        totalCapacity: int
        unit: 'string'
        workerSize: 'string'
        workerSizeId: int
      }
    ]
    environmentIsHealthy: bool
    environmentStatus: 'string'
    internalLoadBalancingMode: 'string'
    ipsslAddressCount: int
    lastAction: 'string'
    lastActionResult: 'string'
    location: 'string'
    maximumNumberOfMachines: int
    multiRoleCount: int
    multiSize: 'string'
    name: 'string'
    networkAccessControlList: [
      {
        action: 'string'
        description: 'string'
        order: int
        remoteSubnet: 'string'
      }
    ]
    provisioningState: 'string'
    resourceGroup: 'string'
    status: 'string'
    subscriptionId: 'string'
    suspended: bool
    upgradeDomains: int
    vipMappings: [
      {
        internalHttpPort: int
        internalHttpsPort: int
        inUse: bool
        virtualIP: 'string'
      }
    ]
    virtualNetwork: {
      id: 'string'
      name: 'string'
      subnet: 'string'
      type: 'string'
    }
    vnetName: 'string'
    vnetResourceGroupName: 'string'
    vnetSubnetName: 'string'
    workerPools: [
      {
        id: 'string'
        kind: 'string'
        location: 'string'
        name: 'string'
        properties: {
          computeMode: 'string'
          instanceNames: [
            'string'
          ]
          workerCount: int
          workerSize: 'string'
          workerSizeId: int
        }
        sku: {
          capacity: int
          family: 'string'
          name: 'string'
          size: 'string'
          tier: 'string'
        }
        tags: {}
        type: 'string'
      }
    ]
  }
}

Property values

hostingEnvironments

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Web/hostingEnvironments'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2015-08-01'
name The resource name string (required)
location Resource Location string (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
kind Kind of resource string
properties HostingEnvironmentProperties

HostingEnvironmentProperties

Name Description Value
allowedMultiSizes List of comma separated strings describing which VM sizes are allowed for front-ends string
allowedWorkerSizes List of comma separated strings describing which VM sizes are allowed for workers string
apiManagementAccountId Api Management Account associated with this Hosting Environment string
clusterSettings Custom settings for changing the behavior of the hosting environment NameValuePair[]
databaseEdition Edition of the metadata database for the hostingEnvironment (App Service Environment) e.g. "Standard" string
databaseServiceObjective Service objective of the metadata database for the hostingEnvironment (App Service Environment) e.g. "S0" string
dnsSuffix DNS suffix of the hostingEnvironment (App Service Environment) string
environmentCapacities Current total, used, and available worker capacities StampCapacity[]
environmentIsHealthy True/false indicating whether the hostingEnvironment (App Service Environment) is healthy bool
environmentStatus Detailed message about with results of the last check of the hostingEnvironment (App Service Environment) string
internalLoadBalancingMode Specifies which endpoints to serve internally in the hostingEnvironment's (App Service Environment) VNET 'None'
'Publishing'
'Web'
ipsslAddressCount Number of IP SSL addresses reserved for this hostingEnvironment (App Service Environment) int
lastAction Last deployment action on this hostingEnvironment (App Service Environment) string
lastActionResult Result of the last deployment action on this hostingEnvironment (App Service Environment) string
location Location of the hostingEnvironment (App Service Environment), e.g. "West US" string
maximumNumberOfMachines Maximum number of VMs in this hostingEnvironment (App Service Environment) int
multiRoleCount Number of front-end instances int
multiSize Front-end VM size, e.g. "Medium", "Large" string
name Name of the hostingEnvironment (App Service Environment) string
networkAccessControlList Access control list for controlling traffic to the hostingEnvironment (App Service Environment) NetworkAccessControlEntry[]
provisioningState Status of certificate order 'Canceled'
'Deleting'
'Failed'
'InProgress'
'Succeeded'
resourceGroup Resource group of the hostingEnvironment (App Service Environment) string
status Current status of the hostingEnvironment (App Service Environment) 'Deleting'
'Preparing'
'Ready'
'Scaling'
subscriptionId Subscription of the hostingEnvironment (App Service Environment) string
suspended True/false indicating whether the hostingEnvironment is suspended. The environment can be suspended e.g. when the management endpoint is no longer available
(most likely because NSG blocked the incoming traffic)
bool
upgradeDomains Number of upgrade domains of this hostingEnvironment (App Service Environment) int
vipMappings Description of IP SSL mapping for this hostingEnvironment (App Service Environment) VirtualIPMapping[]
virtualNetwork Specification for using a virtual network VirtualNetworkProfile
vnetName Name of the hostingEnvironment's (App Service Environment) virtual network string
vnetResourceGroupName Resource group of the hostingEnvironment's (App Service Environment) virtual network string
vnetSubnetName Subnet of the hostingEnvironment's (App Service Environment) virtual network string
workerPools Description of worker pools with worker size ids, VM sizes, and number of workers in each pool WorkerPool[]

NameValuePair

Name Description Value
name Pair name string
value Pair value string

StampCapacity

Name Description Value
availableCapacity Available capacity (# of machines, bytes of storage etc...) int
computeMode Shared or dedicated web app hosting 'Dedicated'
'Dynamic'
'Shared'
excludeFromCapacityAllocation If true it includes basic sites
Basic sites are not used for capacity allocation.
bool
isApplicableForAllComputeModes Is capacity applicable for all sites? bool
name Name of the stamp string
siteMode Shared or Dedicated string
totalCapacity Total capacity (# of machines, bytes of storage etc...) int
unit Name of the unit string
workerSize Size of the machines 'Default'
'Large'
'Medium'
'Small'
workerSizeId Size Id of machines:
0 - Small
1 - Medium
2 - Large
int

NetworkAccessControlEntry

Name Description Value
action 'Deny'
'Permit'
description string
order int
remoteSubnet string

VirtualIPMapping

Name Description Value
internalHttpPort Internal HTTP port int
internalHttpsPort Internal HTTPS port int
inUse Is VIP mapping in use bool
virtualIP Virtual IP address string

VirtualNetworkProfile

Name Description Value
id Resource id of the virtual network string
name Name of the virtual network (read-only) string
subnet Subnet within the virtual network string
type Resource type of the virtual network (read-only) string

WorkerPool

Name Description Value
id Resource Id string
kind Kind of resource string
location Resource Location string (required)
name Resource Name string
properties WorkerPoolProperties
sku Describes a sku for a scalable resource SkuDescription
tags Resource tags object
type Resource type string

WorkerPoolProperties

Name Description Value
computeMode Shared or dedicated web app hosting 'Dedicated'
'Dynamic'
'Shared'
instanceNames Names of all instances in the worker pool (read only) string[]
workerCount Number of instances in the worker pool int
workerSize VM size of the worker pool instances string
workerSizeId Worker size id for referencing this worker pool int

SkuDescription

Name Description Value
capacity Current number of instances assigned to the resource int
family Family code of the resource sku string
name Name of the resource sku string
size Size specifier of the resource sku string
tier Service Tier of the resource sku string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
ILB App Service Environment with Azure Firewall

Deploy to Azure
Resource Manager templates and parameters demonstrating how to deploy App Service environment with Azure Firewall integration
App Service Environment with Azure SQL backend

Deploy to Azure
This template creates an App Service Environment with an Azure SQL backend along with private endpoints along with associated resources typically used in an private/isolated environment.
App Service Environment with Hosting Plan and Azure WebApp

Deploy to Azure
Creates an App Service Environment v2 with an ILB Address in a existing virtual network that will be privately availible. The App Service Environment will contain a Hosting Plan and a Azure Web App
Create Azure App Service Environment With An Web App Added.

Deploy to Azure
Creates an Azure App Service Environment inside A Virtual Network Subnet. This template also adds a Azure Web App inside the App Service Environment. Template originally authored by Callum Brankin of PixelPin
Create an App Service Environment

Deploy to Azure
Creates an App Service Environment in your virtual network
SSL certificate for an ILB ASE or an ILB ASE v2

Deploy to Azure
Configures the default SSL certificate for an ILB ASE or an ILB ASE v2
Create App Service Environment with an ILB Address

Deploy to Azure
Creates an App Service Environment in your virtual network with a private internal load balancer address
Create an App Service Environment v2

Deploy to Azure
Creates an App Service Environment v2 in your virtual network
Create App Service Environment v2 with an ILB Address

Deploy to Azure
Creates an App Service Environment v2 in your virtual network with a private internal load balancer address
Create an AppServicePlan and App in an ASEv3

Deploy to Azure
Create an AppServicePlan and App in an ASEv3