The first step that we will have to do is to make sure that you are pointing to the right subscription. This is an extra step that you need to do if you have more than one subscription if you only have one subscription then you can ignore that.
In the first step we will create a resource group. I will use the following command to create it.
az group create --name appviacli --location westeurope
Run this command so that your context is set to the resource group that you just created. This means that every command that you will run now will be in context with ‘appviacli’ resource group.
az configure --defaults group=appviacli location=westeurope
After that, we will create an app service using the cli. Note at this point you need to have the code. I will run the following command to create the app service. You need to run this command from the same directory where the code lives.
az webapp up --name appviacli -g appviacli --logs --launch-browser
You will see the following logs once the command is successful
Now lets look in azure portal if the app is created or not
We can se the app is running and uploaded.