title: create Self Hosted Integration Runtime on Azure Windows VM
body: <p>I am using an Azure DevOps pipeline that is basically a series of steps that call PowerShell scripts that take in parameter values and within the PS script the &quot;Az module commands&quot; are called - these commands create the infrastructure on Azure.</p>
  <p>For example...</p>
  <ol>
  <li>Create a public static IP address - this I can do.</li>
  <li>Create a NIC and link static IP address - this I can do.</li>
  <li>Create a Synapse Workspace and 'Self Integration Runtime' - this I can do accept link Synapse SHIRT to the self-hosted integrated runtime on the Azure VM.</li>
  <li>Create a Windows VM (datacenter 2019) - this I can do.</li>
  <li>Create a Azure Windows VM self-hosted integration runtime via devOps pipeline???</li>
  </ol>
  <p>I now want to create a step in the devOPs pipeline (maybe an ARM template or PS script that calls an Az module) that automatically installs the 'self hosted integration runtime' on the Azure Windows VM - the VM is attached to an Vnet/subnet. The runtime on the Azure VM will be linked to the Synapse runtime. (note I am not using Data Factory)</p>
  <p>I have read the following. But can't workout if setting up a runtime on the Azure VM and Synapse and linking them is possible and if it can be automated in a devOPs pipeline?</p>
  <p><a href="https://docs.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory#considerations-for-using-a-self-hosted-ir" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory#considerations-for-using-a-self-hosted-ir</a></p>
  <p>The below link is very near to what I want to achieve....</p>
  <p><a href="https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.compute/vms-with-selfhost-integration-runtime" rel="nofollow noreferrer">https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.compute/vms-with-selfhost-integration-runtime</a></p>