Japan has a vending machine for just about everything. Aside from the gloriousness of a beer vending machine, they also have more practical ones like this egg vending machine. Here is a video from my friend Steven about one.
The likely hood you'll find a machine like this in Tokyo is on the low side. However, you in the country side, they're not that uncommon to come by.