https://pulumi.com logo
Title
b

bland-lunch-5883

04/15/2021, 12:45 PM
hi all 👋 I'm trying to use pulumi to set up a kusto cluster with a database, and for every event hub in a namespace a connection to a table with the same name as the hub within that database. One of the arguments of kusto.EventHubConnection is a table name, but for that the table must already exist. My issue is that within Pulumi I seem to be unable to make the tables 😞 is something like this possible though? To set up an ADX that tracks each hub within a namespace into separate tables?
t

tall-librarian-49374

04/15/2021, 1:21 PM
yeah, I think table management isn’t implemented in ARM
b

bland-lunch-5883

04/15/2021, 1:30 PM
too bad 😕 guess the only way around this is by creating the tables and ingest manual?
t

tall-librarian-49374

04/15/2021, 1:34 PM
You could try to create them with Azure SDK from your Pulumi program
b

bland-lunch-5883

04/15/2021, 1:37 PM
I'm not certain that I understand what you mean
do you mean with a callback on the namespace, and then calling an external program?
with the external program being a nodejs app that uses the sdk ?
t

tall-librarian-49374

04/15/2021, 1:39 PM
You can install the Azure SDK to the same program and call it directly
b

bland-lunch-5883

04/15/2021, 1:42 PM
true 🙂 that might work; what would be the prefered way to trigger the azure sdk script in such a way that it runs after the cluster and hubs are made, but before pulumi tries to make the evenhubconnection ?
t

tall-librarian-49374

04/15/2021, 1:53 PM
Which language are you using?
b

bland-lunch-5883

04/15/2021, 2:35 PM
typescript
t

tall-librarian-49374

04/15/2021, 2:49 PM
Then it’s best to make a dynamic provider
b

bland-lunch-5883

04/15/2021, 2:51 PM
that sounds rather complex for my problem 😕 do you know whether there's somewhere an example of this kind of pattern?
t

tall-librarian-49374

04/15/2021, 2:59 PM
You could call the Azure SDK from an
apply
callback but then it would be called on every
pulumi up
. A dynamic provider integrates nicely into the resource lifecycle and CLI.
b

bland-lunch-5883

04/15/2021, 3:02 PM
cool, thnx! I'll try to get it working tomorrow 🙂