Create Azure Data factory linked service or integration runtime directly in git mode wit rest api

577 views Asked by At

I am trying to create linkedservices with restapi in gitmode but the linked service is still created in live mode. My API code was

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}?api-version=2018-06-01&versionType=branch&version=test_branch

with a body

"properties": { "annotations": [], "type": "AzureKeyVault", "typeProperties": { "baseUrl": "https://xxxxxxxxx.vault.azure.net/" } Please is there a way to reference the branch and create this service in git mode

1

There are 1 answers

0
Abhishek Khandave On

As per official documentation, Changes made via PowerShell or an SDK are published directly to the Data Factory service, and are not entered into Git.

enter image description here

Refer - https://learn.microsoft.com/en-us/azure/data-factory/source-control