Hi all,
I have reviewed the CreateTeamsAndSPO.ps1 in detail, although I don't consider me as a programmer, I think I have everything ok with my script. After a lot of trial and errors, I still have some errors. Here is one:
--------------------------
Add-AzureADGroupMember : Cannot bind argument to parameter 'ObjectId' because it is null.
At C:\Users\jabrams\Desktop\TEAMS Virtual Rounding\Santurce-CreateTeamsAndSPO.ps1:83 char:42
+ Add-AzureADGroupMember -ObjectId $teamID -RefObjectId $member ...
+ ~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-AzureADGroupMember], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.Open.AzureAD16.PowerShell.AddGr
oupMember
-----------------------------------------
I noticed that someone have flag this same issue indicating that the TeamID variable is called before defining it. I think this is similar to what I have.
After the script is completed, this is what I was able to validate
- The Teams Group is created
- The Channels are created
- The SPO link is added to the Channels - When I click on them, I received an error - page is unavailable... I looked for the list file on SPO and notice it have not being created
- Teams members are not added to the group