Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
取得與指定 sql 集區相關聯的所有弱點評估掃描記錄。
語法
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
[-ScanId <String>]
[-SqlPoolObject <PSSynapseSqlPool>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
[-ResourceGroupName <String>]
-WorkspaceName <String>
-Name <String>
[-ScanId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord Cmdlet 會擷取與指定受控 SQL 集區相關聯的所有弱點評估掃描記錄。 請注意,您必須執行 Enable-AzSynapseSqlAdvancedThreatProtection 和 Update-AzSynapseSqlPoolVulnerabilityAssessmentSetting Cmdlet 作為使用此 Cmdlet 的必要條件。
範例
範例 1 - 取得掃描標識碼所識別的特定弱點評估掃描結果
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord `
-ResourceGroupName "ResourceGroup01" `
-WorkspaceName "WorkspaceName01" `
-Name "Name01" `
-ScanId "myScan"
ResourceGroupName : ResourceGroup01
WorkspaceName : WorkspaceName01
Name : Name01
ScanId : myScan
TriggerType : OnDemand
State : Passed
StartTime : 6/11/2018 1:57:27 PM
EndTime : 6/11/2018 1:57:31 PM
Errors : {}
ScanResultsLocationPath : https://myaccount.blob.core.windows.net/vulnerability-assessment
scans/WorkspaceName01/Name01/scan_myScan/.json
NumberOfFailedSecurityChecks : 9
範例 2 - 使用 sql pool 物件取得掃描標識碼所識別的特定弱點評估掃描結果
Get-AzSynapseSqlPool `
-ResourceGroupName "ResourceGroup01" `
-WorkspaceName "WorkspaceName01" `
-Name "Name01" `
| Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord `
-ScanId "myScan"
ResourceGroupName : ResourceGroup01
WorkspaceName : WorkspaceName01
Name : Name01
ScanId : myScan
TriggerType : OnDemand
State : Passed
StartTime : 6/11/2018 1:57:27 PM
EndTime : 6/11/2018 1:57:31 PM
Errors : {}
ScanResultsLocationPath : https://myaccount.blob.core.windows.net/vulnerability-assessment
scans/WorkspaceName01/Name01/scan_myScan/.json
NumberOfFailedSecurityChecks : 9
範例 3 - 取得指定 SQL 集區上的所有弱點評估掃描結果
Get-AzSynapseSqlPool `
-ResourceGroupName "ResourceGroup01" `
-WorkspaceName "WorkspaceName01" `
-Name "Name01" `
| Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
ResourceGroupName : ResourceGroup01
WorkspaceName : WorkspaceName01
Name : Name01
ScanId : myScan
TriggerType : OnDemand
State : Passed
StartTime : 6/11/2018 1:57:27 PM
EndTime : 6/11/2018 1:57:31 PM
Errors : {}
ScanResultsLocationPath : https://myaccount.blob.core.windows.net/vulnerability-assessment
scans/WorkspaceName01/Name01/scan_myScan/.json
NumberOfFailedSecurityChecks : 9
ResourceGroupName : ResourceGroup01
WorkspaceName : WorkspaceName01
Name : Name01
ScanId : myScan1
TriggerType : OnDemand
State : Passed
StartTime : 6/12/2018 1:57:27 PM
EndTime : 6/12/2018 1:57:31 PM
Errors : {}
ScanResultsLocationPath : https://myaccount.blob.core.windows.net/vulnerability-assessment
scans/WorkspaceName01/Name01/scan_myScan/.json
NumberOfFailedSecurityChecks : 9
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
Synapse SQL 集區的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ScanId
指定掃描標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-SqlPoolObject
要取得弱點評估掃描記錄的 sql 集區物件
類型: | PSSynapseSqlPool |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-WorkspaceName
Synapse 工作區的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
輸入
輸出
Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessment.PSVulnerabilityAssessmentScanRecordModel