Direct FM generation using varactor diode
This is not how to create a 1MHz FM generator but shows what works on a simulator using a 1kHz 1us pulse to energize the inductor with &lt; 100mA with a Q of 2000 in theory. (10M/500)

In practise, you need actual RLC values for every part or use a CMOS inverter instead of a switch and clock.