The energy storage plays an important role in the operation safety of the microgrid system. Appropriate capacity configuration of energy storage can improve the economy, safety, and renewable energy utilization of the microgrid. This study considers the uncertainty of renewable energy, and builds an energy storage capacity configuration (ESCC) in microgrid by using the distributionally robust optimization (DRO). This model co-optimizes energy storage planning, day-ahead scheduling, and renewable energy utilization of the microgrid, which derives the energy storage configuration strategy, balancing renewable energy utilization and operation economics of microgrid. The proposed model is a two-stage model with distributionally robust chance constrains. By applying decision rules, variable substitution, and duality techniques, this model is approximately transformed into a mixed integer programming problem with a second-order cone constraint, which can be directly solved. Experiments on the IEEE 33-bus system are carried out to verify the effectiveness and advantages of the proposed model.