Get-AzPurviewScanResultScanHistory
Lists the scan history of a scan
Syntax
Default (Default)
Get-AzPurviewScanResultScanHistory
-Endpoint <String>
-DataSourceName <String>
-ScanName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Lists the scan history of a scan
Examples
Example 1: List all scan runs within a scan instance of a data source
Get-AzPurviewScanResultScanHistory -Endpoint 'https://parv-brs-2.purview.azure.com/' -DataSourceName 'DataScanTestData-Parv' -ScanName 'Scan1ForDemo' | Format-List
AssetsClassified : 62
AssetsDiscovered : 97
Code :
DataSourceType : AzureStorage
Detail :
DiagnosticExceptionCountMap : {
}
DiagnosticNotification : {}
EndTime : 2/15/2022 2:42:22 PM
ErrorMessage :
Id : 758a0499-b45e-40e3-9c06-408e2f3ac050
Message :
ParentId :
PipelineStartTime : 2/15/2022 2:36:21 PM
QueuedTime : 2/15/2022 2:34:06 PM
ResourceId : /subscriptions/xxxxxxxx-ffc5-465d-b5dd-xxxxxxxx/resourceGroups/datascan-dev-tests/providers/Microsoft.Storage/storageAccounts/datascan
RunType : Manual
ScanLevelType : Full
ScanRulesetType : System
ScanRulesetVersion : 4
StartTime : 2/15/2022 2:34:06 PM
Status : Succeeded
Target :
AssetsClassified : 62
AssetsDiscovered : 97
Code :
DataSourceType : AzureStorage
Detail :
DiagnosticExceptionCountMap : {
}
DiagnosticNotification : {}
EndTime : 2/13/2022 3:23:53 PM
ErrorMessage :
Id : a81d7a0f-149b-4c57-80ae-0f4640ee5a29
Message :
ParentId :
PipelineStartTime : 2/13/2022 3:17:02 PM
QueuedTime : 2/13/2022 3:16:34 PM
ResourceId : /subscriptions/xxxxxxxx-ffc5-465d-b5dd-xxxxxxxx/resourceGroups/datascan-dev-tests/providers/Microsoft.Storage/storageAccounts/datascan
RunType : Manual
ScanLevelType : Full
ScanRulesetType : System
ScanRulesetVersion : 4
StartTime : 2/13/2022 3:16:34 PM
Status : Succeeded
Target :
List all scan runs within a scan instance of a data source
Parameters
-DataSourceName
.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: | PSObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzureRMContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Endpoint
The scanning endpoint of your purview account. Example: https://{accountName}.purview.azure.com
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ScanName
.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.