az security va sql scans
檢視 Sql 弱點評量掃描摘要。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az security va sql scans list |
列出所有 Sql 弱點評估掃描摘要。 |
Core | GA |
az security va sql scans show |
檢視 Sql 弱點評量掃描摘要。 |
Core | 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
必要參數
掃描的資料庫名稱。
掃描伺服器的名稱。
掃描計算機的資源識別碼。 針對內部部署機器,請提供您的工作區資源標識符。
線上到掃描機器之工作區的標識碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
僅針對內部部署資源,在掃描的計算機上提供代理程式的標識碼。
僅針對內部部署資源提供計算機的名稱。
僅針對內部部署資源提供掃描計算機的 UUID。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
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
必要參數
掃描的資料庫名稱。
掃描的標識碼。
掃描伺服器的名稱。
掃描計算機的資源識別碼。 針對內部部署機器,請提供您的工作區資源標識符。
線上到掃描機器之工作區的標識碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
僅針對內部部署資源,在掃描的計算機上提供代理程式的標識碼。
僅針對內部部署資源提供計算機的名稱。
僅針對內部部署資源提供掃描計算機的 UUID。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |