Iirc creating undead adds negative energy to the world and disrupts the balance, so is universally evil, even if you use them for good, as the Greater Good demands you never make them. Don't have a source for that, but I do know that having undead and negative energy around empowers Attropus from Elder Evils and moves us closer to the apocalypse, so that's also a thing.