Giter Site home page Giter Site logo

chinmaygajul / azure-cli-flask-deployment Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 62 KB

This repository contains a simple Flask application deployed to Azure Web Apps.

Python 100.00%
azure-cli azure-resource-group azure-web-apps microsoft-azure azure-app-service-plan

azure-cli-flask-deployment's Introduction

Azure-CLI-Flask-Deployment

This project exemplifies deploying a basic Flask/FastAPI app on Azure Web Apps, including setup, configuration, and successful deployment, highlighting the process of hosting and configuring an application within the Azure environment.

Application Description:

The Flask application in this repository consists of a single endpoint that returns "Hello, Azure Web Apps!" when accessed. It's a basic demonstration of deploying a Flask application to Azure Web Apps.

Task Showcase

Screenshot

Deployment Process:

Azure CLI Commands Used:

  1. Azure Login:

    az login

    Command to log in to Azure to access your account and subscription.

  2. Create Resource Group:

    az group create --name "Flask-Resource" --location eastus

    Command to create a resource group named "Flask-Resource" in the East US region.

  3. Create App Service Plan:

    az appservice plan create --resource-group Flask-Resource --name myAppServicePlan --sku F1 --is-linux --location eastus

    Command to create an App Service plan named "myAppServicePlan" with the F1 (Free) SKU, Linux-based, in the East US region.

  4. Create Web App:

    az webapp create --resource-grouFlask-Resource --plan myAppServicePlan --name myFlaskApptak --runtime "PYTHON|3.8"

    Command to create a web app named "myFlaskApptak" within the "Flask-Resource" resource group using the Python 3.8 runtime.

  5. Configure Deployment Source:

    az webapp deployment source config --name myFlaskApptak --resource-group Triluxo-Task --repo-url https://github.com/ChinmayGajul/Azure-CLI-Flask-Deployment.git --branch main --manual-integration

    Command to configure deployment from the specified GitHub repository and branch for continuous deployment.

  6. Trigger Deployment:

    az webapp deployment source sync --name myFlaskApptak --resource-group Flask-Resource

    Command to initiate the deployment of the Flask application to the Azure Web App.

Conclusion

Congratulations! You've explored the repository showcasing a simple Flask application deployed on Azure Web Apps.

azure-cli-flask-deployment's People

Contributors

chinmaygajul avatar

Stargazers

 avatar

Watchers

 avatar

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.