I've never used pulumi, but I'm looking forward to transition to it from terraform.
That said, I would suggest using a script that connects over ssh (assuming pulumi_command also uses ssh) and runs a consequenceless command, something to the effect of
ssh root@vm_ip echo "Ready"
some-notebook-86727
02/07/2023, 9:31 PM
But I don't know how you're supposed to implement this in pulumi. I'm guessing though that this is done through ssh anyway. I've also never used Azure, so I've no idea 😄