Generators are for outdoor use only and are to be kept away from any physical structures. The National Weather Service suggests keeping a generator a minimum of 20 feet away from entrances, including ...
If you have a portable or standby generator, it can be stored outdoors year-round—but it must be protected from direct weather exposure. "Long-term exposure to rain, snow, UV, and seasonal temperature ...