Shirazi was commissioned as a Second Lieutenant in the Artillery and in 1974, he was sent to the United States for further military education. When he returned to Iran he showed opposition to the policies of the Pahlavi government and participated in some street demonstrations. He then joined the opposition movement against the Shah. During the 1979 revolution, he served in the 64th Infantry Division in Urumiyeh. He was later awarded the rank of lieutenant general of the Iranian armed forces.