This research addresses distributed proportional power sharing of inverter-based Distributed Generators (DGs) in microgrids under variations in maximum power capacity of DGs. A microgrid can include renewable energy resources such as wind turbines, solar panels, fuel cells, etc. The intermittent nature of such energy resources causes variations in their maximum power capacities. Since DGs in microgrids can be regarded as Multi-Agent-Systems (MASs), a consensus algorithm is designed to have the DGs generate their output power in proportion to their maximum capacities under capacity fluctuations. A change in power capacity of a DG triggers the consensus algorithm which uses a communication map at the cyber layer to estimate the corresponding change. During the transient time of reaching a consensus, the delivered power may not match the load power demand. To eliminate this mismatch, a control law is augmented that consists of a finite-time consensus algorithm embedded within the overarching power sharing consensus algorithm. The effectiveness of the distributed controller is assessed through simulation of a microgrid consisting of a realistic model of inverter-based DGs.