AppServicePlanPatchResource Class

ARM resource for a app service plan.

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

Inheritance
azure.mgmt.web.v2019_08_01.models._models_py3.ProxyOnlyResource
AppServicePlanPatchResource

Constructor

AppServicePlanPatchResource(*, kind: Optional[str] = None, worker_tier_name: Optional[str] = None, hosting_environment_profile: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.HostingEnvironmentProfile] = None, per_site_scaling: Optional[bool] = False, maximum_elastic_worker_count: Optional[int] = None, is_spot: Optional[bool] = None, spot_expiration_time: Optional[datetime.datetime] = None, free_offer_expiration_time: Optional[datetime.datetime] = None, reserved: Optional[bool] = False, is_xenon: Optional[bool] = False, hyper_v: Optional[bool] = False, target_worker_count: Optional[int] = None, target_worker_size_id: Optional[int] = None, **kwargs)

Parameters

kind
str
Required

Kind of resource.

worker_tier_name
str
Required

Target worker tier assigned to the App Service plan.

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.

maximum_elastic_worker_count
int
Required

Maximum number of total workers allowed for this ElasticScaleEnabled App Service 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.

free_offer_expiration_time
datetime
Required

The time when the server farm free offer expires.

reserved
bool
Required

This needs to set to <code>true</code> when creating a Linux App Service Plan, along with <code>kind</code> set to <code>Linux</code>. It should be <code>false</code> otherwise.

is_xenon
bool
Required

Obsolete: If Hyper-V container app service plan <code>true</code>, <code>false</code> otherwise.

hyper_v
bool
Required

If Hyper-V container 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".