Multi factor authentication can be enable on O365 by following below link.

There is a special set of configuration required when multi factor authentication is enable on O365, microsoft provide a tool app password for third party app to connect when MFA is enabled please use this tool to configure passoword for credentials used in DS-NOC for backup purpose.

Please use link given below to configure app password.