az webapp config connection-string

Manage a web app's connection strings.

Commands

az webapp config connection-string delete Delete a web app's connection strings.
az webapp config connection-string list
az webapp config connection-string set Update a web app's connection strings.

az webapp config connection-string delete

Delete a web app's connection strings.

az webapp config connection-string delete --name
--resource-group
--setting-names
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
--setting-names
Space separated connection-string names.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp config connection-string list

az webapp config connection-string list --name
--resource-group
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp config connection-string set

Update a web app's connection strings.

az webapp config connection-string set --connection-string-type {ApiHub, Custom, DocDb, EventHub, MySql, NotificationHub, PostgreSQL, RedisCache, SQLAzure, SQLServer, ServiceBus}
--name
--resource-group
[--settings]
[--slot]
[--slot-settings]

Examples

Add a mysql connection string.

az webapp config connection-string set -g MyResourceGroup -n MyUniqueApp -t mysql     --settings mysql1='Server=myServer;Database=myDB;Uid=myUser;Pwd=myPwd;'

Required Parameters

--connection-string-type -t
Connection string type.
accepted values: ApiHub, Custom, DocDb, EventHub, MySql, NotificationHub, PostgreSQL, RedisCache, SQLAzure, SQLServer, ServiceBus
--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--settings
Space separated connection-string in a format of =.
--slot -s
The name of the slot. Default to the productions slot if not specified.
--slot-settings
Space separated slot connection-string in a format of =.