Forum Discussion
Anonymous
Feb 20, 2017Programmatically creation of Office 365 Groups
I can create an Office 365 Group with PnP PowerShell (https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-provisioning-sites) with no problems at all - both the Office 365 ...
- Aug 25, 2017
You are one lazy.... ;)
Tenant tenant = new Tenant(clientContext);
var site = tenant.GetSitePropertiesByUrl(siteUrl, false);
clientContext.Load(site, s => s.Status);
site.Context.ExecuteQueryRetry();
var status = site.Status;
Mikael Svenson
Jul 10, 2017Iron Contributor
This is expected. Modern groups have less options. But, you can enable scripting on the site which will open more options. You can do that with set-pnptenantsite -noscriptsite:$false
Vishwanatha Nayak
Jul 10, 2017Brass Contributor
Thank you Mikael. I will give that a go and see if that helps. Thanks a ton for the directions.
I had also noticed that if the group is set to private, it will take a while to provision a site. I assume this also as per the design and provisioning solution need a wait condition.
Regards,
Vishwa
I had also noticed that if the group is set to private, it will take a while to provision a site. I assume this also as per the design and provisioning solution need a wait condition.
Regards,
Vishwa
- Mikael SvensonJul 10, 2017Iron ContributorRecent testing by a colleague has shown that the site is created right away with app keys, but haven't tested this myself. Previously a user had to click the sites/files/onenote option in the UI for the site to be spun up. Note that even though the site is there right away, it's not 100% ready. Check the site collection status flag and you will see that it takes a few minutes before it turns to ready. That's when you can start creating artifacts etc and be sure not to get an error.