'I have been struggling a lot to find any relevant doc on Azure Synapse Analytics to provision Linked Service for Azure KeyVault using CLI

I have been struggling a lot to find any relevant doc on Azure Synapse Analytics to provision Linked Service for Azure KeyVault using CLI.



Solution 1:[1]

You can use the below CLI Cmdlet, to create a Key Vault linked service to the Azure Synapse analytics workspace.

az synapse linked-service create --file
                                 --name
                                 --workspace-name
                                 [--no-wait]
                                 [--subscription]

Using the above cmdlet, we are able to create a key vault linked service to the Synapse analytics workspace in our local environment.

for --file parameter in the above cmdlet, we need to declare the properties of the linked service in a json file.

Here is the Sample Json that we have used in our local environment:

{
   "properties":{
      "type":"AzureKeyVault",
      "typeProperties":{
         "baseUrl":"https://xxxx.vault.azure.net/"
      },
      "description":"<Requireddescription>",
      "annotations":[<RequiredAnnotations>],
      "parameters":{      ## Required Parameters 
      }
   }
}

Here is the Sample output for reference:

enter image description here

For more information you refer to the following documentation:

  1. Az synapse linked-service create cmdlet
  2. About what all the properties that we can pass to AzurekeyVaultLinkedService & their respective datatypes.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1