共用方式為


az automanage best-practice

備註

此參考是 Azure CLI 的 自動管理 延伸模組的一部分(2.44.1 版或更高版本)。 擴充功能會在您第一次執行 az automanage best-practice 命令時自動安裝。 深入瞭解擴充功能

管理自動管理最佳做法。

命令

名稱 Description 類型 狀態
az automanage best-practice list

列出 Automanage 最佳做法。

擴充套件 GA
az automanage best-practice show

取得 Automanage 最佳做法的相關信息。

擴充套件 GA
az automanage best-practice version

管理 Automanage 最佳做法版本。

擴充套件 GA
az automanage best-practice version list

列出 Automanage 最佳做法版本。

擴充套件 GA
az automanage best-practice version show

取得 Automanage 最佳做法版本的相關信息。

擴充套件 GA

az automanage best-practice list

列出 Automanage 最佳做法。

az automanage best-practice list

範例

列出最佳做法

az automanage best-practice list
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

az automanage best-practice show

取得 Automanage 最佳做法的相關信息。

az automanage best-practice show --best-practice-name

範例

顯示最佳做法

az automanage best-practice show --best-practice-name {}

必要參數

--best-practice-name

Automanage 最佳做法名稱。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。