In the last decades, due to the emergence of new technologies, the usage of multi-energy systems has been widely increased. Therefore, it is very necessary to model and assess the maximum energy supply for consumers. Also, maintenance and development of resources and infrastructures against natural disasters and external threats become very essential in sustainable development programs. Recently, due to the severe dangers of climate change, as well as external threats, such as terrorist attacks, there has been a potential increase in power outages, which illustrates the value and importance of improving the resilience of energy systems. In this paper, a military center has been considered as a multi-energy microgrid. In this test system, the infrastructure of different energy carriers like gas and electricity has been used to provide the required amount of energy in the event of an attack, as well as to increase the security and resiliency of the multi-energy system. Also, the resiliency index is used for passive defense purposes to provide accurate estimation of energy security for a military center.