Standby Generator: A permanently installed generator, usually gas-fired, that starts automatically when utility power fails and feeds the house through a transfer switch that isolates it from the grid.
What Makes It a Permitted Install
A portable generator plugged into an inlet is not what permit offices mean. A standby generator is fixed on a pad outside the house, connected to a fuel supply and wired into the electrical system. Because it ties into the panel, it is electrical work, and because it burns natural gas or propane it also touches gas piping. Many cities require separate electrical, gas and sometimes building or mechanical permits, which can be combined on one application. Which trades are involved varies by city.
The Transfer Switch
The transfer switch is the safety device the inspector cares about most. It disconnects the house from the utility before connecting the generator, so power cannot flow back out onto the lines and endanger a lineworker. Automatic switches do this on their own. Some installs use a switch that serves the whole house, and others serve selected circuits through a separate panel, which is why a subpanel often appears in the drawings. Inspectors check that the switch is rated for the service amperage and the generator's output, and that the neutral and ground connections follow the manufacturer's diagram. The National Electrical Code (NEC) governs the connection and labeling, subject to local adoption.
Placement, Fuel and Noise
Manufacturers specify minimum distances from the house, windows and vents, because exhaust is dangerous indoors. Cities often add their own limits: setbacks from property lines, pad requirements, screening and noise limits that may restrict how the unit is tested. A natural gas unit needs a gas line sized for its demand, and a propane unit needs a tank placed according to fuel gas code. See the gas line permit entry for what the gas side involves. Homeowner associations may have their own rules too, and some utilities want to be told about a standby unit even when it is isolated by the transfer switch. The application usually asks for the unit's model, its fuel type and the distance to the nearest openings.
Where It Comes Up on This Site
Generators come up where panel and service work does: see the electrical panel permit overview and the electrical panel fee comparison for who may pull a panel permit in 30 cities. This site has no generator-specific research, so fees, setbacks and which permits apply should be read from your city's page. The electrical permit entry covers the basics. A generator also overlaps with battery storage, which is the other common way to keep a house running through an outage, and the two can share a transfer arrangement and a critical-loads panel.