azure-cli: webap: 'az appservice plan create' fails to create service plan with Linux OS and Free SKU
Describe the bug
Using command az appservice plan create
fails to create service plan with Linux operating system and free SKU in probably any region (I tried West Europe, North Europe and Central US), it returns follwing error:
Free SKU not supported in region "westeurope". Run the command with --location to use a supported region. See az appservice list-locations --sku F1 --linux-workers-enabled to see the list of supported regions
However listing the supported regions with following command az appservice list-locations --sku F1 --linux-workers-enabled
shows that the West Europe region is supported along with other regions I tried.
To Reproduce
I used the commands with following options, just replace <spname>
with name of the Service Plan and <rgname>
with Resouce Group name:
az appservice plan create --name <spname> --resource-group <rgname> --location "West Europe" --sku F1 --is-linux
az appservice plan create --name <spname> --resource-group <rgname> --location "North Europe" --sku F1 --is-linux
az appservice plan create --name <spname> --resource-group <rgname> --location "Central US" --sku F1 --is-linux
Expected behavior
Command should be able to create a service plan in specified region with free sku.
Environment summary
- Powershell Core 6.2.0
- Azure Cli 2.0.64
az appservice
0.2.19
Additional context
I also tried to create App Service Plan with Linux OS and West Europe region with different SKU such as B1
and the command went through fine, creating the service, however F1
didn’t worked. I also tried using --sku FREE
but it didn’t worked as well. Using “westeurope” as location or “West Europe” seems to have no difference. Creating Service Plan with Linux and Free SKU via Azure Portal works without any issues. Beside those I also tried changing region (Central US and North Europe) but it also threw exact same error that Free SKU is not supported in specified region.
I also attach log with the command: log
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (8 by maintainers)
I’m also getting the same error while using the latest version of Azure CLI.
I’m having the exact same issue and can’t automate the resource creation except by using B1 sku instead of F1. I confirm it works from Azure portal.
I still have issues running the command, same error message. Do I need to update anything? Edit:
@panchagnula Issue still persist on Azure CLI version 2.0.66
v2.0.66 of the CLI had the issue in my case, but the latest version (v2.0.69) does not have the issue; i.e., it works.
@Maissae thanks for the update - i will take a look.