Hi,
After creating an MS Team if I immediately try to set the retention policy into that using
set-retentioncompliancepolicy -identity "retention Policy Name" -Addteamchannellocation "Team's Name"
I get error, the team could not be found using PowerShell, office 365 portal both.
After some time maybe after 5-10 mins, it works.
Can anyone explain the reason behind it?