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.
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.
-
Azure Login:
az login
Command to log in to Azure to access your account and subscription.
-
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.
-
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.
-
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.
-
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.
-
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.
Congratulations! You've explored the repository showcasing a simple Flask application deployed on Azure Web Apps.