Azure-cli: error with --linux-workers-enabled flag "unrecognized arguments"

Created on 27 Feb 2017  路  3Comments  路  Source: Azure/azure-cli

Im using the dockerized version of the azure-cli 2.0. When i run the following command, I get an error.

command: bash-4.3# az appservice plan create -n random-plan -g random-app --is-linux

Output:

Plan with linux worker is not supported in current region. Run 'az appservice list-locations --linux-workers-enabled' to cross check
bash-4.3# az appservice list-locations --linux-workers-enabled
az: error: unrecognized arguments: --linux-workers-enabled
usage: az [-h] [--output {json,tsv,table,jsonc}] [--verbose] [--debug]
          [--query JMESPATH]
          {appservice} ...

Has the format changed for this flag? Does it work in the docker version of the cli?

Thank you.

All 3 comments

Hi @idkjs it seems that the flag mentioned in the error message is not supported by the command. Looking at the output of the command, it doesn't look like there's an obvious way to determine whether a location supports Linux workers or not. We'll look into the appropriate fix: either fixing the error message or enabling the flag. Thanks for your report!

cc/ @yugangw-msft

@derekbekoe, correct
It is a known feature missing in the new SDK, and we have an active thread going on with the webapp team. In the latest release, you should see an error with a link pointing to a page with valid regions

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dhermans picture dhermans  路  3Comments

cicorias picture cicorias  路  3Comments

derekbekoe picture derekbekoe  路  3Comments

seanknox picture seanknox  路  3Comments

williexu picture williexu  路  3Comments