Armellini was commissioned into the Royal Italian Army as a second lieutenant in 1908, after graduating from the Military Academy of Modena, and participated in the Italo-Turkish War and the World War I.