Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 1.78 KB

File metadata and controls

70 lines (53 loc) · 1.78 KB
titledescriptionms.datems.topicms.devlangms.service
Azure App Service SDK for Python
Reference for Azure App Service SDK for Python
04/28/2025
reference
python
appservice

Azure Web Apps libraries for Python

Overview

Deploy and scale websites, web applications, services, and REST APIs with Azure App Service.

To get started with Azure App Service, see Create a Python web app in Azure.

Management API

Deploy, manage, and scale elements hosted in the Azure App Service with the management API.

Install the library via pip.

pip install azure-mgmt-web

Example

Deploy a webapp from a GitHub repository into Azure Web App.

siteConfiguration=SiteConfig( python_version='3.4' ) # create a web appweb_client.web_apps.create_or_update( RESOURCE_GROUP_NAME, WEB_APP_NAME, Site( location='eastus', server_farm_id=SERVICE_PLAN_ID, site_config=siteConfiguration ) ) # continuous deployment with GitHubsource_control_async_operation=web_client.web_apps.create_or_update_source_control( RESOURCE_GROUP_NAME, WEB_APP_NAME, SiteSourceControl( location='GitHub', repo_url='https://github.com/lisawong19/python-docs-hello-world', branch='master' ) )

[!div class="nextstepaction"] Explore the Management APIs

Samples

View the complete list of web application samples.

close