Skip to content

Test-AdfLinkedService Class - Object issue cannot be found on this object #382

Description

@aam-a

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

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions