That's already happened, on a small scale.
"The Northern California utility “needs to do the things San Diego has done in the last 12 years since the Witch fire,” Wara said.
With federal and state funding, SDG&E started building a microgrid in 2012 in the desert community of Borrego Springs, several years after a wildfire took down the town’s single transmission line and cut off power for two days.
The system today uses a complex array of diesel generators, a solar farm, rooftop solar on many homes and lithium-ion batteries to allow the community to be “islanded” during systemwide outages. That means the microgrid can provide all the power the town of 3,500 needs for several hours at a time."
It's a rebirth of municipal utilities
https://www.latimes.com/business/la-...314-story.html