A molded motor comprising: a rotor including a rotary shaft extending in a shaft center direction, and a rotary body that has a permanent magnet and is fixed to the rotary shaft; a stator disposed on an outer side of the rotor in the radial direction to face the rotor, the stator including a stator core that a plurality of salient poles are formed on, and a plurality of coils each wound on each of the salient poles of the stator core via an insulator; a pair of shaft bearings (30A, 30B) that rotatably support the rotor; and a molding resin covering the stator, wherein the rotary body has a dielectric layer formed between the rotary shaft and an outer peripheral surface of the rotary body, each of the coils has coil ends protruding, from the stator core, on both sides in the shaft center direction and being in contact with the molding resin, the coil wound on the stator core being enclosed by the stator core except the coil ends protruding from the stator core in the shaft direction, and characterized by a metal member is provided on an outer peripheral side of the coil ends and on at least a part facing the coil ends, over a circumferential direction, wherein the metal member (16A, 16B) is located on an outer peripheral surface of the molding resin and on at least the part facing the coil ends, or wherein the metal member (16A, 16B) is located in the molding resin and on at least the part facing the coil ends, wherein the molding resin is formed in such a manner that a thickness, of the molding resin, in a radial direction perpendicular to the shaft center direction is thinner than a thickness, of the molding resin, in the shaft center direction, thereby lowering, by providing the metal member (16A, 16B), the possibility that the ignited fire leaks outside the motor from a shaft-direction end face of the molding resin being in contact with the stator, wherein capacitance of the dielectric layer is adjusted in such a manner that impedance on a side of the rotor is made close to impedance on a side of the stator. a rotor including a rotary shaft extending in a shaft center direction, and a rotary body that has a permanent magnet and is fixed to the rotary shaft; a rotary shaft extending in a shaft center direction, and a rotary body that has a permanent magnet and is fixed to the rotary shaft; a stator disposed on an outer side of the rotor in the radial direction to face the rotor, the stator including a stator core that a plurality of salient poles are formed on, and a plurality of coils each wound on each of the salient poles of the stator core via an insulator; a stator core that a plurality of salient poles are formed on, and a plurality of coils each wound on each of the salient poles of the stator core via an insulator; a pair of shaft bearings (30A, 30B) that rotatably support the rotor; and a molding resin covering the stator, wherein the rotary body has a dielectric layer formed between the rotary shaft and an outer peripheral surface of the rotary body, each of the coils has coil ends protruding, from the stator core, on both sides in the shaft center direction and being in contact with the molding resin, the coil wound on the stator core being enclosed by the stator core except the coil ends protruding from the stator core in the shaft direction, and characterized by a metal member is provided on an outer peripheral side of the coil ends and on at least a part facing the coil ends, over a circumferential direction, wherein the metal member (16A, 16B) is located on an outer peripheral surface of the molding resin and on at least the part facing the coil ends, or wherein the metal member (16A, 16B) is located in the molding resin and on at least the part facing the coil ends, wherein the molding resin is formed in such a manner that a thickness, of the molding resin, in a radial direction perpendicular to the shaft center direction is thinner than a thickness, of the molding resin, in the shaft center direction, thereby lowering, by providing the metal member (16A, 16B), the possibility that the ignited fire leaks outside the motor from a shaft-direction end face of the molding resin being in contact with the stator, wherein capacitance of the dielectric layer is adjusted in such a manner that impedance on a side of the rotor is made close to impedance on a side of the stator.