webapp_create_for_container
Create a Web App for Containers on Azure App Service using a container image from a registry, with options for plan, environment variables, and VNet integration.
Instructions
Create a Web App for Containers on Azure App Service.
Args: name: Web app name (must be unique across Azure) resource_group: Resource group to deploy to plan_name: App Service plan name plan_sku: SKU tier (P1v2, P2v2, P3v2, etc.) plan_tier: SKU tier (PremiumV2, PremiumV3, etc.) location: Azure region (defaults to resource group location) image: Container image (e.g., myregistry.azurecr.io/myapp:latest) registry_url: Container registry URL (e.g., myregistry.azurecr.io) registry_username: Registry username (admin user) registry_password: Registry password/access key os_type: OS type - 'linux' or 'windows' multi_container: Whether to use multi-container (Docker Compose) startup_command: Startup command (e.g., 'python app.py') env_variables: Environment variables as JSON string (optional) vnet_subnet_id: Subnet resource ID for VNet integration assign_identity: Whether to assign system-assigned managed identity
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| resource_group | Yes | ||
| plan_name | Yes | ||
| plan_sku | No | P1v2 | |
| plan_tier | No | PremiumV2 | |
| location | No | ||
| image | No | ||
| registry_url | No | ||
| registry_username | No | ||
| registry_password | No | ||
| os_type | No | linux | |
| multi_container | No | ||
| startup_command | No | ||
| env_variables | No | ||
| vnet_subnet_id | No | ||
| assign_identity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |