AzureStack-QuickStart-Templ.../sharepoint-2016-non-ha
Nik Charlebois 4b8a827985 Fixed Deploy button link (#322)
* Fixed Deploy button link

* Use Win2016 DataCenter

* Removed CredSSP calls

* Updated DSC

* Updates Farm creds

* Final Fixes tested in local test branch
2018-01-08 15:36:25 -08:00
..
InstallAndConfigureSharePointServer.ps1.zip Fixed Deploy button link (#322) 2018-01-08 15:36:25 -08:00
Readme.md Fixed Deploy button link (#322) 2018-01-08 15:36:25 -08:00
azuredeploy.json Fixed Deploy button link (#322) 2018-01-08 15:36:25 -08:00
azuredeploy.parameters.json Added a new SharePoint 2016 Non-HA template (#319) 2017-12-17 22:37:23 -08:00
deploySharePointStandalone.json Added a new SharePoint 2016 Non-HA template (#319) 2017-12-17 22:37:23 -08:00
metadata.json Added a new SharePoint 2016 Non-HA template (#319) 2017-12-17 22:37:23 -08:00
spVMTemplate.json Fixed Deploy button link (#322) 2018-01-08 15:36:25 -08:00

Readme.md

Create a 3-VM SharePoint 2016 farm with PowerShell DSC Extension

This template will create a SharePoint 2016 farm using the PowerShell DSC Extension it creates the following resources:

  • A Virtual Network
  • Three Storage Accounts
  • Two external load balancers
  • One VM configured as Domain Controller for a new forest with a single domain
  • One VM configured as SQL Server 2014 stand alone
  • One VM configured as a one machine SharePoint 2016 farm

One external load balancer creates an RDP NAT rule to allow connectivity to the domain controller VM The second external load balancer creates an RDP NAT rule to allow connectivity to the SharePoint VM To access the SQL VM use the domain controller or the SharePoint VMs as jumpboxes

Prerequisites

  • This template requires a SharePoint 2016 with SP1 iso for installing the SharePoint server. If the provided iso does not include SP1 setup will fail. The iso for SharePoint 2016 iso is available for download from the internet on MSDN subscriber downloads, Microsoft Partner Network, or Volume Licensing Service Center. If you don't wish to download the iso from the internet at template deployment time, you can download the iso beforehand place it on a local location where it is reachable for the VMs to download, for example Azure Stack blob storage. You can run the following script on your Azure Stack environment:

    Variables

    $rgname = "isosrg" $saname = "isossa" $containername = "isos" $location = "local" $isoPath = # File path to the iso to upload, for example C:\isos\myiso.iso

    Add specific Azure Stack Environment

    $AadTenantId = #GUID Specific to the AAD Tenant

    Add-AzureRmEnvironment -Name 'Azure Stack' -ActiveDirectoryEndpoint ("https://login.windows.net/$AadTenantId/") -ActiveDirectoryServiceEndpointResourceId "https://azurestack.local-api/" -ResourceManagerEndpoint ("https://api.azurestack.local/") -GalleryEndpoint ("https://gallery.azurestack.local/") ` -GraphEndpoint "https://graph.windows.net/"

    Get Azure Stack Environment Information

    $env = Get-AzureRmEnvironment 'Azure Stack'

    Authenticate to AAD with Azure Stack Environment

    Add-AzureRmAccount -Environment $env -Verbose

    Create a resource group, storage account, and storage container

    New-AzureRmResourceGroup -Name $rgname -Location $location New-AzureRmStorageAccount -ResourceGroupName $rgname -Name $saname -Type Standard_LRS -Location $location Set-AzureRmCurrentStorageAccount -ResourceGroupName $rgname -StorageAccountName $saname $container = New-AzureStorageContainer -Name $containername -Permission Container

    Upload the blob

    $file = Get-ChildItem -Path $isoPath Set-AzureStorageBlobContent -Container $containername -File $file.FullName -Blob $file.Name $isodownloaduri = (Get-AzureStorageBlob -Blob $file.Name -Container $containername).ICloudBlob.uri.AbsoluteUri

    This is the value you will use for the sharepoint2016DownloadLink parameter on the SharePoint 2016 template

    $isodownloaduri

  • This template requires a product key for SharePoint 2016. A trial key for SharePoint 2016 can be found on MSDN subscriber downloads or from the TechNet evaluation center.

Parameters

  • domainName: FQDN of the new domain to be created.
  • sqlServerServiceAccountUserName: Username of the SQL server service account to create.
  • adminUsername: Username of the local Administrator account of the new VMs and domain.
  • adminPassword: Password of the local Administrator account of the new VMs and domain.
  • sharepoint2016DownloadLink: Direct download link for the SharePoint 2016 with SP1 ISO.
  • sharepoint2016ProductKey: Product key for SharePoint 2016 with SP1, required for SharePoint setup.

Deploying from Portal

  • Login into Azurestack portal
  • Click "New" -> "Custom" -> "Template deployment"
  • Copy conent in azuredeploy.json, Click "Edit Tempalte" and paste content, then Click "Save"
  • Fill the parameters
  • Click "Create new" to create new Resource Group
  • Click "Create"

Deploying from PowerShell

Download azuredeploy.json and azuredeploy.azurestack.parameters.json to local machine

Modify parameter value in azuredeploy.azurestack.parameters.json as needed

Allow cookies in IE: Open IE at c:\Program Files\Internet Explorer\iexplore.exe -> Internet Options -> Privacy -> Advanced -> Click OK -> Click OK again

Launch a PowerShell console

Change working folder to the folder containing this template


# Add specific Azure Stack Environment 

$AadTenantId = <Tenant Id> #GUID Specific to the AAD Tenant 

Add-AzureRmEnvironment -Name 'Azure Stack' `
      -ActiveDirectoryEndpoint ("https://login.windows.net/$AadTenantId/") `
      -ActiveDirectoryServiceEndpointResourceId "https://azurestack.local-api/" `
      -ResourceManagerEndpoint ("https://api.azurestack.local/") `
      -GalleryEndpoint ("https://gallery.azurestack.local/") `
      -GraphEndpoint "https://graph.windows.net/"

# Get Azure Stack Environment Information 
$env = Get-AzureRmEnvironment 'Azure Stack' 

# Authenticate to AAD with Azure Stack Environment 
Add-AzureRmAccount -Environment $env -Verbose 

# Get Azure Stack Environment Subscription 
$SubName = <Subscription Name> # The sbuscription name is the offer name by default 
Get-AzureRmSubscription -SubscriptionName $SubName | Select-AzureRmSubscription

#Resource group name. Please make sure the resource group does not exist 
$resourceGroupName = "sqlResourceGroup"
$deploymentName = "SqlDeployment"
$location = "Local" 
New-AzurermResourceGroup -Name $resourceGroupName -Location $location 

#Start new Deployment
New-AzurermResourceGroupDeployment -Name $deploymentName -ResourceGroupName $resourceGroupName `
      -TemplateParameterFile .\azuredeploy.azurestack.parameters.json -TemplateFile .\azuredeploy.json