Microsoft.Web sites/config connectionstrings 2019-08-01
Template format
To create a Microsoft.Web/sites/config resource for connection strings, add the following JSON to the resources section of your template.
{
"name": "connectionstrings",
"type": "Microsoft.Web/sites/config",
"apiVersion": "2019-08-01",
"properties": {
"{connection-name}": {
"value": "string",
"type": "string"
}
}
}
Property values
The following tables describe the values you need to set in the schema.
Microsoft.Web/sites/config object
Name | Type | Required | Value |
---|---|---|---|
name | string | Yes | connectionstrings -or- {site-name}/connectionstrings |
type | enum | Yes | config -or- Microsoft.Web/sites/config See Set name and type for child resources. |
apiVersion | enum | Yes | 2019-08-01 |
properties | object | Yes | Connection string names and values. - ConnectionStrings object |
ConnectionStrings object
Name | Type | Required | Value |
---|---|---|---|
value | string | Yes | Value of pair. |
type | enum | Yes | Type of database. - MySql, SQLServer, SQLAzure, Custom, NotificationHub, ServiceBus, EventHub, ApiHub, DocDb,RedisCache, PostgreSQL |