Test the SharePoint Server 2016 IT Preview in Azure

September 8, 2015 jason Uncategorized 0 Comments

Microsoft recently announced the availability of the SharePoint Server 2016 IT Preview. To make this preview easy to install and test, the SharePoint product team created a new Azure virtual machine gallery image with SharePoint Server 2016 IT Preview and its prerequisites pre-installed.


In fact, this is a perfect use of Azure infrastructure services; to quickly and easily spin up a virtual machine to evaluate and test a new version of a flagship server product offered by Microsoft or other vendors.


The image contains a complete installation of SharePoint Server 2016 IT Preview that expires on February 23, 2016. We recommend using A5 (ExtraLarge), A6, or A7 virtual machine sizes. A separate virtual machine running SQL Server 2014 with Service Pack 1 or SQL Server 2016 CTP 2.2 is also required.


After the virtual machine is created, configure its role using the SharePoint 2016 Products Configuration Wizard from the Start screen. For additional configuration and administration, use SharePoint 2016 Central Administration and the SharePoint 2016 Management Shell, also available from the Start screen.


See SharePoint Server 2016 IT Preview for the current document set published on TechNet.


The classic deployment model


For classic Azure virtual machines, you can specify the SharePoint Server 2016 IT Preview image in the Azure portal by clicking New > Compute > Virtual Machine > From Gallery. In the left-hand tree, click SharePoint, then click SharePoint Server 2016 IT Preview. See example below.


SP2016_Image


Click the right arrow button to continue the configuration of the new virtual machine. You can also create a classic virtual machine with the SharePoint Server 2016 IT Preview image using Microsoft Azure PowerShell or the Azure Command Line Interface (CLI).


For Azure PowerShell, you must specify the name of the SharePoint Server 2016 IT Preview image, which is required for the New-AzureVMConfig cmdlet. To obtain the name of the most current image and store it in the $image variable, use these commands:



$family="SharePoint Server 2016 IT Preview"
$image=Get-AzureVMImage | where { $_.ImageFamily -eq $family } | sort PublishedDate -Descending | select -ExpandProperty ImageName -First 1


Here is a command set in the Service Management mode of Azure PowerShell that builds a new virtual machine with this image.


Example Azure PowerShell command set


I need a virtual machine running SharePoint Server 2016 IT Preview that:


  • Has the name SP2016Test.
  • Is a member of the corp.contoso.com domain.
  • Is in the FrontEnd subnet of the AZDatacenter virtual network.
  • Is in the existing Azure-TailspinToys cloud service.

Here is the corresponding Azure PowerShell command set to create this virtual machine.



$family="SharePoint Server 2016 IT Preview"
$image=Get-AzureVMImage | where { $_.ImageFamily -eq $family } | sort PublishedDate -Descending | select -ExpandProperty ImageName -First 1
$vmname="SP2016Test"
$vmsize="ExtraLarge"
$vm1=New-AzureVMConfig -Name $vmname -InstanceSize $vmsize -ImageName $image

$cred1=Get-Credential –Message "Type the name and password of the local administrator account."
$cred2=Get-Credential –Message "Now type the name (not including the domain) and password of an account that has permission to add the machine to the domain."
$domaindns="corp.contoso.com"
$domacctdomain="CORP"
$vm1 | Add-AzureProvisioningConfig -AdminUsername $cred1.GetNetworkCredential().Username -Password $cred1.GetNetworkCredential().Password -WindowsDomain -Domain $domacctdomain -DomainUserName $cred2.GetNetworkCredential().Username -DomainPassword $cred2.GetNetworkCredential().Password -JoinDomain $domaindns

$vm1 | Set-AzureSubnet -SubnetNames "FrontEnd"

$svcname="Azure-TailspinToys"
$vnetname="AZDatacenter"
New-AzureVM –ServiceName $svcname -VMs $vm1 -VNetName $vnetname


To construct your own Azure PowerShell command set that includes additional configuration, such as extra data disks or a static IP address, see Use Azure PowerShell to create and preconfigure Windows-based Virtual Machines.


To create a classic virtual machine using the SharePoint Server 2016 IT Preview image with the Azure CLI, see Commands to manage your Azure virtual machines.


Once your SharePoint farm is up and running, to allow Internet access to the SharePoint web site or Central Administration, you must configure endpoints for the SharePoint server virtual machine. For more information, see Set up endpoints on a virtual machine in Azure.


The Resource Manager deployment model


You can create a Resource Manager virtual machine with the SharePoint Server 2016 IT Preview image using PowerShell or the Azure Command Line Interface (CLI). To specify an image for a Resource Manager virtual machine, you need to identify the image publisher, offer, and SKU. Here are the values for the SharePoint Server 2016 IT Preview image:


  • Publisher: MicrosoftSharePoint
  • Offer: MicrosoftSharePointServer
  • SKU: 2016

Here is a command set in the Resource Manager mode of Azure PowerShell that builds a new virtual machine with this image.


Example Azure PowerShell command set


I need a virtual machine running SharePoint Server 2016 IT Preview that:


  • Has the name SP2016Test.
  • Is in the FrontEnd subnet (subnet index 0) of the AZDatacenter virtual network.
  • Is in the existing SPFarm resource group and the existing SP_WFE_AS availability set.

Here is the corresponding Azure PowerShell command set to create this virtual machine.



# Switch to the Resource Manager mode
Switch-AzureMode AzureResourceManager

# Set values for existing resource group and storage account names
$rgName="SPFarm"
$locName="West US"
$saName="contosospfarmserverssa"

# Set the existing virtual network and subnet index
$vnetName="AZDatacenter"
$subnetIndex=0
$vnet=Get-AzurevirtualNetwork -Name $vnetName -ResourceGroupName $rgName

# Create the NIC
$nicName="SP2016Test-NIC"
$domName="contoso-vm-sp2016test"
$pip=New-AzurePublicIpAddress -Name $nicName -ResourceGroupName $rgName -DomainNameLabel $domName -Location $locName -AllocationMethod Dynamic
$nic=New-AzureNetworkInterface -Name $nicName -ResourceGroupName $rgName -Location $locName -SubnetId $vnet.Subnets[$subnetIndex].Id -PublicIpAddressId $pip.Id

# Specify the name, size, and existing availability set
$vmName="SP2016Test"
$vmSize="Standard_A6"
$avName="SP_WFE_AS"
$avSet=Get-AzureAvailabilitySet –Name $avName –ResourceGroupName $rgName
$vm=New-AzureVMConfig -VMName $vmName -VMSize $vmSize -AvailabilitySetId $avset.Id

# Specify the image and local administrator account, and then add the NIC
$pubName="MicrosoftSharePoint"
$offerName="MicrosoftSharePointServer"
$skuName="2016"
$cred=Get-Credential -Message "Type the name and password of the local administrator account."
$vm=Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $vmName -Credential $cred -ProvisionVMAgent -EnableAutoUpdate
$vm=Set-AzureVMSourceImage -VM $vm -PublisherName $pubName -Offer $offerName -Skus $skuName -Version "latest"
$vm=Add-AzureVMNetworkInterface -VM $vm -Id $nic.Id

# Specify the OS disk name and create the VM
$diskName="OSDisk"
$storageAcc=Get-AzureStorageAccount -ResourceGroupName $rgName -Name $saName
$osDiskUri=$storageAcc.PrimaryEndpoints.Blob.ToString() + "vhds/" + $vmName + $diskName  + ".vhd"
$vm=Set-AzureVMOSDisk -VM $vm -Name $diskName -VhdUri $osDiskUri -CreateOption fromImage
New-AzureVM -ResourceGroupName $rgName -Location $locName -VM $vm


To construct your own Azure PowerShell command set that includes additional configuration, such as extra data disks or a static IP address, see Create and preconfigure a Windows Virtual Machine with Resource Manager and Azure PowerShell.


To create a Resource Manager virtual machine using the SharePoint Server 2016 IT Preview image with the Azure CLI, see TASK: Quick-create a VM in Azure.


Once your SharePoint farm is up and running, to allow Internet access to the SharePoint web site or Central Administration, you must configure a load balancer and inbound NAT rules for the SharePoint server virtual machine. For more information, see Get started configuring an Internet-facing load balancer using Azure Resource Manager.


Be bold. Go forth. Use this image and experience the new generation of SharePoint.


Source: Microsoft Azure News

Could not resolve host: urls.api.twitter.com