The book/books basically followed a military unit that lived in a underground city. There were elves, and such with magic but they were a unit that used tech and eventually went renegade. I've read them once long ago but would like to find them again.