Very good question. When we collect soil samples, we grow the microbes on a jelly-like substance called agar. The agar contains the nutrients that the microbe needs.
If you mean what conditions of the soil, I will say a soil with the right amount of water, less synthetic chemicals and with a lot of organic matter. The organic matter is a source of carbon which is the energy source for the microbes.