• For Azure VMs you can do it via the portal. see the attached screen shot.

    I Don't think you can switch off a logical server.