This will happen when the microwave starts a heating cycle. Leave the power cable plugged in but turned OFF to maintain a connection to earth.
For Microwave Oven High Voltage Unidirectional Diode CL01-12 T3512 HVM12 Diode
Microwave Oven Diode HV Rectifier 12kV CL01 12 CL04 12 with or without terminals
Microwave Oven Capacitor Power Fuse Diode Maintenance Perishable Six-Piece Set
Microwave Oven Diode CL01-12 and High Voltage Fuse 5kV 800mA 0.8A (No heat)
Microwave Oven High Voltage Diode Repair Parts 2pack
2 Pack Microwave Oven High Voltage Diode Repair Part