Web App
Overview
{
"web_app": {
"name": "web-app-{env}",
"@plan_name": "plan-consump-{env}",
"runtime": "python",
"@application_insights_name": "appi-insights-{env}",
"@log_analytics_workspace_name": "log-workspace-{env}",
"cors": {
"allowed_origins": ["http://localhost:3000"],
"support_credentials": true
},
"keyvault": {
"key_vault_name": "kv-vault-{env}",
"secrets": { "default_key": "defaultappkey" }
},
"app_settings": [
{
"name": "MY_APP_SETTING",
"value": "MY_APP_SETTING_VALUE"
},
{
"name": "MY_OTHER_APP_SETTING",
"value": "MY_OTHER_APP_SETTING_VALUE"
}
],
"custom_domains": [
{
"custom_domain": "fct.cyncly-platform.com",
"@dns_zone_name": "cyncly-platform.com",
"dns_zone_resource_group": "rg-dns"
}
],
"vnet_config": {
"@vnet_name": "vnet-int-{env}",
"@subnet_name": "snet-int-{env}"
},
"slot_settings": {
"enabled": true,
"name": "staging"
},
"location": "northeurope",
"external": false,
"resource_group_name": "my-rg-name",
"tags": { "example": "S0" }
}
}
Web App Reference
| Key | Value | Description |
|---|
name (required) | string | The name of the web app (see how to name) |
@plan_name (required) | string (reference to an app service plan) | A reference to a defined App Service plan |
runtime (required) | Runtime | Language that your web app will be running |
@application_insights_name | string (reference to an application insights component) | A reference to a defined Application Insights component (defaults to no insights integration) |
@log_analytics_workspace_name | string (reference to a log workspace) | The name of the workspace that you want to attach to (defaults to no log integration) |
keyvault | Keyvault | The name of the Keyvault that this web app will have Get access (defaults to no keyvault config) |
app_settings | array of key value pairs | The application settings to pass to the web app (defaults to no settings) |
custom_domains | array of CustomDomain | Custom Domains for your web app (defaults to no custom domains) |
cors | CORS | The CORS configuration (defaults to no cors configuration) |
vnet_config | Virtual Network | Virtual Network configuration for your web app (defaults to no vnet_config meaning no integration) |
slot_settings | SlotSettings | Deployment slot for the Function App (defaults to false) |
location | string | Resource Location (defaults to the resource group location) |
external | bool | A reference to an existing web app (defaults to false) |
resource_group_name | string | The name of the resource group where the resource is located, only with external resources (defaults to the resource group of the deployment) |
tags | object | Additional tags for the resource (defaults to no additional tags) |
Runtime
| Value | Description |
|---|
custom | You will use this one if none of the options are the right one |
dotnet | If your application runs in Dotnet use this option |
java | If your application runs in Java use this option |
node | If your application runs in NodeJS use this option |
powershell | If your script runs in Powershell use this option |
python | If your application runs in Python use this option |
docker | The Docker type configuration |
DockerRuntime
| Key | Value | Description |
|---|
domain | string | The domain of the registry (ex: registry.azurecr.io) |
repository | string | The repository name |
image | string | The image name to use |
tag | string | The tag name to use |
Keyvault
| Key | Value | Description |
|---|
@key_vault_name | string | Keyvault name that your web app will have Get access |
secrets | object | The name and the value of the secret |
CustomDomain
| Value | Description |
|---|
custom_domain | The value of the custom domain (including parent domain) |
@dns_zone_name | The name of the dns zone in Azure |
dns_zone_resource_group | The name of the resource group that contains your dns zone |
VirtualNetwork
| Key | Value | Description |
|---|
@vnet_name | string | The name of the virtual network |
@subnet_name | object | The name of the subnet |
SlotSettings
| Key | Type | Description |
|---|
enabled (required) | bool | Whether the slot is activated or not |
name | string | The optional name value for the slot (defaults to preprod) |
Cors
| Key | Type | Description |
|---|
allowed_origins (required) | string[] | The list of origins to allow |
support_credentials (required) | bool | Whether credentials are allowed or not |