This message was deleted.
s
This message was deleted.
f
Thank Martin. However, i should not import those resource managing by existing terraform scripts. Is there any way to get the vnet information only (like Data source in Terraform) without having it imported?
a
A lot of the pulumi modules have Get[RESOURCE] delegates that allow you to retrieve a resource not managed by pulumi. E.g.
var frontdoorServicePrincipal = await GetServicePrincipal.InvokeAsync( new GetServicePrincipalArgs { DisplayName = "Microsoft.Azure.Frontdoor" } );
That will get you the service principal for Azure Front Doors
There is likely to be one to vnet
f
Do you have a sample for Python on getting vnet resource?
a
@fast-ice-1848 - Sorry for the late reply! Have a look on the Pulumi docs site (https://www.pulumi.com/docs/), or check out the samples on GitHub (https://github.com/pulumi/examples)