Amidst the changing climate conditions, electricity retailers-led demand response programs and the emergency backup power for possible grid outages are often discussed in isolation, although several underlying linkages exist, which are important for how the existing building stock evolves with the energy transition. This study navigates through the linkages while investigating the levelized cost of electricity (LCOE)-based building microgrid components and undertakes a comparative analysis of energy optimisation models with and without emergency diesel generators. It also examines the building energy system’s resilience, reliability, and flexibility by using OpenStudio and HOMER Grid to develop energy simulation and optimisation models and other probabilistic models for a chosen building archetype in Sydney, Australia. This study finds that excluding the emergency diesel generator will require a larger battery storage system, increasing LCOE from A$0.17/kWh to A$0.20/kWh across climate scenarios. However, the larger battery storage system increases the probability of surviving outages (> 4 h) by around 10 % across climate scenarios. The LCOE increases up to 45 % for outages up to 8 h across climate scenarios and up to 85 % for outages up to 12 h. Additionally, for the building archetype, the probability of grid purchase (below the current average) is 0.78 in 2030, which drops to 0.55 in 2050. The probability of grid sales (above the current average) also drops from 0.69 to 0.46. Thus, while the narratives around the building energy system’s flexibility overstate the electricity exchange between the building and the grid, this study finds that increasing the on-site production utilisation rate and larger battery throughput contributes to demand response application and flexibility.