A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Through the UI, the export was not working. So, I used the "Export-M365DSCConfiguration –Quiet" command along with the component values to extract and made some changes in the way the credentials were being passed.
It worked fine for me then.
Thanks for the suggestion.