https://pulumi.com logo
#general
Title
# general
r

red-lamp-97876

01/25/2019, 3:03 PM
say I want to implement a new Azure resource in Pulumi (app gateway), what's the best starting point to learn? I understand it's based of the Terraform provider but I'm at a loss when I see something like
super("azure:core/resourceGroup:ResourceGroup", name, inputs, opts);
. Where does this id key come from?
s

stocky-spoon-28903

01/25/2019, 5:15 PM
Hi Yohan, right now all of the SDKs for Azure are generated by a program called
tfgen
, which takes the Terraform provider and applies some mapping rules (defined in
resources.go
in the
pulumi-azure
repository)
Currently there isn’t a way to add a resource which doesn’t exist in the Terraform provider itself
r

red-lamp-97876

01/25/2019, 5:17 PM
hi @stocky-spoon-28903 the resource does exist in the Terraform provider, it just hasn't been surfaced by the Pulumi SDK yet I guess
s

stocky-spoon-28903

01/25/2019, 5:17 PM
Interesting - what version was it in?
I thought we were basically up-to-date with the Terraform provider
unless I just haven't seen it in the docs 🙈
r

red-lamp-97876

01/25/2019, 5:19 PM
😐
sorry for the wasted time! 🙂
s

stocky-spoon-28903

01/25/2019, 5:20 PM
Hah, not a problem
👍 1
FWIW if you want a quick way to find the terraform resource name -> pulumi name, look in this file: https://github.com/pulumi/pulumi-azure/blob/master/resources.go#L506
r

red-lamp-97876

01/25/2019, 5:22 PM
thanks!