Move comment to answer so that this post can be treated as answered.
Using script to generate registrations in all environments could be one option.
The important thing needs to remember is handling the GUID such as OAuth2Permissions id, appRoles id and so on.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…