Similar to this [one](https://stackoverflow.com/questions/43329137/attaching-restored-os-disk-to-existing-vm) but powershell exclusively and with managed disks and an existing VM.

I took a snapshot of a managed OS disk and want to restore it but can't figure out how. I have tried a number of things but now think that you can't detach an OS disk even if the VM is deallocated. No matter how much I pore through the [reference](https://learn.microsoft.com/en-us/powershell/module/azurerm.compute/?view=azurermps-3.8.0#vm_disks), I can't find anything to help me restore a snapshot to an existing disk. Is this even possible?