St Johnstone won last year's tournament
St Johnstone will open their defence of the Challenge Cup with a visit to Ross County next season.
Gretna face Clyde if their future can be guaranteed, while Partick Thistle host Glasgow rivals Queen's Park.
Dundee travel to Alloa Athletic, Peterhead entertain Montrose and Brechin City are at home to East Fife.
Scottish Cup runners-up Queen of the South make the trip to Berwick Rangers, Livingston host Stranraer and Dumbarton travel to Airdrie United.
Raith Rovers and Morton were the teams to receive byes as the opening round of the tournament is divided into North-East and South-West regions.
All matches are scheduled for Saturday 26 July.
Ross County v St. Johnstone
Alloa Athletic v Dundee
Arbroath v Forfar Athletic
Brechin City v East Fife
Dunfermline Athletic v Stirling Albion
Peterhead v Montrose
Elgin City v Cowdenbeath
Bye: Raith Rovers
East Stirlingshire v Ayr United
Clyde v Gretna
Stenhousemuir v Albion Rovers
Partick Thistle v Queen's Park
Berwick Rangers v Queen of the South
Livingston v Stranraer
Airdrie United v Dumbarton