This message was deleted.
# azure
s
This message was deleted.
c
You could use import in your new stack instead? https://www.pulumi.com/docs/guides/adopting/import/
n
Once I've imported it, can I remove that reference from the other project without it being deleted when "pulumi up"?
c
You'll have to do some state "magic" I'd assume. Export the state to local file, remove the resource, and references, then import the state again. https://www.pulumi.com/docs/reference/cli/pulumi_stack_export/
@tall-librarian-49374 correct me please if I'm talking stupid stuff
t
there’s a command
pulumi state delete
to do that without messing with the state manually
There is an issue for moving, feel free to comment/upvote https://github.com/pulumi/pulumi/issues/3389
n
Have done, thank you
when deleting the state, what am I referencing exactly, the pulumi URN?
t
yes, help for this command has an example
n
I've upvoted the issue, and recommended that perhaps a recipe of steps in how to move resources between stacks would be very helpful to newbies like myself
One for your blog maybe Mikhail 😉
c
Oh cool, didn't know about the
state delete