Azure Classroomnotes 16/Oct/2022

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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%