From the article: "The ArchiveGuid property will always be generated by Exchange on-premises regardless of what Exchange organization will be hosting it (on-premises or online), and this will be synced to Exchange Online."
I'm not sure this is correct? We have a unique situation where one team creates new user accounts On-Prem and then applies M365 license in M365. This creates their Exchange online mailbox. ExO then assigns the ExchangeGuid. After that is done, I have to run enable-remotemailbox on-prem and then I enable their archive mailbox in ExO. After that, I do as AlbertoP describes above with set-remotemailbox -exchangeguid. Once the archive mailbox is enabled in ExO, it assigns the ArchiveGuid, and I have to run -set-remotemailbox -archiveguid on-prem to ensure Exchange recongnizes that the user has an archive mailbox.