NOVELTY - The method involves receiving information of a power consuming device (115) from an energy management (EM) system (120), where the EM system determines criticality of the power consuming device at a device level. Power supply information of power supply devices associated with an electric grid is received. A power request is received from the power consuming device. A determination is made that the power consuming device receives power from the power supply device by a computing device (14) based on the information and the power supply information.    USE - Method for configuring micro-grids using a computing device to distribute power from a power supply device to a power consuming device. Uses include but are not limited to fuel cell, micro-turbine, generator, solar cell and wind turbine, and a home appliance, water heater, swimming pool, programmable controllable thermostat, air-conditioning device, washer/dryer, lighting device and electric vehicle.    ADVANTAGE - The method enables monitoring conditions within the micro-grid, and issuing commands to remotely modify operation of the devices within the micro-grid in response to changes in the conditions to generate or consume more or less power such that reliability and robustness of a service provided to customers are enhanced, thus maximizing use of local energy resources to satisfy local energy demand, and hence reducing potential environmental negative impacts of power generation while ensuring sustainability, reliability and power quality within the micro-grid by enabling specific load profiles based on currently available power supply output and reserves.    DETAILED DESCRIPTION - INDEPENDENT CLAIMS are also included for the following:    (1) a system for configuring micro-grids to distribute power from a power supply device to a power consuming device    (2) a computer program product comprising a set of instructions to perform a method for configuring micro-grids to distribute power from a power supply device to a power consuming device.    DESCRIPTION OF DRAWING(S) - The drawing shows a block diagram of an environment for configuring micro-grids.    Server (12)    Computing device (14)    Processor (20)    Power consuming device (115)    EM system (120)