The Ontario building code requires a building permit for any roof mounted solar array >5 sq m in size. This is basically anything larger than 2 or 3 panels.
Permit fees and requirements vary by municipality.
One thing that is common in all municipalities, however, is the need for a structural evaluation by a licensed Professional Engineer.
If you are buying your solar energy system from Generation Solar we will take care of all permits and inspections for you.