I am trying to fetch the Event hub compatible connection string in ARM template and then pass it on to my HDInsight Cluster for further processing.
I am trying to create the event hub connectiong string of my choice, But the event hub name generated is not the same and consists of a guid whose source I am unable to track.
I need the to list and pass the event hub connection string to HDInsight script action within the template.
The endpoint part in the iothub resource is where I customize the event hub compatible connection string.
"resources": [
{
"type": "Microsoft.Devices/IotHubs",
"sku": {
"name": "S1",
"tier": "Standard",
"capacity": 1
},
"name": "[variables('IotHub')]",
"apiVersion": "2016-02-03",
"location": "southeastasia",
"tags": {},
"properties": {
"ipFilterRules": [],
"eventHubEndpoints": {
"events": {
"retentionTimeInDays": 4,
"partitionCount": 4,
"partitionIds": [
"0",
"1",
"2",
"3"
],
"path": "[variables('IotHub')]",
"endpoint": "[concat('sb://', variables('IotHub'),'.servicebus.windows.net/')]"
}
},
"storageEndpoints": {
"$default": {
"sasTtlAsIso8601": "PT1H",
"connectionString": "",
"containerName": ""
}
},
"enableFileUploadNotifications": false,
"cloudToDevice": {
"maxDeliveryCount": 10,
"defaultTtlAsIso8601": "PT1H",
"feedback": {
"lockDurationAsIso8601": "PT1M",
"ttlAsIso8601": "PT1H",
"maxDeliveryCount": 10
}
},
"operationsMonitoringProperties": {
"events": {
"None": "None",
"Connections": "None",
"DeviceTelemetry": "None",
"C2DCommands": "None",
"DeviceIdentityOperations": "None",
"FileUploadOperations": "None"
}
},
"features": "None"
},
"resources": [],
"dependsOn": []
}
],