Share via

How to test a synapse link service from a powershell script?

Jean-Francois Roger ADM 0 Reputation points
2024-04-18T19:05:59.8166667+00:00

How to test a synapse link service from a powershell script?

Azure Synapse Analytics
Azure Synapse Analytics

An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

2 answers

Sort by: Most helpful
  1. Jean-Francois Roger ADM 0 Reputation points
    2024-04-24T23:16:14.6566667+00:00

    Thank you for your reply. The Get cmdlet will retrieve the link service meta data. What I am looking at is to test, to validate, the link service, make sure the connection can be established, equivalent to the TEST button in the synapse portal when you edit the link service.

    Was this answer helpful?


  2. Bhargava-MSFT 31,361 Reputation points Microsoft Employee Moderator
    2024-04-18T19:23:11.3+00:00

    Hello Jean-Francois Roger ADM,

    Welcome to the Microsoft Q&A forum.

    Please follow the below blog post by Brad Harris

    https://key2consulting.com/how-to-test-azure-data-factory-linked-services-using-powershell/

    Here, instead of Get-AzDataFactoryV2LinkedService, you can use

    Get-AzSynapseLinkedService in the script to get the information about synapse linked services.

    https://learn.microsoft.com/en-us/powershell/module/az.synapse/get-azsynapselinkedservice?view=azps-11.5.0

    I hope this answers your question.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.