This paper focuses on an optimal schedule for a micro energy grid considering the maximum total carbon emission allowance (MTEA). Firstly, the paper builds an energy devices operation model and demand response (DR) model. Secondly, to maximize the economical operation revenue, the basic scheduling model for the micro energy grid is constructed. Thirdly, the conditional value at risk method and robust stochastic theory are introduced to describe the uncertainty of wind power, photovoltaic power, and load, and a risk aversion model is proposed. Finally, this paper selects the Xinxiang active distribution network demonstration project in Jining, China as an example. The results show that: (1) a micro energy grid can make the most use of the complementary characters of different energy sources to meet different energy demands for electricity, heat, cold, and gas; (2) the risk aversion scheduling model can represent the influence of uncertainty variables in objective functions and constraints, and provide a basis for decision makers who have different attitudes; and (3) DR can smooth the energy load curves. MTEA can enhance the competitiveness of the clean energy market, thus promoting the grid-connected generation of clean energy. Therefore, the risk aversion model can maximize the economic benefits and provide a basis for decision makers while rationally controlling risks.