Deploying Azure Apps using CLI
Deploying python flask application
Execute the following commands. Login into azure cli
az login
Create a new directory c:\temp\azureappdemo and cd into it
mkdir c:\temp\azureappdemo
cd c:\temp\azureappdemo
Now clone to get the code locally into your system
git clone https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart
check if python exists in your system. python --version. Download and install python or use choco install python & relaunch your terminal & cd c:\temp\azureappdemo\msdocs-python-flask-webapp-quickstart
Now execute the following commands
python -m venv .venv
.venv\scripts\Activate.ps1
pip install -r requirements.txt
Lets bring up the azure app service with some appservice plan
az webapp up --runtime PYTHON:3.9 --sku F1 --logs
IF the deployment is success we see the following output in the terminal
Now navigate to the url
Refer Here for the cli options