I found the way to pre-register contacts with an email, assign them to a web role, and upon the user signing in, the contact record will be automatically associated with the Azure AD external identity.
Create the following site setting, which is not preloaded to the portal by default:
Authentication/OpenIdConnect/AzureAD/AllowContactMappingWithEmail