protected override void ExecuteCmdlet()
        {
            TeamSiteCollectionGroupifyInformation groupifyInformation = new TeamSiteCollectionGroupifyInformation();

            groupifyInformation.Alias          = Alias;
            groupifyInformation.Description    = Description;
            groupifyInformation.DisplayName    = DisplayName;
            groupifyInformation.IsPublic       = IsPublic;
            groupifyInformation.Classification = Classification;

            var results         = SiteCollection.GroupifyAsync(ClientContext, groupifyInformation);
            var returnedContext = results.GetAwaiter().GetResult();

            WriteObject(returnedContext.Url);
        }
        /// <summary>
        /// BETA: Groupifies a classic Team Site Collection
        /// </summary>
        /// <param name="clientContext">ClientContext instance of the site to be groupified</param>
        /// <param name="siteCollectionGroupifyInformation">Information needed to groupify this site</param>
        /// <returns>The clientcontext of the groupified site</returns>
        public static async Task <ClientContext> GroupifySiteAsync(this ClientContext clientContext, TeamSiteCollectionGroupifyInformation siteCollectionGroupifyInformation)
        {
            await new SynchronizationContextRemover();

            return(await SiteCollection.GroupifyAsync(clientContext, siteCollectionGroupifyInformation));
        }
 /// <summary>
 /// BETA: Groupifies a classic Team Site Collection
 /// </summary>
 /// <param name="clientContext">ClientContext instance of the site to be groupified</param>
 /// <param name="siteCollectionGroupifyInformation">Information needed to groupify this site</param>
 /// <returns>The clientcontext of the groupified site</returns>
 public static async Task <ClientContext> GroupifySiteAsync(this ClientContext clientContext, TeamSiteCollectionGroupifyInformation siteCollectionGroupifyInformation)
 {
     return(await SiteCollection.GroupifyAsync(clientContext, siteCollectionGroupifyInformation));
 }