Invoke-EntraReplication
SYNOPSIS
Wait for a group or user to synchronize to Entra ID.
SYNTAX
Invoke-EntraReplication [-SamAccountName] <Object> [[-SyncAttempts] <Int32>]
[[-UseOwnAADAuthentication] <Boolean>] [<CommonParameters>]
DESCRIPTION
The `Invoke-EntraReplication` function waits for a specified group or user to synchronize to Entra ID. It initiates the synchronization process and monitors the progress until the object is successfully synced. The function supports specifying the number of synchronization attempts and using custom Azure AD authentication sessions.
EXAMPLES
EXAMPLE 1
Waits for the group "MyGroup" to synchronize to Entra ID, performing up to 3 synchronization attempts.
EXAMPLE 2
Waits for the user "MyUser" to synchronize to Entra ID using the user's own Azure AD authentication session.
PARAMETERS
-SamAccountName
The name of the group or user to be synchronized.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-SyncAttempts
The number of synchronization attempts to perform. Defaults to 2.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 2
Accept pipeline input: False
Accept wildcard characters: False
-UseOwnAADAuthentication
A switch parameter that, when specified, uses the user's own Azure AD authentication session instead of the default service principal.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.