AzureStack-QuickStart-Templ.../sharepoint-2013-non-ha
vikasnav 890bf58a33 Update Default for storage account (#200)
* Update Default for storage account

* Update the templates to remove warning pointed out by template validator

* Fix extension type (#202)

* Update azuredeploy.json

* Update azuredeploy.json
2017-02-23 10:56:09 -08:00
..
InstallAndConfigureSharePointServer.ps1.zip Updating to the latest version of xDownloadISO and xDownloadFile (#141) 2016-09-13 16:37:51 -07:00
Readme.md Push changes from develop to master (#164) 2016-09-27 12:05:37 -07:00
azuredeploy.json Update the assetlocation 2016-09-19 18:06:22 -07:00
azuredeploy.parameters.json Parameters file fixes for SharePoint and Visual Studio templates 2016-08-23 14:17:13 -07:00
deploySharePointStandalone.json AD, SQL, and SharePoint non-HA fixes for Azure compatibility 2016-07-19 14:02:24 -07:00
metadata.json Add metadata.json to all the files 2016-09-22 16:56:49 -07:00
spVMTemplate.json Update Default for storage account (#200) 2017-02-23 10:56:09 -08:00

Readme.md

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

This template will create a SharePoint 2013 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 2013 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 2013 with SP1 iso for installing the SharePoint server. If the provided iso does not include SP1 setup will fail. The iso for SharePoint 2013 with SP1 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 sharepoint2013SP1DownloadLink parameter on the SharePoint 2013 template

    $isodownloaduri

  • This template requires a product key for SharePoint 2013. A trial key for SharePoint 2013 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.
  • sharepoint2013SP1DownloadLink: Direct download link for the SharePoint 2013 with SP1 ISO.
  • sharepoint2013ProductKey: Product key for SharePoint 2013 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