Generators are reliable backup power sources, but exposure to water is one of the fastest ways to damage them or create a serious safety hazard. The question of whether a generator can get wet comes up every storm season, and the short answer is: it can, but it should not.
Moisture reaching the engine, outlets, or electrical components puts both the equipment and anyone nearby at risk of electric shocks, short circuits, and carbon monoxide exposure.