az staticwebapp appsettings

Manage app settings of Functions of the static app.

Commands

az staticwebapp appsettings delete

Delete function app settings with given keys of the static app.

az staticwebapp appsettings list

List function app settings of the static app. A function must first be deployed to use this method.

az staticwebapp appsettings set

Set (replace) function app settings of the static app.

az staticwebapp appsettings delete

Delete function app settings with given keys of the static app.

az staticwebapp appsettings delete --name
                                   --setting-names
                                   [--resource-group]
                                   [--subscription]

Examples

Delete given app settings of the static app.

az staticwebapp appsettings delete -n MyStaticAppName --setting-names key1 key2

Required Parameters

--name -n

Name of the static site.

--setting-names

Space-separated app setting names.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az staticwebapp appsettings list

List function app settings of the static app. A function must first be deployed to use this method.

az staticwebapp appsettings list --name
                                 [--query-examples]
                                 [--resource-group]
                                 [--subscription]

Examples

List function app settings of the static app.

az staticwebapp appsettings list -n MyStaticAppName

Required Parameters

--name -n

Name of the static site.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az staticwebapp appsettings set

Set (replace) function app settings of the static app.

az staticwebapp appsettings set --name
                                --setting-names
                                [--resource-group]
                                [--subscription]

Examples

Set (replace) function app settings of the static app.

az staticwebapp appsettings set -n MyStaticAppName --setting-names key1=val1 key2=val2

Required Parameters

--name -n

Name of the static site.

--setting-names

Space-separated app settings in 'key=value' format.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.