This message was deleted.
s
This message was deleted.
🙈 1
l
Have you tried to export the template of an existing subscription and use https://www.pulumi.com/arm2pulumi/ to generate the c# code and run that one?
a
I shall try this as well! Thanks
p
I think you need to import the correct version of it: instead of
azure-nextgen:eventgrid/v20200101preview
you should use:
azure-nextgen:eventgrid/v20200601
The whole versioning for azure nextgen is not easy understandable - in fact even after a couple of weeks I have no real clue about it… But since the latest version of a resource is now published in the documentation, I always use that one. Here it is for `EventSubscription`: https://www.pulumi.com/docs/reference/pkg/azure-nextgen/eventgrid/eventsubscription/
a
I have tried all of the 2020+ versions, none seem to work - but I'll give it another go! The tip from Alex gave me a different option, but not something that compiles as of yet. This might be a bug in the arm2pulumi tool?
Ok - the ARM 2 Pulumi was not the fix, it does not work for C# for this template. New bug?
@loud-shampoo-49194 - do you have any idea why the arm2pulumi generated code does not work?
For anyone reading here: it seems the scope argument had to point to the Storage ID instead of the SystemTopic ID...