【Azure】「az webapp up」コマンドでエラー「The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.」
Microsoft Leanの以下の演習内で引っかかった箇所があったのでメモ。
AppService内に.NET Coreアプリをデプロイするコマンド
az webapp up \ --resource-group Learn-XXXX-XXXX-... \ --sku F1 \ --name $WEBAPPNAME
上記を実行すると、以下のエラーが発生。
The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.
どうも、デフォルトで設定されているリージョンではデプロイできない権限設定になっているようだったので、
--location
オプションで許可されていそうなリージョンを設定してみてコマンド実行。
az webapp up \ --resource-group Learn-XXXX-XXXX-... \ --sku F1 \ --name $WEBAPPNAME \ --location eastus
無事デプロイされました。