https://github.com/achandmsft/azflaskup
Deploy a Python Flask app using the Azure CLI (http://aka.ms/cli)
https://github.com/achandmsft/azflaskup
az azure azure-app-service azwebappup cli cloud flask linux python web
Last synced: 27 days ago
JSON representation
Deploy a Python Flask app using the Azure CLI (http://aka.ms/cli)
- Host: GitHub
- URL: https://github.com/achandmsft/azflaskup
- Owner: achandmsft
- License: mit
- Created: 2019-04-27T22:08:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T04:59:13.000Z (over 6 years ago)
- Last Synced: 2026-03-06T22:58:39.775Z (4 months ago)
- Topics: az, azure, azure-app-service, azwebappup, cli, cloud, flask, linux, python, web
- Language: Python
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploying a Python app on Azure
Go to http://shell.azure.com and run the following (Or run locally using the [Azure CLI](http://aka.ms/cli)) -
# Deploy the app
The name for your app must be globally unique as it will prefix the website address: http://yourapp.azurewebsites.net/
$ git clone https://github.com/achandmsft/azflaskup
$ cd azflaskup
$ az webapp up --name --location centralus
# Make changes and redeploy the app
$ code app.py
$ az webapp up --name --location centralus
For more on Azure CLI, go to http://aka.ms/cli (az webapp up: http://aka.ms/azwebappup)
# Known issue
If you get an exception with the above in shell.azure.com that resource group name is invalid, run az login and complete the instructions clicking on the devicelogin link and pasting the code from the az login output.
# Contributing
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.