---
# System prepended metadata

title: Create Azure App Service Resource

---

# Create Azure App Service Resource

## Creating resources (web application)
Go to marketplace or search web app from search field 

1. Create App Service (Select Web Application)O
![image](https://hackmd.io/_uploads/HyISPojFa.png)

2. Create > 
![image](https://hackmd.io/_uploads/SJTxKjiKa.png)

3. Next..... Next review and create
4. Wait till successful deploy 
![image](https://hackmd.io/_uploads/HyG5Ksjt6.png)
Click Go to resources for over view
5. Preview of the resources
![image](https://hackmd.io/_uploads/rkwRtojYT.png)

6. When Uploading code, if you want to automatically deploy from a zip file, go to the Configuration page
![image](https://hackmd.io/_uploads/SJmaciiFp.png)

7. Set the name and value = true and hit ok
SCM_DO_BUILD_DURING_DEPLOYMENT
![image](https://hackmd.io/_uploads/rJwJfp3F6.png)

8. Don't forget to save
![image](https://hackmd.io/_uploads/ByXMGa3Kp.png)

Configuration setup for startup command (flask)
If app.py
gunicorn --bind=0.0.0.0 --timeout 600 app:app

## Upload zip file and deploy
```
zipfileexample
   ├ app.py
   └ Other files
```
1.[ Official Implementation: Deploy your application code to azure ](https://learn.microsoft.com/en-us/azure/app-service/quickstart-python?tabs=flask%2Cmac-linux%2Cazure-portal%2Czip-deploy%2Cdeploy-instructions-azportal%2Cterminal-bash%2Cdeploy-instructions-zip-azcli#3---deploy-your-application-code-to-azure)





## Setting up your PC for azure cli
[Install azure cli and deploy as zip](https://hackmd.io/1mwriA6EQyi1ZrPU-446Ww)




Optional
 Open Advance tools and Go
![image](https://hackmd.io/_uploads/r1OEET3tT.png)

 You will be redirected to the azure app service 
![image](https://hackmd.io/_uploads/S1XPV63tp.png)