To create an app service plan, which is a prerequisite to creating a web app and sets the compute/pricing, use az appservice plan create:
az appservice plan create \
--resource-group $rg \
--name $app_plan \
--sku B1 \
--is-linux
$rg is the existing resource group’s name, and $app_plan is the new app service’s name.