The operation of a microgrid (MG) is easily affected by the environment, which leads to the change of communication topology among distributed generations (DGs). Most of the existing results on secondary control of MG consider that the topology connection is fixed, or just simply switched by arbitrary form. In this article, a more general semi-Markov process is introduced to describe such switching, i.e., the switching of communication topology is regarded as a random change process of system mode under general probability distribution. Then, out of the comprehensive consideration of inevitable network constraints, this article proposes distributed resilient secondary control method for AC islanded MG. In our control strategy, the network security, communication burden, and transmission delay are all considered in the controller design. An event detection mechanism is used as the transmission protocol for information interaction among DGs, reducing the communication burden effectively. And a cyber-attack model is introduced to follow the Bernoulli distribution, and the neighbors' information of each DG may be attacked with possible probability. Based on feedback linearization, the studied secondary control problem is cast into distributed tracking synchronization of first-order multiagent systems. The Lyapunov functional method is used to prove the proposed strategy theoretically, and its effectiveness is verified by a modified IEEE 34 bus test system. The result shows that the proposed method can reduce the communication numbers by over 80% under the premise of realizing frequency restoration and accurate real power sharing of AC islanded MG, and the transmission rate is also reduced by about 40% compared with the existing general method.