<p>This paper proposes a methodology to model and analyze the security scheme required by a microgrid that considers the participation of renewable energy sources. This security scheme is represented by an up and down spinning reserve, which allows to drive the system frequency to a steady state after the occurrence of events associated not only to forecast errors in the electricity demand (as traditional schemes do), but also to forecast errors in the power availability of the intermittent energy sources. The proposed methodology was implemented on a real microgrid that considers the interconnection of a photovoltaic generator. From this, it was concluded that the security scheme designed for the microgrid allowed to ensure efficiently the relation between generation and demand, at each study hour.</p>