https://pulumi.com logo
#getting-started
Title
# getting-started
t

tall-yacht-63106

04/15/2021, 1:54 PM
Hi, Just wondering if anyone can point me to single example of a C# VSphere example that does something more than create a Datacenter, preferably creating all the resources need to provision a VM ?
b

brave-planet-10645

04/15/2021, 3:14 PM
We've got an (untested) typescript example. Should give you an idea of what you need to do in c# https://github.com/pulumi/pulumi-vsphere/blob/master/examples/webserver/index.ts
t

tall-yacht-63106

04/15/2021, 3:37 PM
i’ve got it all working until i need to get the network interfaces for the VM. I can’t call GetNetwork as a static func. It’s not a property of the datacenter as inferred from that sample you posted. There just doesn’t seem to be a single example of the C# vsphere provisioning at all… and that doesn’t seem right.
3 Views