Most cities and municipalities require an electrical permit and a building inspection to ensure that all generators are properly installed. Gas-powered units may also need a Fire Inspector’s approval.