This paper deals with the optimal scheduling of a microgrid (MG) equipped with dispatchable distributed generators (DGs), renewable generators and electrical storages (batteries). A chance-constrained model is developed to handle normal operation and emergency conditions of MG including DG outage and unwanted islanding. Purchasing reserve from the upstream grid is also considered. Moreover, the uncertainties of loads and renewable resources are incorporated into the model. Furthermore, a novel probabilistic formulation is presented to determine the amount of required reserve in different conditions of MG by introducing separate probability distribution functions (PDFs) for each condition. Accordingly, an index named as the probability of reserve sufficiency (PRS) is introduced. The presented model keeps a given value of PRS in normal and emergency conditions of MG operation. In addition, some controllable variables are added to the chance constraints as an innovative technique to reduce the complexity of the model. Finally, a test microgrid is studied in different case studies and the results are evaluated.