 This paper proposes a virtual inertia controller based on a high-pass filter, HPF, to support the frequency of the AC microgrid while maintaining the DC voltage of the DC microgrid within the nominal ranges and cases of contingencies. The proposed system encounters an AC-DC microgrid with a renewable energy source on the DC microgrid alongside constant power load and resistive loads. While on the AC microgrid side, a synchronous generator is used to present the low inertia of the grid with dynamic loads and static loads. A state-space linearized model of the system was developed and verified using MATLAB Simulink. The dynamic response of the proposed controller was compared to the low-pass filter, LPF, based controller. Additionally, the effect of changing the system's parameters on eigenvalues was investigated. This article was authored by Mohammed A. Afifi, Mustafa I. Morey, and Ahmed M. I. Mohamed.