Optically detected magnetic resonance of nitrogen vacancy centers in diamond offers a route to both DC and AC magnetometry in diamond anvil cells under high pressures (>3 GPa). However, a serious challenge to realizing experiments has been the insertion of microwave radiation into the sample space without screening by the gasket material. We utilize designer anvils with lithographically deposited metallic microchannels on the diamond culet as a microwave antenna. We detected the spin resonance of an ensemble of microdiamonds under pressure and measured the pressure dependence of the zero field splitting parameters. These experiments enable the possibility for all-optical magnetic resonance experiments on nanoliter sample volumes at high pressures.