need Azure powershell script to sync a single group membership across 2 Azure Tenants

Job ID: 35683471

Budget: $30 – $250 AUD

need a powershell script to run to compare 2 group across 2 Azure tenants and sync membership. Tenant A and Tenant B. Lets call the security groups GroupA and GroupB. The script needs to do the following. Get the members of both Groups. If the members in GroupA do NOT exist in GroupB then send out a Guest invite from Tenant B (Azure tenant guest member) add them to GroupB . If the members in GroupB do not exist in GroupA then delete them from GroupB. So GroupB always has to be the same as GroupA. GroupA is the master group.
Related categories: Powershell Microsoft Azure