is there something I'm doing wrong for this `const...
# general
i
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
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
thanks, not sure how I missed that