'Power off the specified instance.'

def power_off(self, instance, timeout=0, retry_interval=0):

    LOG.debug('Power    off    instance', instance=instance)
    self._serial_console_ops.stop_console_handler(instance.name)
    if (retry_interval <= 0):
        retry_interval = SHUTDOWN_TIME_INCREMENT
    try:
        if (timeout and self._soft_shutdown(instance, timeout, retry_interval)):
            return
        self._set_vm_state(instance, os_win_const.HYPERV_VM_STATE_DISABLED)
    except os_win_exc.HyperVVMNotFoundException:
        LOG.debug('Instance    not    found.    Skipping    power    off', instance=instance)
