Librerie delle app Web di Azure per PythonAzure Web Apps libraries for Python
PanoramicaOverview
Distribuire e ridimensionare siti Web, applicazioni Web, servizi e API REST con il servizio app di Azure.Deploy and scale websites, web applications, services, and REST APIs with Azure App Service.
Per iniziare a usare il servizio app di Azure, vedere Creare un'app Web Python in Azure.To get started with Azure App Service, see Create a Python web app in Azure.
API di gestioneManagement API
Distribuire, gestire e ridimensionare gli elementi ospitati nel servizio app di Azure con l'API di gestione.Deploy, manage, and scale elements hosted in the Azure App Service with the management API.
Installare la libreria tramite pip.Install the library via pip.
pip install azure-mgmt-web
EsempioExample
Distribuire un'app Web da un repository di GitHub in un'app Web di Azure.Deploy a webapp from a GitHub repository into Azure Web App.
siteConfiguration = SiteConfig(
python_version='3.4'
)
# create a web app
web_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 GitHub
source_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'
)
)
EsempiSamples
- Gestire siti Web di Azure con PythonManage Azure websites with python
- Creare un flusso di lavoro di app per la logicaCreate a Logic App workflow
Visualizzare l'elenco completo di esempi di applicazioni Web.View the complete list of web application samples.