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
billowy-army-68599
04/24/2023, 5:55 PM
refresh reconciles the cloud provider API with pulumi state. If you haven’t imported the resource into state it can’t do any refresh
billowy-army-68599
04/24/2023, 5:55 PM
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
bitter-twilight-16606
04/24/2023, 5:59 PM
the resource ID is made up from the resource group and the name, which are both in the code
bitter-twilight-16606
04/25/2023, 10:00 AM
Is there an easy way to get a list of the resource IDs. Specifically I'm setting up code for azure k8s.