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:
Both failure due to The property 'succeeded' cannot be found on this object. Verify that the property exists.
Issue script & Debug output
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
Description
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.
Issue script & Debug output
Environment data
Module versions
Error output
No response