Before we can fully provision our tenant, we need to declare some variables that we'll use throughout the following sections. The first thing we'll need is the name of the tenant, or customer, along with the username and email address of the user who will be set as the tenant administrator. For the tenant name, we want to use the value that is used for the OU and the hostname of the tenant's root Site Collection (if you need these to be different values, then declare separate variables; for our purposes, we will use a single value for both):
$tenantName = “Customer1” $tenantAdminLogin = “domain\customer1admin” $tenantAdminEmail = “email@example.com”
Next, we need to get an instance of the Web Application that will host ...