With the tenfold luminosity increase envisaged at the HL-LHC, the background (photons, neutrons, ...) and the event pile-up probability are expected to increase in proportion in the different experiments, especially in the forward regions like, for instance, the muons chambers of the ATLAS detector. Detectors based on the Micromegas principle should be good alternatives for the detector upgrade in the HL-LHC framework because of a good spatial (<100 mum) and time (few ns) resolutions, high-rate capability, radiation hardness, good robustness and the possibility to build large areas. The aim of this study is to demonstrate that it is possible to reduce the discharge probability and protect the electronics by using a resistive anode plane in a high flux hadrons environment. Several prototypes of 10x10 cm2, with different pitches (0.5 to 2 mm) and different resistive layers have been tested at CERN (pi+@SPS). Several tests have been performed with a telescope at different voltages to assess the performances of the detectors in terms of position resolution and efficiency. The spark behaviour in these conditions has also been evaluated. Resistive coating has been shown to be a successful method to reduce the effect of sparks on the efficiency of micromegas. A good spatial resolution (~80 mum) can be reached with a resistive strip coating detector of 1mm pitch and a high efficiency (> 98%) can be achieved with resistive-anode micromegas detector. An X-rays irradiation has been also performed, showing no ageing effect after more than 21 days exposure and an integrated charge of almost 1C.