JEuvin
JEuvin

Reputation: 1041

How to host Azure Python API via Azure Data Storage

I have python scripts that I want to host as a web app in azure.

How can I got about doing this?

Upvotes: 0

Views: 141

Answers (1)

anon
anon

Reputation:

  1. Create Function App of Runtime Stack Python supported only in Linux Version in any Hosting Plan through Azure Portal.
  2. Make the Continuous Deployment setting to GitHub under Deployment Center of the function app in the portal like below:

enter image description here After authorizing, provide your GitHub Repository details in the same section.

  1. Create the Azure Python Functions from VS Code and deploy to the GitHub Repository using Git Clone through Command Palette.

enter image description here

  1. After that, you can deploy the functions to azure function app. enter image description here

Here after publishing to azure, you'll get the Azure Functions Python Rest API.

  • I want some devs to be able to change the scripts in the azure data storage and reflect the changes live without having to deploy.

Whenever you or dev's make changes the changes in code through GitHub and commit the changes, then it automatically reflects in the Azure Portal Function App.

For more information, please refer this article and GitHub actions of editing the code/script files.

Upvotes: 1

Related Questions