共用方式為


az security pricing

啟用管理訂用帳戶的 Azure Defender 方案。

命令

名稱 Description 類型 狀態
az security pricing create

更新訂用帳戶的 Azure Defender 方案。

Core GA
az security pricing list

顯示訂用帳戶的 Azure Defender 方案。

Core GA
az security pricing show

顯示訂用帳戶的 Azure Defender 方案。

Core GA

az security pricing create

更新訂用帳戶的 Azure Defender 方案。

az security pricing create --name
                           --tier
                           [--extensions]
                           [--subplan]

範例

更新訂用帳戶的 Azure Defender 方案。

az security pricing create -n VirtualMachines --tier standard

使用 suplan 和 extensions 更新訂用帳戶的 Azure Defender 方案

az security pricing create -n VirtualMachines --tier standard --subplan P2 --extensions name=MdeDesignatedSubscription isEnabled=False --extensions name=AgentlessVmScanning isEnabled=True additionalExtensionProperties='{"ExclusionTags":"[{\"key\":\"A\",\"value\":\"B\"}]"}'

必要參數

--name -n

要擷取的資源名稱。

--tier

定價層類型。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--extensions

定價延伸模組。

--subplan

配套 suplan。

全域參數
--debug

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False

az security pricing list

顯示訂用帳戶的 Azure Defender 方案。

az security pricing list

範例

顯示訂用帳戶的 Azure Defender 方案。

az security pricing list
全域參數
--debug

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False

az security pricing show

顯示訂用帳戶的 Azure Defender 方案。

az security pricing show --name

範例

顯示訂用帳戶的 Azure Defender 方案

az security pricing show -n VirtualMachines

必要參數

--name -n

要擷取的資源名稱。

全域參數
--debug

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False