#Help: pnponline add azure ad group to sharepoint online group during site creation

3 messages · Page 1 of 1 (latest)

digital pilot
#

Hey, directly after creating a spo site new-pnpsite I am creating an azure ad group, in the next step I want to add this group to a spo member group. There is an pnponline command, but it does not work directly in this moment.. somewhen after several minutes it works.. any ideas (other than splitting the process an creating "pending" tasks).

rich remnant
#

Sounds like just regular ol'cloud lagg. Start-Sleep might be your friend and some patience. You can also "check" for the resource before trying to interact with it.

digital pilot
#

Thx. jipp was already at a sleep -s 60. But I am in a 15 min process where a scheduled job is running.. and I need to create 3-4 sites in this timeframe.. so it is hard to allow some minutes of sleep :). Anyone Knowledge in MS Graph API / Mggraph Module, if it is possible there?