When required, any owner, authorized agent, or contractor who desires to construct, enlarge, alter, repair, move, demolish, or change the occupancy of a building or structure, or to erect, install, enlarge, alter, repair, remove, convert, or replace any electrical, gas, mechanical, or plumbing system, the installation of which is regulated by the technical codes, or to cause any such work to be done, shall first make application to the building official and obtain the required permit for the work. No permit shall be issued unless the proposed construction complies with the provisions of chapter 50 pertaining to zoning.