This message was deleted.
# general
s
This message was deleted.
b
@microscopic-florist-22719 is the right person to help you here. Let me give it a shot, however. I think you can use
get
and that, by doing so, it will read the resource from the existing state and leave it be.
Copy code
} else {
    const stackRef = new pulumi.StackReference(...)
    const blob = azure.storage.Blob.get(
        "my-blob-b",
        stackRef.getOutput("zipblob"),
    );
}
That said, I had never considered using
StackReference
to reference the current stack being deployed, and I don't know if the read will prevent the delete, so @microscopic-florist-22719 should definitely weigh in before I lead you down the wrong path 🙂