Manchester City suffered a narrow 1-0 defeat to Bayern Munich on Wednesday in Pep Guardiola's first match in charge.