共用方式為


az security va sql scans

檢視 Sql 弱點評量掃描摘要。

命令

名稱 Description 類型 狀態
az security va sql scans list

列出所有 Sql 弱點評估掃描摘要。

核心 GA
az security va sql scans show

檢視 Sql 弱點評量掃描摘要。

核心 GA

az security va sql scans list

列出所有 Sql 弱點評估掃描摘要。

az security va sql scans list --database-name
                              --server-name
                              --vm-resource-id
                              --workspace-id
                              [--agent-id]
                              [--vm-name]
                              [--vm-uuid]

範例

列出 Azure 虛擬機上的所有 Sql 弱點評量掃描摘要。

az security va sql scans list --vm-resource-id subscriptions/MySubscription/ResourceGroups/MyResourceGroup/Providers/Microsoft.Compute/VirtualMachines/MyVmName --workspace-id 00000000-0000-0000-0000-000000000000 --server-name MyServerName --database-name MyDbName

列出內部部署機器上的所有 Sql 弱點評量掃描摘要。

az security va sql scans list --vm-resource-id subscriptions/MySubscription/ResourceGroups/MyResourceGroup/Providers/Microsoft.OperationalInsights/Workspaces/MyWorkspaceName --workspace-id 00000000-0000-0000-0000-000000000000 --server-name MyServerName --database-name MyDbName --vm-name MyVmName --agent-id MyAgentId --vm-uuid MyVmUUID

必要參數

--database-name

掃描的資料庫名稱。

--server-name

掃描伺服器的名稱。

--vm-resource-id

掃描計算機的資源識別碼。 針對內部部署機器,請提供您的工作區資源標識符。

--workspace-id

線上到掃描機器之工作區的標識碼。

選擇性參數

--agent-id

僅針對內部部署資源,在掃描的計算機上提供代理程式的標識碼。

--vm-name

僅針對內部部署資源提供計算機的名稱。

--vm-uuid

僅針對內部部署資源提供掃描計算機的 UUID。

全域參數
--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 security va sql scans show

檢視 Sql 弱點評量掃描摘要。

az security va sql scans show --database-name
                              --scan-id
                              --server-name
                              --vm-resource-id
                              --workspace-id
                              [--agent-id]
                              [--vm-name]
                              [--vm-uuid]

範例

檢視 Azure 虛擬機上的 Sql 弱點評量掃描摘要。

az security va sql scans show --vm-resource-id subscriptions/MySubscription/ResourceGroups/MyResourceGroup/Providers/Microsoft.Compute/VirtualMachines/MyVmName --workspace-id 00000000-0000-0000-0000-000000000000 --server-name MyServerName --database-name MyDbName --scan-id MyScanId

在內部部署計算機上檢視 Sql 弱點評量掃描摘要。

az security va sql scans show --vm-resource-id subscriptions/MySubscription/ResourceGroups/MyResourceGroup/Providers/Microsoft.OperationalInsights/Workspaces/MyWorkspaceName --workspace-id 00000000-0000-0000-0000-000000000000 --server-name MyServerName --database-name MyDbName --vm-name MyVmName --agent-id MyAgentId --vm-uuid MyVmUUID --scan-id MyScanId

必要參數

--database-name

掃描的資料庫名稱。

--scan-id

掃描的標識碼。

--server-name

掃描伺服器的名稱。

--vm-resource-id

掃描計算機的資源識別碼。 針對內部部署機器,請提供您的工作區資源標識符。

--workspace-id

線上到掃描機器之工作區的標識碼。

選擇性參數

--agent-id

僅針對內部部署資源,在掃描的計算機上提供代理程式的標識碼。

--vm-name

僅針對內部部署資源提供計算機的名稱。

--vm-uuid

僅針對內部部署資源提供掃描計算機的 UUID。

全域參數
--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。