Copy the “memberOf” from group “SG_Azure_A” to group “SG_Azure_B”
Get-ADPrincipalGroupMembership -Identity “SG_Azure_A” | ForEach-Object {Add-ADPrincipalGroupMembership -Identity “SG_Azure_B” -memberOf $_.distinguishedName}
Get-ADPrincipalGroupMembership -Identity “SG_Azure_A” | ForEach-Object {Add-ADPrincipalGroupMembership -Identity “SG_Azure_B” -memberOf $_.distinguishedName}