共用方式為


Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord

取得與指定資料庫相關聯的所有弱點評估掃描記錄。

語法

Default (預設值)

Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord
    [-ServerName] <String>
    [-DatabaseName] <String>
    [-InputObject <AzureSqlDatabaseModel>]
    [-ScanId <String>]
    [-ResourceGroupName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord Cmdlet 會擷取與指定資料庫相關聯的所有弱點評定掃描記錄。 請注意,您必須執行 Enable-AzSqlServerAdvancedDataSecurityUpdate-AzSqlServerVulnerabilityAssessmentSetting Cmdlet 作為使用此 Cmdlet 的必要條件。

範例

範例 1:取得掃描 ID 所識別的特定弱點評量掃描結果

Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord `
            -ResourceGroupName "ResourceGroup01" `
            -ServerName "Server01" `
            -DatabaseName "Database01" `
            -ScanId "myScan"
ResourceGroupName	        	: ResourceGroup01
ServerName	                	: Server01
DatabaseName		            : Database01
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/Server01/Database01/scan_myScan/.json
NumberOfFailedSecurityChecks    : 0

範例 2:取得具有資料庫物件的掃描識別碼所識別的特定弱點評量掃描結果

Get-AzSqlDatabase `
            -ResourceGroupName "ResourceGroup01" `
            -ServerName "Server01" `
            -DatabaseName "Database01" `
            | Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord  `
                -ScanId "myScan"
ResourceGroupName	        	: ResourceGroup01
ServerName	                	: Server01
DatabaseName		            : Database01
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/Server01/Database01/scan_myScan/.json
NumberOfFailedSecurityChecks    : 0

範例 3:取得指定資料庫上的所有弱點評量掃描結果

Get-AzSqlDatabase `
            -ResourceGroupName "ResourceGroup01" `
            -ServerName "Server01" `
            -DatabaseName "Database01" `
            | Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord
ResourceGroupName	        	: ResourceGroup01
ServerName	                	: Server01
DatabaseName		            : Database01
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/Server01/Database01/scan_myScan/.json
NumberOfFailedSecurityChecks    : 0


ResourceGroupName	        	: ResourceGroup01
ServerName	                	: Server01
DatabaseName		            : Database01
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/Server01/Database01/scan_myScan/.json
NumberOfFailedSecurityChecks    : 0

參數

-DatabaseName

SQL 資料庫名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:2
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-InputObject

要取得漏洞評估掃描記錄的資料庫物件

參數屬性

類型:AzureSqlDatabaseModel
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ResourceGroupName

資源群組的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ScanId

指定掃描 ID。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ServerName

SQL Database 伺服器名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:1
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

String

AzureSqlDatabaseModel

輸出

DatabaseVulnerabilityAssessmentScanRecordModel