question

chaowenguo-9404 avatar image
0 Votes"
chaowenguo-9404 asked chaowenguo-9404 commented

Operation returned an invalid status 'Forbidden' on appservice

I use:
az group create -n app0 westus
az appservice plan create -n app0 -g app0 --sku F1 --is-linux

but get Operation returned an invalid status 'Forbidden'

azure-webapps
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for asking question! Could you please elaborate on what are you trying to achieve, to help you better on this.

If you want to create a new resource group using Azure CLI, try below command

az group create -l westus -n MyResourceGroup

further for creating an app service plan.

az appservice plan create -n Myapp -g MyResourceGroup --sku F1 --is-linux

Check these link for details:

https://docs.microsoft.com/en-US/cli/azure/group?view=azure-cli-latest#az_group_create

https://docs.microsoft.com/en-us/cli/azure/appservice/plan?view=azure-cli-latest#az_appservice_plan_create







0 Votes 0 ·

II want to create azure app by azure cli.

The first step is to create resource group, it is ok.

I can not finish the second step: to create appservice plan, it always return Operation returned an invalid status 'Forbidden'

0 Votes 0 ·

Thanks for reply! Which version of Azure CLI you are using? If you are using Bash? Could you please share screenshot to understand better on this.

0 Votes 0 ·
Show more comments

0 Answers