Skip to content

Commit

Permalink
Merge branch 'bugfix/fix-az-env' of https://github.com/gautamdsheth/p…
Browse files Browse the repository at this point in the history
…npframework into pr885
  • Loading branch information
jansenbe committed Jun 1, 2023
2 parents e8f778b + b155711 commit 4ba5ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/PnP.Framework/Graph/UnifiedGroupsUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public static UnifiedGroupEntity CreateUnifiedGroup(string displayName, string d

try
{
groupLogoUpdated = UpdateUnifiedGroup(addedGroup.Id, accessToken, groupLogo: tempGroupLogo);
groupLogoUpdated = UpdateUnifiedGroup(addedGroup.Id, accessToken, groupLogo: tempGroupLogo, azureEnvironment: azureEnvironment);
}
catch
{
Expand Down Expand Up @@ -279,7 +279,7 @@ public static UnifiedGroupEntity CreateUnifiedGroup(string displayName, string d
{
try
{
modernSiteUrl = GetUnifiedGroupSiteUrl(addedGroup.Id, accessToken);
modernSiteUrl = GetUnifiedGroupSiteUrl(addedGroup.Id, accessToken, azureEnvironment: azureEnvironment);
}
catch
{
Expand All @@ -300,7 +300,7 @@ public static UnifiedGroupEntity CreateUnifiedGroup(string displayName, string d

if (createTeam)
{
await CreateTeam(group.GroupId, accessToken);
await CreateTeam(group.GroupId, accessToken, azureEnvironment: azureEnvironment);
}

return (group);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PnP.Framework/Sites/SiteCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public static async Task<ClientContext> CreateTeamSiteViaGraphAsync(ClientContex
{
if (siteCollectionCreationInformation.Owners!=null)
{
Graph.UnifiedGroupsUtility.AddUnifiedGroupMembers(group.GroupId, siteCollectionCreationInformation.Owners, graphAccessToken);
Graph.UnifiedGroupsUtility.AddUnifiedGroupMembers(group.GroupId, siteCollectionCreationInformation.Owners, graphAccessToken, azureEnvironment: azureEnvironment);
}
// Try to configure the site/group classification, if any
if (!string.IsNullOrEmpty(siteCollectionCreationInformation.Classification))
Expand Down

0 comments on commit 4ba5ec6

Please sign in to comment.