← 返回命令列表

Linux command

az-appservice 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all App Service plans

az appservice plan list

Show an App Service plan

az appservice plan show --name [plan_name] --resource-group [rg_name]

Create an App Service plan

az appservice plan create --name [plan_name] --resource-group [rg_name] --sku [B1] --is-linux

Scale an App Service plan

az appservice plan update --name [plan_name] --resource-group [rg_name] --sku [S1]

Delete an App Service plan

az appservice plan delete --name [plan_name] --resource-group [rg_name]

List available locations

az appservice list-locations --sku [S1]

Show ASE (App Service Environment)

az appservice ase show --name [ase_name] --resource-group [rg_name]

说明

az appservice is a subcommand of the Azure CLI that manages Azure App Service plans and environments. App Service plans define the compute resources and pricing tier for hosting web apps, API apps, mobile backends, and function apps. Plans determine the region, number of VM instances, instance size, and pricing tier (Free, Shared, Basic, Standard, Premium, Isolated). Multiple apps can share the same plan, sharing the allocated compute resources. App Service Environments (ASE) provide fully isolated, dedicated environments for running App Service apps at high scale, with direct VNet integration and private endpoints.

参数

plan list
List all App Service plans.
plan show
Get details of a plan.
plan create
Create a new App Service plan.
plan update
Modify plan settings or scale tier.
plan delete
Remove an App Service plan.
list-locations
List regions supporting App Service.
ase list
List App Service Environments.
ase show
Get ASE details.
ase create
Create an App Service Environment.
--name _name_
Plan or ASE name.
--resource-group _rg_
Resource group containing the resource.
--sku _sku_
Pricing tier (F1, D1, B1, B2, B3, S1, S2, S3, P1v2, P2v2, P3v2, etc.).
--is-linux
Create a Linux plan.
--number-of-workers _count_
Number of instances to allocate.
--location _region_
Azure region.

FAQ

What is the az-appservice command used for?

az appservice is a subcommand of the Azure CLI that manages Azure App Service plans and environments. App Service plans define the compute resources and pricing tier for hosting web apps, API apps, mobile backends, and function apps. Plans determine the region, number of VM instances, instance size, and pricing tier (Free, Shared, Basic, Standard, Premium, Isolated). Multiple apps can share the same plan, sharing the allocated compute resources. App Service Environments (ASE) provide fully isolated, dedicated environments for running App Service apps at high scale, with direct VNet integration and private endpoints.

How do I run a basic az-appservice example?

Run `az appservice plan list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does plan list do in az-appservice?

List all App Service plans.