Germany overcome scare to edge out Australia

World champions Germany overcome a scare to win their first Confederations Cup game for 12 years by beating Australia in Russia.