Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonybaloney/simple-flask-azd
A tiny template for Azure Developer CLI with Flask running in App Service
https://github.com/tonybaloney/simple-flask-azd
azd-templates
Last synced: 3 days ago
JSON representation
A tiny template for Azure Developer CLI with Flask running in App Service
- Host: GitHub
- URL: https://github.com/tonybaloney/simple-flask-azd
- Owner: tonybaloney
- License: mit
- Created: 2023-02-16T00:09:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-06T09:30:22.000Z (over 1 year ago)
- Last Synced: 2024-10-18T07:15:58.096Z (4 months ago)
- Topics: azd-templates
- Language: Bicep
- Homepage:
- Size: 144 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Flask AZD Template
The most basic Flask "hello world" application as an AZD template ready for Azure App Service
![system diagram](diagram.png)
## Usage
1. Install AZD and run the following command to initialize the project.
```bash
azd init --template tonybaloney/simple-flask-azd
```This command will clone the code to your current folder and prompt you for the following information:
- `Environment Name`: This will be used as a prefix for the resource group that will be created to hold all Azure resources. This name should be unique within your Azure subscription.
2. Run the following command to build a deployable copy of your application, provision the template's infrastructure to Azure and also deploy the applciation code to those newly provisioned resources.
```bash
azd up
```This command will prompt you for the following information:
- `Azure Location`: The Azure location where your resources will be deployed.
- `Azure Subscription`: The Azure Subscription where your resources will be deployed.> NOTE: This may take a while to complete as it executes three commands: `azd package` (builds a deployable copy of your application), `azd provision` (provisions Azure resources), and `azd deploy` (deploys application code). You will see a progress indicator as it packages, provisions and deploys your application.
3. Then make changes to app.py and run `azd deploy` again to update your changes.
## Notes
This uses the F1 (free) SKU for app service, which has limited CPU and RAM resources.
See the [pricing calculator](https://azure.microsoft.com/en-au/pricing/calculator/) for details on paid SKUs replace the SKU option with a suitable choice.