A rotary electric machine unit, for example, has an electric motor as a rotary electric machine, an electric power conversion device that converts an electric power to be supplied to the electric motor from DC power to AC power, and a cooling device that cools the electric motor and the electric power conversion device. The cooling device may be formed into a tubular shape as a whole, and the electric motor may be accommodated in an internal space of the cooling device. The electric power conversion device may be packaged into a rectangular parallelepiped shape and be attached to an outer peripheral surface of the cooling device. The cooling device may cool the outer peripheral surface of the electric motor and the contact surface with the electric power conversion device.