Growth of AlxGa1−xN layers (0 ≤ x ≤ 1) simultaneously on polar (0001), semipolar (3) and (), as well as nonpolar () and () AlN templates, which were grown on planar sapphire substrates, has been investigated by metal-organic vapour phase epitaxy. By taking into account anisotropic in-plane strain of semi- and non-polar layers, their aluminium incorporation has been determined by x-ray diffraction analysis. Optical emission energy of the layers was obtained from room-temperature photoluminescence spectra, and their effective bandgap energy was estimated from room-temperature pseudo-dielectric functions. Both x-ray diffraction and optical data consistently show that aluminium incorporation is comparable on the polar, semi- and non-polar planes.