Code Monkey home page Code Monkey logo

simple-flask-azd's Introduction

Simple Flask AZD Template

The most basic Flask "hello world" application as an AZD template ready for Azure App Service

system diagram

Usage

  1. Install AZD and run the following command to initialize the project.
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.
  1. 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.
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.

  1. 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 for details on paid SKUs replace the SKU option with a suitable choice.

simple-flask-azd's People

Contributors

pamelafox avatar surenderssm avatar tonybaloney avatar v-xuto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

simple-flask-azd's Issues

AlwaysOn cannot be set for this site as the plan does not allow it.

Describe the issue:
AlwaysOn cannot be set for this site because it uses the F1 (free) SKU for app service. There will be a conflict.

Repro Steps:

  1. Execute command azd up -t tonybaloney/simple-flask-azd, and you will see the error as below:
    image

Environments:

Suggestion:
Please upgrade the SKU for app service or set AlwaysOn to false.

Expected behavior:
Execute command azd up -t tonybaloney/simple-flask-azd successfully.

@tonybaloney for notification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.