This message was deleted.
# getting-started
s
This message was deleted.
b
yes you have to import it, you can use an import file to automate this: https://www.pulumi.com/docs/reference/cli/pulumi_import/
b
Thanks. Any idea why there is no option to "refresh" from the code? Seems like unnecessary overhead to have to manually import when pulumi could do from the name defined in the code.
b
refresh reconciles the cloud provider API with pulumi state. If you haven’t imported the resource into state it can’t do any refresh
if you look in the state, Pulumi keeps track of a resource ID. it cannot know that cloud provider generated resource ID, you have to tell Pulumi about it
b
the resource ID is made up from the resource group and the name, which are both in the code
Is there an easy way to get a list of the resource IDs. Specifically I'm setting up code for azure k8s.