Skip to content

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

Notifications You must be signed in to change notification settings

ChinmayGajul/Azure-CLI-Flask-Deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages