Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord

Gets all vulnerability assessment scan record(s) associated with a given sql pool.

Syntax

Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
   [-ScanId <String>]
   [-SqlPoolObject <PSSynapseSqlPool>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord
   [-ResourceGroupName <String>]
   -WorkspaceName <String>
   -Name <String>
   [-ScanId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzSynapseSqlPoolVulnerabilityAssessmentScanRecord cmdlet retrieves all vulnerability assessment scan record(s) associated with a given managed sql pool. Note that you need to run Enable-AzSynapseSqlAdvancedThreatProtection and Update-AzSynapseSqlPoolVulnerabilityAssessmentSetting cmdlet as a prerequisite for using this cmdlets.

Examples

Example 1 - Gets a specific vulnerability assessment scan results identified by the scan 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

Example 2 - Gets a specific vulnerability assessment scan results identified by the scan ID with sql pool object

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

Example 3 - Gets all vulnerability assessment scan results on the specified sql pool

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

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of Synapse SQL pool.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

The name of the resource group.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ScanId

Specifies the scan ID.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-SqlPoolObject

The sql pool object to get Vulnerability Assessment scan record for

Type:PSSynapseSqlPool
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WorkspaceName

Name of Synapse workspace.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSSynapseSqlPool

String

Outputs

Microsoft.Azure.Commands.Synapse.Models.VulnerabilityAssessment.PSVulnerabilityAssessmentScanRecordModel