https://pulumi.com logo
i

icy-engineer-10830

09/08/2019, 12:39 AM
is there something I'm doing wrong for this
const vmss = azure.compute.ScaleSet.get("id-of-my-resource")
to fail with this error:
Copy code
Error: Missing required property 'networkProfiles'
        at new ScaleSet (/Users/jonbrwn/code/other/pulumi-azure-import-test/node_modules/@pulumi/compute/scaleSet.ts:424:23)
        at Function.get (/Users/jonbrwn/code/other/pulumi-azure-import-test/node_modules/@pulumi/compute/scaleSet.ts:259:16)
when running
pulumi up
?
w

white-balloon-205

09/08/2019, 12:52 AM
The
.get(name, id)
call requires two arguments. The first is the logical name that Pulumi will use. The second is the id of the cloud provider resource you are trying to get. The error message here is not ideal though - and could definitely be improved.
i

icy-engineer-10830

09/08/2019, 12:57 AM
thanks, not sure how I missed that