A microgrid is a group of interconnected loads and distributed energy resources within clearly defined electrical boundaries that acts as a single controllable entity with respect to the grid.
A photovoltaic system with storage consists of solar panels, an inverter (which converts energy from direct current to alternating current), a management system, and, indeed, batteries.