Devices comprised of CoFeB nanostructures with perpendicular magnetic anisotropy and non-magnetic Ta channel were operated in thermal lateral spin valve (LSV) mode and studied by magnetotransport measurements and magnetic scanning gate microscopy (SGM). Due to the short spin diffusion length of Ta, the spin diffusion signal was suppressed, allowing the study of the contribution from the anomalous Nernst (ANE) and anomalous Hall effects (AHE). The magnetotransport measurements identified the switching fields of the CoFeB nanostructures and demonstrated a combination of AHE and ANE when the devices were operated in thermally-driven spin-injection mode. Modified scanning probe microscopy probes were fabricated by placing a NdFeB magnetic bead (MB) on the apex of a commercial Si probe. The dipole magnetic field distribution around the MB was characterized by using differential phase contrast technique and direct measurement of the switching field induced by the bead in the CoFeB nanodevices. Using SGM we demonstrate the influence of localized magnetic field on the CoFeB nanostructures near the non-magnetic channel. This approach provides a promising route towards the study of thermal and spin diffusion effects using local magnetic fields.