ive been having troubles with the idle on my sierra, when i turn the headlights on the revs will jump up 500-800 revs so that it sits around 2000 at idle

and it some time pulsates up and down. Has anyone had this problem?or any ideas where i can start to fix this?