AppServicePlan Class

App Service plan.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.web.v2016_09_01.models._models_py3.Resource
AppServicePlan

Constructor

AppServicePlan(*, location: str, kind: Optional[str] = None, tags: Optional[Dict[str, str]] = None, sku: Optional[azure.mgmt.web.v2016_09_01.models._models_py3.SkuDescription] = None, name_properties_name: Optional[str] = None, worker_tier_name: Optional[str] = None, admin_site_name: Optional[str] = None, hosting_environment_profile: Optional[azure.mgmt.web.v2016_09_01.models._models_py3.HostingEnvironmentProfile] = None, per_site_scaling: Optional[bool] = False, is_spot: Optional[bool] = None, spot_expiration_time: Optional[datetime.datetime] = None, reserved: Optional[bool] = False, target_worker_count: Optional[int] = None, target_worker_size_id: Optional[int] = None, **kwargs)

Parameters

kind
str
Required

Kind of resource.

location
str
Required

Required. Resource Location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

sku
SkuDescription
Required

Description of a SKU for a scalable resource.

name_properties_name
str
Required

Name for the App Service plan.

worker_tier_name
str
Required

Target worker tier assigned to the App Service plan.

admin_site_name
str
Required

App Service plan administration site.

hosting_environment_profile
HostingEnvironmentProfile
Required

Specification for the App Service Environment to use for the App Service plan.

per_site_scaling
bool
Required

If <code>true</code>, apps assigned to this App Service plan can be scaled independently. If <code>false</code>, apps assigned to this App Service plan will scale to all instances of the plan.

is_spot
bool
Required

If <code>true</code>, this App Service Plan owns spot instances.

spot_expiration_time
datetime
Required

The time when the server farm expires. Valid only if it is a spot server farm.

reserved
bool
Required

If Linux app service plan <code>true</code>, <code>false</code> otherwise.

target_worker_count
int
Required

Scaling worker count.

target_worker_size_id
int
Required

Scaling worker size ID.

Variables

id
str

Resource Id.

name
str

Resource Name.

type
str

Resource type.

status
str or StatusOptions

App Service plan status. Possible values include: "Ready", "Pending", "Creating".

subscription
str

App Service plan subscription.

maximum_number_of_workers
int

Maximum number of instances that can be assigned to this App Service plan.

geo_region
str

Geographical location for the App Service plan.

number_of_sites
int

Number of apps assigned to this App Service plan.

resource_group
str

Resource group of the App Service plan.

provisioning_state
str or ProvisioningState

Provisioning state of the App Service Environment. Possible values include: "Succeeded", "Failed", "Canceled", "InProgress", "Deleting".