你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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>]
说明
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord cmdlet 检索与给定托管 SQL 池关联的所有漏洞评估扫描记录(s)。 请注意,需要运行 Enable-AzSynapseSqlAdvancedThreatProtection 和 Update-AzSynapseSqlPoolVulnerabilityAssessmentSetting cmdlet 作为使用此 cmdlet 的先决条件。
示例
示例 1 - 获取扫描 ID 标识的特定漏洞评估扫描结果
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 池对象获取扫描 ID 标识的特定漏洞评估扫描结果
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
指定扫描 ID。
类型: | 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