az webapp config appsettings
設定 Web 應用程式設定。 更新或移除應用程式設定會導致應用程式回收。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az webapp config appsettings delete |
刪除 Web 應用程式設定。 |
Core | GA |
| az webapp config appsettings list |
取得 Web 應用程式設定的詳細資料。 |
Core | GA |
| az webapp config appsettings set |
設定 Web 應用程式的設定。 |
Core | GA |
az webapp config appsettings delete
刪除 Web 應用程式設定。
請注意,設定值現在會在結果中修訂。 請使用 az webapp config appsettings list 命令來檢視設定。
az webapp config appsettings delete --setting-names
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
範例
刪除 Web 應用程式設定。 (autogenerated)
az webapp config appsettings delete --name MyWebApp --resource-group MyResourceGroup --setting-names {setting-names}
必要參數
以空格分隔的appsettings名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
位置的名稱。 如果未指定,則預設為生產位置。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az webapp config appsettings list
取得 Web 應用程式設定的詳細資料。
az webapp config appsettings list --name
--resource-group
[--slot]
範例
取得 Web 應用程式設定的詳細資料。 (autogenerated)
az webapp config appsettings list --name MyWebapp --resource-group MyResourceGroup --subscription MySubscription
必要參數
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
位置的名稱。 如果未指定,則預設為生產位置。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az webapp config appsettings set
設定 Web 應用程式的設定。
請注意,設定值現在會在結果中修訂。 請使用 az webapp config appsettings list 命令來檢視設定。
az webapp config appsettings set [--ids]
[--name]
[--resource-group]
[--settings]
[--slot]
[--slot-settings]
[--subscription]
範例
將 Web 應用程式的預設 NodeJS 版本設定為 6.9.1。
az webapp config appsettings set -g MyResourceGroup -n MyUniqueApp --settings WEBSITE_NODE_DEFAULT_VERSION=6.9.1
使用機碼/值組和 json 檔案來設定更多設定。
az webapp config appsettings set -g MyResourceGroup -n MyUniqueApp --settings mySetting=value @moreSettings.json
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
KEY=VALUE 格式的空間分隔 appsettings。 使用 @{file} 從檔案載入。 如需有關檔案格式和大量編輯應用程式設定的詳細資訊,請參閱 https://go.microsoft.com/fwlink/?linkid=2219923。
位置的名稱。 如果未指定,則預設為生產位置。
KEY=VALUE 格式的空間分隔 appsettings。 使用 @{file} 從檔案載入。 指定的設定會新增至組態,並預設標示為 [部署位置] 設定。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |