Look at where your oscilloscope leads are. They are connected to ground and the sine output of the signal generator, of course you will see a sine wave.
Put a resistor (1K) between the cathode of the diode and ground, and move the scope lead from the anode to the cathode, and see if that...