I am trying to create DataFactory SelfHosted Runtime using bicep
I am trying to follow https://learn.microsoft.com/en-us/azure/templates/microsoft.datafactory/2018-06-01/factories/integrationruntimes?pivots=deployment-language-bicep There is ambiguity what all property needed to create SHIR. I need key based autorization.
Because to deploy IR msi on a VM we need Authkey which will be generated by above operation
var parentName = 'someuniqueadfname'
resource SelfHostedIR 'Microsoft.DataFactory/factories/integrationRuntimes@2018-06-01' = {
name : '${parentName}/SelfHostedIR'
properties : {
description : 'My Desc'
type : 'SelfHosted'
typeProperties : {
linkedInfo : {
authorizationType : 'Key'
key : {
type : 'SecureString'
value : 'string'
}
}
}
}
}
CodePudding user response:
You can use the below code. This will be sufficient to create an IR which will be generating key for installation of IR agent in the Azure VM.
resource SelfHostedIR 'Microsoft.DataFactory/factories/integrationRuntimes@2018-06-01' = {
name: '${parentName}/SelfHostedIR'
parent: someuniqueadfname
properties: {
description: 'string'
type: 'string'
type: 'SelfHosted'
typeProperties: {}
}
}