Currently trying to build a Powershell script to test connection of ADF Linked Services -using the Test-AdfLinkedService class for one of the two examples:
$params = @{
DataFactoryName = 'xxxxxx'
ResourceGroupName = 'xxxxxxx'
SubscriptionID = 'xxxxxxx'
}
Example 1
$LinkedServiceName = 'LinkedServiceName'
$r = Test-AdfLinkedService @params -LinkedServiceName $LinkedServiceName
$r | Format-Table
Example 2
$LinkedServiceName = 'LinkedServiceName' # Comma-separated list
$r = Test-AdfLinkedService @params -LinkedServiceName $LinkedServiceName
$r.Report
Both failure due to The property 'succeeded' cannot be found on this object. Verify that the property exists.
Error:
The property 'succeeded' cannot be found on this object. Verify that the property exists.
At C:\...\...\Documents\WindowsPowerShell\Modules\azure.datafactory.tools\1.8.0\public\Test-AdfLinkedService.ps1:79 char:13
+ if ($null -ne $r -and $r.succeeded) {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
Currently trying to build a Powershell script to test connection of ADF Linked Services -using the Test-AdfLinkedService class for one of the two examples:
Example 1
Example 2
Both failure due to The property 'succeeded' cannot be found on this object. Verify that the property exists.
Error:
The property 'succeeded' cannot be found on this object. Verify that the property exists.