You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to automate the creation of M365 Groups BUT allowing different default languages to be used. By default a new M365 group will use the default Tenant Language for the Default Language for the SPO Site in the M365 Group. This means so messages etc. can be in the wrong language.
I found a solution to this by: Creating the SPO Site in the correct Locale, then Groupifying the SPO Site, this can be done with the Add-PnPOffice365GroupToSite cmdlet.
To automate this I'm running the process in Azure Automation using Managed Identities. The problem is that the underlying API uses Delegated Permissions which isn't supported with App-Only authentication. I don't seem to be able to sign into PowerShell.PnP using Credentials in Azure Automation.
Does anyone have any ideas of how to get this working? I've tried looking at the Microsoft.Online.SharePoint.PowerShell module (New-SPOSiteGroup), but I can't get this to work with Azure Automation at all. I've also consider trying to use Graph API and the SharePoint API, but I don't seem to be able to get that working either.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to automate the creation of M365 Groups BUT allowing different default languages to be used. By default a new M365 group will use the default Tenant Language for the Default Language for the SPO Site in the M365 Group. This means so messages etc. can be in the wrong language.
I found a solution to this by: Creating the SPO Site in the correct Locale, then Groupifying the SPO Site, this can be done with the Add-PnPOffice365GroupToSite cmdlet.
To automate this I'm running the process in Azure Automation using Managed Identities. The problem is that the underlying API uses Delegated Permissions which isn't supported with App-Only authentication. I don't seem to be able to sign into PowerShell.PnP using Credentials in Azure Automation.
Does anyone have any ideas of how to get this working? I've tried looking at the Microsoft.Online.SharePoint.PowerShell module (New-SPOSiteGroup), but I can't get this to work with Azure Automation at all. I've also consider trying to use Graph API and the SharePoint API, but I don't seem to be able to get that working either.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions