 The army was assigned in July to the Defense District of North Carolina and Richmond.In the course of the Richmond-Petersburg Campaign the number of soldiers temporarily grew to 82,633 while parts of the Army were under the command by Lieutenant General Early in Shenandoah Valley.In 1864 the Army of Northern Virginia fought against the more than twice as strong Potomac-, James- and Shenandoah Army in Grant's Overland Campaign, Early's Raid against the Baltimore and Ohio Railroad, the Richmond-Petersburg Campaign, and Shenandoah Campaign in the Shenandoah Valley.