PowerShell-WallPaper_1

Creating SharePoint Online Site Collection using PowerShell

Recently, I have been very busy building a new product, and been playing a lot with the new (and old) Office 365 APIs and everything around it. The product is cloud based and in a multi-tenant distribution model. I will be blogging more often about the experience and challenges I faced.

Being a multi-tenant product that will be deployed many times, Automating it was the first thing to cross my mind.

I am using PowerShell scripts to create a site collection which will act as the datasource for my app.

The code is very straight forward three steps:

  1. Get the credentials
  2. Connect to the admin service
  3. Create the new site

Leave a Reply

Your email address will not be published. Required fields are marked *