PowerShell and CSOM: Create Subsites under SiteCollection for SharePoint Online

Functional Requirement

Admin wants to create subsites under the location site collections to his O365 SharePoint Online tenant from any remote machine.

Download Source Code

Solution Architecture

This tool is responsible for creation of subsites under the site collection by using array of subsite list. The tool is designed for PowerShell SharePoint Online Tool. This is using CSOM as client object model. Architecture of the tool is depicted as below,

ProvisioningPatternToolSubSiteCreation

A. Tenant Site

Admin has setup an Office 365 tenant account with Microsoft. The O365 E1, E2, E3 or above plan has been provided. The architecture is based on the O365 mentioned plan.

B. Location Site Collection

There will be separate site collection for every identified capability location.

C. Site

There will be separate sub site for every identified location site collection.

Z. Remote Provisioning Pattern Tool

Remote Provision pattern tool is responsible for creation of sub site based on the defined array.

 

Interface Architecture of Provisioning Pattern

 

Interface Architecture of Provisioning Pattern Tool

1. InstallProvisioning.ps1

This consists of specific logic of PowerShell scripting relevant to  Subsites creation.

2. ProvisioningLibrary.ps1

This consists of PowerShell scripting reusable logic for Provisioning pattern.

3. CommonLibrary.ps1

This consists of PowerShell scripting reusable logic that can be use across the different projects.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s