Remove unsupported templates (#481)
This commit is contained in:
Родитель
eb2ca50e53
Коммит
72d647e263
|
@ -1,81 +0,0 @@
|
|||
param (
|
||||
[Parameter(Mandatory)]
|
||||
[string]$uri,
|
||||
[Parameter(Mandatory)]
|
||||
[string]$destination
|
||||
)
|
||||
|
||||
function DownloadISO {
|
||||
|
||||
# Local file storage location
|
||||
$localPath = "$env:SystemDrive"
|
||||
|
||||
# Log file
|
||||
$logFileName = "CSDownload.log"
|
||||
$logFilePath = "$localPath\$logFileName"
|
||||
|
||||
if(Test-Path $destination) {
|
||||
"Destination path exists. Skipping ISO download" | Tee-Object -FilePath $logFilePath -Append
|
||||
return
|
||||
}
|
||||
|
||||
$destination = Join-Path $env:SystemDrive $destination
|
||||
New-Item -Path $destination -ItemType Directory
|
||||
|
||||
$destinationFile = $null
|
||||
$result = $false
|
||||
# Download ISO
|
||||
$retries = 3
|
||||
# Stop retrying after download succeeds or all retries attempted
|
||||
while(($retries -gt 0) -and ($result -eq $false)) {
|
||||
try
|
||||
{
|
||||
"Downloading ISO from URI: $uri to destination: $destination" | Tee-Object -FilePath $logFilePath -Append
|
||||
$isoFileName = [System.IO.Path]::GetFileName($uri)
|
||||
$webClient = New-Object System.Net.WebClient
|
||||
$_date = Get-Date -Format hh:mmtt
|
||||
$destinationFile = "$destination\$isoFileName"
|
||||
$webClient.DownloadFile($uri, $destinationFile)
|
||||
$_date = Get-Date -Format hh:mmtt
|
||||
if((Test-Path $destinationFile) -eq $true) {
|
||||
"Downloading ISO file succeeded at $_date" | Tee-Object -FilePath $logFilePath -Append
|
||||
$result = $true
|
||||
}
|
||||
else {
|
||||
"Downloading ISO file failed at $_date" | Tee-Object -FilePath $logFilePath -Append
|
||||
$result = $false
|
||||
}
|
||||
} catch [Exception] {
|
||||
"Failed to download ISO. Exception: $_" | Tee-Object -FilePath $logFilePath -Append
|
||||
$retries--
|
||||
if($retries -eq 0) {
|
||||
Remove-Item $destination -Force -Confirm:0 -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Extract ISO
|
||||
if($result)
|
||||
{
|
||||
"Mount the image from $destinationFile" | Tee-Object -FilePath $logFilePath -Append
|
||||
$image = Mount-DiskImage -ImagePath $destinationFile -PassThru
|
||||
$driveLetter = ($image | Get-Volume).DriveLetter
|
||||
|
||||
"Copy files to destination directory: $destination" | Tee-Object -FilePath $logFilePath -Append
|
||||
Robocopy.exe ("{0}:" -f $driveLetter) $destination /E | Out-Null
|
||||
|
||||
"Dismount the image from $destinationFile" | Tee-Object -FilePath $logFilePath -Append
|
||||
Dismount-DiskImage -ImagePath $destinationFile
|
||||
|
||||
"Delete the temp file: $destinationFile" | Tee-Object -FilePath $logFilePath -Append
|
||||
Remove-Item -Path $destinationFile -Force
|
||||
}
|
||||
else
|
||||
{
|
||||
"Failed to download the file after exhaust retry limit" | Tee-Object -FilePath $logFilePath -Append
|
||||
Remove-Item $destination -Force -Confirm:0 -ErrorAction SilentlyContinue
|
||||
Throw "Failed to download the file after exhaust retry limit"
|
||||
}
|
||||
}
|
||||
|
||||
DownloadISO
|
|
@ -1,14 +0,0 @@
|
|||
#
|
||||
# Copyright="© Microsoft Corporation. All rights reserved."
|
||||
#
|
||||
|
||||
@{
|
||||
AllNodes = @(
|
||||
@{
|
||||
NodeName = "localhost";
|
||||
PSDscAllowDomainUser = $true;
|
||||
RebootNodeIfNeeded = $true;
|
||||
ActionAfterReboot = "ContinueConfiguration";
|
||||
}
|
||||
);
|
||||
}
|
Двоичные данные
exchange-2016-non-ha/ExchangeWorkload.zip
Двоичные данные
exchange-2016-non-ha/ExchangeWorkload.zip
Двоичный файл не отображается.
|
@ -1,291 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"exchangeStorageSizeInGB": {
|
||||
"type": "int",
|
||||
"defaultValue": 10,
|
||||
"metadata": {
|
||||
"description": "Exchange Mailbox storage size in GB."
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"exchangeVMCount": 1,
|
||||
"imagePublisher": "MicrosoftWindowsServer",
|
||||
"imageOffer": "WindowsServer",
|
||||
"addressPrefix": "10.0.0.0/16",
|
||||
"storageAccountType": "Standard_LRS",
|
||||
"publicIPAddressName": "[tolower(concat('ip', resourceGroup().name))]",
|
||||
"publicIPAddressType": "Dynamic",
|
||||
"subnetPrefix": "10.0.0.0/24",
|
||||
"subnetName": "[tolower(concat('sn', resourceGroup().name))]",
|
||||
"exchangeDomainName": "[tolower(concat(resourceGroup().name, '.com'))]",
|
||||
"uniqueDnsNameForPublicIP": "[tolower(concat('dns', resourceGroup().name))]",
|
||||
"uniqueStorageAccountName": "[tolower(concat('sa', resourceGroup().name))]",
|
||||
"uniqueStorageAccountContainerName": "[tolower(concat('sc', resourceGroup().name))]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"vmOsSku": "2012-R2-Datacenter",
|
||||
"vmAdminUsername": "vmadministrator",
|
||||
"vmAdminPassword": "[subscription().subscriptionId]",
|
||||
"vmName": "[concat('vm', resourceGroup().name)]",
|
||||
"vmOsDiskName": "[concat('od', resourceGroup().name)]",
|
||||
"vmDataDiskName": "[concat('dd', resourceGroup().name)]",
|
||||
"vmSize": "Standard_D3",
|
||||
"vmDataDiskSize": "15",
|
||||
"vmNicName": "[tolower(concat('nc', resourceGroup().name))]",
|
||||
"virtualNetworkName": "[tolower(concat('vn', resourceGroup().name))]",
|
||||
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
|
||||
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
|
||||
"modulesPath": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/exchange-2016-non-ha/",
|
||||
"modulesExchange": "ExchangeWorkload.zip",
|
||||
"modulesUrlExchange": "[concat(variables('modulesPath'),variables('modulesExchange'))]",
|
||||
"modulesExchangeData": "ExchangeWorkload.psd1",
|
||||
"modulesUrlExchangeData": "[concat(variables('modulesPath'),variables('modulesExchangeData'))]",
|
||||
"configurationFunctionExchange": "ExchangeWorkload.ps1\\InstallAndConfigureExchange",
|
||||
"nsgName": "[tolower(concat('ng', resourceGroup().name))]",
|
||||
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]",
|
||||
"exchangeInstallerPath": "InstallerExchange",
|
||||
"exchangeISOUri": "https://download.microsoft.com/download/1/F/7/1F777B44-32CB-4F3D-B486-3D0F566D79A9/ExchangeServer2016-x64-cu8.iso",
|
||||
"modulesExchangeISODownload": "CSDownloadISO.ps1",
|
||||
"modulesUrlExchangeISODownload": "[concat(variables('modulesPath'),variables('modulesExchangeISODownload'))]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[tolower(variables('uniqueStorageAccountName'))]",
|
||||
"location": "[variables('location')]",
|
||||
"properties": {
|
||||
"accountType": "[variables('storageAccountType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[concat(variables('publicIPAddressName'),copyIndex())]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "publicIPLoop",
|
||||
"count": "[variables('exchangeVMCount')]"
|
||||
},
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "[variables('publicIPAddressType')]",
|
||||
"dnsSettings": {
|
||||
"domainNameLabel": "[variables('uniqueDnsNameForPublicIP')]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"name": "[variables('nsgName')]",
|
||||
"location": "[variables('location')]",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "nsgsrule",
|
||||
"properties": {
|
||||
"protocol": "*",
|
||||
"sourcePortRange": "*",
|
||||
"destinationPortRange": "*",
|
||||
"sourceAddressPrefix": "*",
|
||||
"destinationAddressPrefix": "*",
|
||||
"access": "Allow",
|
||||
"priority": 101,
|
||||
"direction": "Inbound"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [ "[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]" ],
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[variables('addressPrefix')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('subnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('subnetPrefix')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "[concat(variables('vmNicName'),copyIndex())]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "nicLoop",
|
||||
"count": "[variables('exchangeVMCount')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/publicIPAddresses/',variables('publicIPAddressName'),copyIndex())]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfigpublic",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"publicIPAddress": {
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses',concat(variables('publicIPAddressName'),copyIndex()))]"
|
||||
},
|
||||
"subnet": {
|
||||
"id": "[variables('subnetRef')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[concat(variables('vmName'),copyIndex())]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "vmLoop",
|
||||
"count": "[variables('exchangeVMCount')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Storage/storageAccounts/',variables('uniqueStorageAccountName'))]",
|
||||
"[concat('Microsoft.Network/networkInterfaces/',variables('vmNicName'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[variables('vmSize')]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[variables('vmName')]",
|
||||
"adminUsername": "[variables('vmAdminUsername')]",
|
||||
"adminPassword": "[variables('vmAdminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "[variables('imagePublisher')]",
|
||||
"offer": "[variables('imageOffer')]",
|
||||
"sku": "[variables('vmOsSku')]",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),'/',variables('vmOsDiskName'),copyIndex(),'.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),'/',variables('vmDataDiskName'),copyIndex(),'-0','.vhd')]"
|
||||
},
|
||||
"name": "[concat(variables('vmDataDiskName'),copyIndex(),'-0')]",
|
||||
"createOption": "Empty",
|
||||
"caching": "None",
|
||||
"diskSizeGB": "[variables('vmDataDiskSize')]",
|
||||
"lun": 0
|
||||
},
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),'/',variables('vmDataDiskName'),copyIndex(),'-1','.vhd')]"
|
||||
},
|
||||
"name": "[concat(variables('vmDataDiskName'),copyIndex(),'-1')]",
|
||||
"createOption": "Empty",
|
||||
"caching": "None",
|
||||
"diskSizeGB": "[variables('vmDataDiskSize')]",
|
||||
"lun": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('vmNicName'),copyIndex()))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(variables('vmName'),copyIndex(),'/CustomScriptExtension')]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "customExtensionLoop",
|
||||
"count": "[variables('exchangeVMCount')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/',variables('vmName'),copyIndex())]"
|
||||
],
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.4",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('modulesUrlExchangeISODownload')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('modulesExchangeISODownload'),' -uri ',variables('exchangeISOUri'),' -destination ',variables('exchangeInstallerPath'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(variables('vmName'),copyIndex(),'/dscExtension')]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "extensionLoop",
|
||||
"count": "[variables('exchangeVMCount')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/',variables('vmName'),copyIndex())]",
|
||||
"[concat('Microsoft.Compute/virtualMachines/',variables('vmName'),copyIndex(),'/extensions/','CustomScriptExtension')]"
|
||||
],
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.15",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"modulesUrl": "[variables('modulesUrlExchange')]",
|
||||
"configurationFunction": "[variables('configurationFunctionExchange')]",
|
||||
"properties": {
|
||||
"DomainName": "[variables('exchangeDomainName')]",
|
||||
"StorageSize": "[parameters('exchangeStorageSizeInGB')]",
|
||||
"VMAdminCreds": {
|
||||
"userName": "[variables('vmAdminUsername')]",
|
||||
"password": "PrivateSettingsRef:vmAdminPassword"
|
||||
},
|
||||
"Location": "[variables('location')]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"items": {
|
||||
"vmAdminPassword": "[variables('vmAdminPassword')]"
|
||||
},
|
||||
"DataBlobUri": "[variables('modulesUrlExchangeData')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"exchangeStorageSizeInGB": {
|
||||
"value": 10
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"itemDisplayName": "Deploy Exchange on a Windows Server VM on Azure Stack",
|
||||
"description": "Deploy Exchange on a Windows Server VM on Azure Stack",
|
||||
"summary": "This template has default values for all the parameters",
|
||||
"githubUsername": "azurestack",
|
||||
"dateUpdated": "2016-09-20"
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
# EXCHANGE 2016 CU1 INSTALLATION
|
||||
|
||||
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fdevelop%2Fexchange-2016-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://azuredeploy.net/deploybutton.png"/>
|
||||
</a>
|
||||
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fdevelop%2Fexchange-2016-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://armviz.io/visualizebutton.png"/>
|
||||
</a>
|
||||
|
||||
This template deploys Exchange 2016.
|
||||
|
||||
`Tags: [exchange, mailbox]`
|
||||
|
||||
| Endpoint | Version | Validated |
|
||||
| ------------- |:-------------:| -----:|
|
||||
| Microsoft Azure | - | YES |
|
||||
| Microsoft Azure Stack | - | YES |
|
||||
|
||||
## Deployed resources
|
||||
|
||||
The following resources are deployed as part of the solution
|
||||
####[Exchange 2016 Non-HA]
|
||||
[Deploys a VM, install pre-requisites, downloads Exchange 2016 ISO, install Exchange 2016 on a seperate disk drive (E:) and create Mailbox on a seperate disk drive (F:)]
|
||||
+ **Public IP Address**: Allows connection to a VM
|
||||
+ **Network Security Group**:
|
||||
+ **Storage Account**: VHDs, Result blobs storage
|
||||
+ **Network Interface**:
|
||||
+ **Virtual Network**:
|
||||
+ **Virtual Machine**: To run Jetstress test
|
||||
+ **DSC Extension**: Install Exchange 2016
|
||||
|
||||
## EXCHANGE (2016) INSTALLATION FOR AZURESTACK ##
|
||||
|
||||
|
||||
<b>DESCRIPTION</b>
|
||||
|
||||
This template deploys requested number of VMs with public IP address in same virtual network. DSC installs Exchange 2016 Cumulative Update 1.
|
||||
|
||||
Please make sure to user unique resource group name for each deployment to avoid deployment failures due to name collisions of resources.
|
||||
|
||||
NOTE: There is a 90 minutes Azure time-out which you can hit if internet connection is slower to download installation files and takes longer than 60 minutes.
|
||||
|
||||
NOTE: To use Exchange Management Shell in compatibility mode, use PowerShell code snippet given below-
|
||||
|
||||
```PowerShell
|
||||
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
|
||||
& 'E:\Exchange\Bin\RemoteExchange.ps1'
|
||||
```
|
||||
|
||||
|
||||
<b>PARAMETERS</b>
|
||||
```PowerShell
|
||||
exchangeVMCount: 2 #[Number of VMs to deploy and run jestress workload]
|
||||
|
||||
exchangeStorageSize: 10GB #[Exchange Mailbox size in bytes]
|
||||
```
|
Двоичный файл не отображается.
Двоичные данные
sharepoint-2013-non-ha-loadtest/CommonScripts/LogToFile.psm1
Двоичные данные
sharepoint-2013-non-ha-loadtest/CommonScripts/LogToFile.psm1
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -1,114 +0,0 @@
|
|||
# SharePoint 2013 non-ha personal sites load test on AzureStack
|
||||
|
||||
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fsharepoint-2013-non-ha-loadtest%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://azuredeploy.net/deploybutton.png"/></a>
|
||||
|
||||
This template deploys a load test for SharePoint 2013 personal sites. This template will prepare the target SharePoint farm for load test execution and download and run the load test on an existing test controller
|
||||
|
||||
`Tags: sharepoint, loadtest, workload`
|
||||
|
||||
| Endpoint | Version | Validated |
|
||||
| ------------- |:-------------:| -----:|
|
||||
| Microsoft Azure | - | no |
|
||||
| Microsoft Azure Stack | - | no |
|
||||
|
||||
## Deployed resources
|
||||
|
||||
The following resources are deployed as part of the solution
|
||||
|
||||
####[SharePointFarmPrepareForLoadTest]
|
||||
[Prepares the target SharePoint 2013 server for personal sites load testing]
|
||||
+ **[Custom script VM extension]**: [Enables the search, managed metadata, and user profile SharePoint services. It also provisions the personal sites for the target number of test users]
|
||||
|
||||
####[SQLPrepareForLoadTest]
|
||||
[Prepares the SQL server of the target SharePoint 2013 farm for load testing]
|
||||
+ **[Custom script VM extension]**: [Enables remote collecting of performance counters]
|
||||
|
||||
####[TestControllerRunLoadTest]
|
||||
[Downloads, prepares, and executes the load test on a pre-existing Visual Studio test controller]
|
||||
+ **[Custom script VM extension]**: [Downloads the load test package; sets the target endpoints on the load tests; and executes the requested load test]
|
||||
|
||||
## Prerequisites
|
||||
+ A SharePoint 2013 non-HA farm is required. A farm can be provisioned by using the template located at: https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/sharepoint-2013-non-ha
|
||||
+ A Visual Studio TC/TA deployment is required. The deployment can be provisioned by using the template located at: https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/vs2013-tcta
|
||||
+ The SharePoint farm and the TC/TA deployments must be connected to the same VM network and subnet.
|
||||
+ This template assumes that the computer names for the machines to be tested are the same as their corresponding VM resource names
|
||||
|
||||
## Deployment steps
|
||||
You can either click the "deploy to Azure" button at the beginning of this document or deploy the solution from PowerShell with the following PowerShell script.
|
||||
|
||||
``` PowerShell
|
||||
## Specify your AzureAD Tenant in a variable.
|
||||
# If you know the prefix of your <prefix>.onmicrosoft.com AzureAD account use option 1)
|
||||
# If you do not know the prefix of your <prefix>.onmicrosoft.com AzureAD account use option 2)
|
||||
|
||||
# Option 1) If you know the prefix of your <prefix>.onmicrosoft.com AzureAD namespace.
|
||||
# You need to set that in the $AadTenantId varibale (e.g. contoso.onmicrosoft.com).
|
||||
$AadTenantId = "contoso"
|
||||
|
||||
# Option 2) If you don't know the prefix of your AzureAD namespace, run the following cmdlets.
|
||||
# Validate with the Azure AD credentials you also use to sign in as a tenant to Microsoft Azure Stack Development Kit.
|
||||
$AadTenant = Login-AzureRmAccount
|
||||
$AadTenantId = $AadTenant.Context.Tenant.TenantId
|
||||
|
||||
## Configure the environment with the Add-AzureRmEnvironment cmdlt
|
||||
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/"
|
||||
|
||||
## Authenticate a user to the environment (you will be prompted during authentication)
|
||||
$privateEnv = Get-AzureRmEnvironment 'Azure Stack'
|
||||
$privateAzure = Add-AzureRmAccount -Environment $privateEnv -Verbose
|
||||
Select-AzureRmProfile -Profile $privateAzure
|
||||
|
||||
## Select an existing subscription where the deployment will take place
|
||||
Get-AzureRmSubscription -SubscriptionName "SUBSCRIPTION_NAME" | Select-AzureRmSubscription
|
||||
|
||||
# Set Deployment Variables
|
||||
$myNum = 0
|
||||
$TestControllerVMName = "sprg-tc-0"
|
||||
$TestControllerServiceUserName = "tcserv"
|
||||
$TargetSharePointServerVMName = "sprg-sp-0"
|
||||
$TargetSQLServerVMName = "sprg-sql-0"
|
||||
$TargetSharePointServerAdminUserName = "Administrator"
|
||||
$TargetSharePointServerUserPassword = "GEN-PASSWORD"
|
||||
$TargetSharePointSiteURL = "http://sprg-sp-0.contoso.com"
|
||||
$NumberOfLoadTestUsers = 15
|
||||
$LoadTestToRun = "MySiteHostRW.loadtest"
|
||||
$VisualStudioVersionNumber = 12
|
||||
|
||||
# Create Resource Group for Template Deployment
|
||||
New-AzureRmResourceGroup -Name $RGName -Location $myLocation
|
||||
|
||||
# Deploy Template
|
||||
New-AzureRmResourceGroupDeployment `
|
||||
-Name "myDeployment$myNum" `
|
||||
-ResourceGroupName $RGName `
|
||||
-TemplateFile "azuredeploy.json" `
|
||||
-deploymentLocation $myLocation `
|
||||
-TestControllerVMName $TestControllerVMName `
|
||||
-TestControllerServiceUserName $TestControllerServiceUserName `
|
||||
-TargetSharePointServerVMName $TargetSharePointServerVMName `
|
||||
-TargetSQLServerVMName $TargetSQLServerVMName `
|
||||
-TargetSharePointServerAdminUserName $TargetSharePointServerAdminUserName `
|
||||
-TargetSharePointServerUserPassword $TargetSharePointServerUserPassword `
|
||||
-TargetSharePointSiteURL $TargetSharePointSiteURL `
|
||||
-NumberOfLoadTestUsers $NumberOfLoadTestUsers `
|
||||
-LoadTestToRun $LoadTestToRun `
|
||||
-VisualStudioVersionNumber $VisualStudioVersionNumber
|
||||
```
|
||||
|
||||
## Usage
|
||||
#### Connect
|
||||
Connect to the test controller VM, the results from the load test run will be placed at C:\LoadTestResults
|
||||
|
||||
## Notes
|
||||
+ The load tests used by this template was generated from a SharePoint load generation tool located at: https://visualstudiogallery.msdn.microsoft.com/04d66805-034f-4f6b-9915-403009033263?SRC=VSIDE
|
||||
+ This template makes use of nested templates for deploying the VM extensions, the main template (azuredeploy.json) assumes that the SharePoint 2013 and VS 2013 TC/TA farms are deployed
|
||||
on the same resource group. If they however are on different resource groups deploy azuredeploy.SharePointFarmPrepareForLoadTest.json and azuredeploy.SQLPrepareForLoadTest.json on the SharePoint 2013 resource group
|
||||
and deploy azuredeploy.TestControllerRunLoadTest.json on the VS 2013 TC/TA resource group.
|
||||
+ There are 3 load tests provided by this solution: CSOMListRW.loadtest (client model add/remove list), MySiteHostRW.loadtest (personal site host page read/write), and MySiteRW.loadtest (personal site read/write)
|
||||
|
Двоичные данные
sharepoint-2013-non-ha-loadtest/SharePointLoadTest.zip
Двоичные данные
sharepoint-2013-non-ha-loadtest/SharePointLoadTest.zip
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -1,49 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name of the account under which the test controller service is running on the test controller machine"
|
||||
},
|
||||
"defaultValue": "tcserv"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SQL server VM resource to test"
|
||||
},
|
||||
"defaultValue": "sprg-sql-0"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha-loadtest",
|
||||
"LogToFileScriptName": "LogToFile.psm1",
|
||||
"LogToFileScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('LogToFileScriptName'))]",
|
||||
"PrepareTargetForRunScriptName": "PrepareTargetForRun.ps1",
|
||||
"PrepareTargetForRunScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('PrepareTargetForRunScriptName'))]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('TargetSQLServerVMName'),'/PrepareSPServerForLTRun')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('LogToFileScriptURL')]",
|
||||
"[variables('PrepareTargetForRunScriptURL')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('PrepareTargetForRunScriptName'),' ',parameters('TestControllerServiceUserName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,103 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name of the account under which the test controller service is running on the test controller machine"
|
||||
},
|
||||
"defaultValue": "tcserv"
|
||||
},
|
||||
"TargetSharePointServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SharePoint server VM resource to test"
|
||||
},
|
||||
"defaultValue": "sprg-sp-0"
|
||||
},
|
||||
"TargetSharePointServerAdminUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the SharePoint administrator account"
|
||||
},
|
||||
"defaultValue": "Administrator"
|
||||
},
|
||||
"TargetSharePointServerUserPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password of the SharePoint administrator account"
|
||||
}
|
||||
},
|
||||
"TargetSharePointSiteURL": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "URL of the SharePoint end point to test."
|
||||
},
|
||||
"defaultValue": "http://sprg-sp-0.contoso.com"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the SharePoint farm's SQL server"
|
||||
},
|
||||
"defaultValue": "sprg-sql-0"
|
||||
},
|
||||
"NumberOfLoadTestUsers": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "Number of users to create on the SharePoint farm for load testing"
|
||||
},
|
||||
"defaultValue": 15
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha-loadtest",
|
||||
"LogToFileScriptName": "LogToFile.psm1",
|
||||
"LogToFileScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('LogToFileScriptName'))]",
|
||||
"PrepTargetScriptName": "PrepareTargetForRun.ps1",
|
||||
"PrepTargetScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('PrepTargetScriptName'))]",
|
||||
"DownloadLTScriptName": "DownloadLoadTestPackage.ps1",
|
||||
"DownloadLTScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('DownloadLTScriptName'))]",
|
||||
"SearchSvcScriptName": "SharePointEnableSearchService.ps1",
|
||||
"SearchSvcScriptURL": "[concat(variables('assetLocation'),'/SharePointSiteScripts/',variables('SearchSvcScriptName'))]",
|
||||
"MetadataSvcScriptName": "SharePointEnableManagedMetadataService.ps1",
|
||||
"MetadataSvcScriptURL": "[concat(variables('assetLocation'),'/SharePointSiteScripts/',variables('MetadataSvcScriptName'))]",
|
||||
"UPSvcScriptName": "SharePointPrepareUserProfileServiceForLoadTest.ps1",
|
||||
"UPSvcScriptURL": "[concat(variables('assetLocation'),'/SharePointSiteScripts/',variables('UPSvcScriptName'))]",
|
||||
"RunnerScriptName": "SharePointScriptExtensionRunner.ps1",
|
||||
"CreateUsersScriptName": "SharePointCreateUsersForLoadTest.ps1",
|
||||
"CreateUsersScriptURL": "[concat(variables('assetLocation'),'/SharePointSiteScripts/',variables('CreateUsersScriptName'))]",
|
||||
"RunnerScriptURL": "[concat(variables('assetLocation'),'/SharePointSiteScripts/',variables('RunnerScriptName'))]",
|
||||
"LoadTestPackageURL": "[concat(variables('assetLocation'),'/SharePointLoadTest.zip')]",
|
||||
"LoadTestUnpackLocation": "%tmp%\\SharePointLoadTest"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('TargetSharePointServerVMName'),'/PrepareSPServerForLTRun')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('LogToFileScriptURL')]",
|
||||
"[variables('PrepTargetScriptURL')]",
|
||||
"[variables('DownloadLTScriptURL')]",
|
||||
"[variables('SearchSvcScriptURL')]",
|
||||
"[variables('MetadataSvcScriptURL')]",
|
||||
"[variables('UPSvcScriptURL')]",
|
||||
"[variables('CreateUsersScriptURL')]",
|
||||
"[variables('RunnerScriptURL')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('RunnerScriptName'),' ',parameters('TestControllerServiceUserName'),' ',variables('LoadTestPackageURL'),' ',variables('LoadTestUnpackLocation'),' ',parameters('TargetSharePointServerAdminUserName'),' ',parameters('TargetSharePointServerUserPassword'),' ',parameters('TargetSharePointSiteURL'),' ',parameters('TargetSQLServerVMName'),' ',parameters('NumberOfLoadTestUsers'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,102 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing test controller VM resource to use"
|
||||
},
|
||||
"defaultValue": "sprg-tc-0"
|
||||
},
|
||||
"TargetSharePointServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Machine name of the SharePoint end point to test"
|
||||
},
|
||||
"defaultValue": "sprg-sp-0"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Machine name of the SharePoint farm's to test SQL server"
|
||||
},
|
||||
"defaultValue": "sprg-sql-0"
|
||||
},
|
||||
"NumberOfLoadTestUsers": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "Number of users created for load testing"
|
||||
},
|
||||
"defaultValue": 15
|
||||
},
|
||||
"LoadTestToRun": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the load test file to run"
|
||||
},
|
||||
"allowedValues": [ "CSOMListRW.loadtest", "MySiteHostRW.loadtest", "MySiteRW.loadtest" ],
|
||||
"defaultValue": "MySiteHostRW.loadtest"
|
||||
},
|
||||
"TargetSharePointServerAdminUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the test controller administrator account"
|
||||
},
|
||||
"defaultValue": "Administrator"
|
||||
},
|
||||
"TargetSharePointServerUserPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password of the test controller administrator account"
|
||||
}
|
||||
},
|
||||
"VisualStudioVersionNumber": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "The version number of Visual Studio installed on the test controller. For example, if Visual Studio 2013 is installed the version number is 12"
|
||||
},
|
||||
"defaultValue": 12
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha-loadtest",
|
||||
"LogToFileScriptName": "LogToFile.psm1",
|
||||
"LogToFileScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('LogToFileScriptName'))]",
|
||||
"DownloadLTScriptName": "DownloadLoadTestPackage.ps1",
|
||||
"DownloadLTScriptURL": "[concat(variables('assetLocation'),'/CommonScripts/',variables('DownloadLTScriptName'))]",
|
||||
"PrepareLTForRunScriptName": "TestControllerPrepareLoadTest.ps1",
|
||||
"PrepareLTForRunScriptURL": "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('PrepareLTForRunScriptName'))]",
|
||||
"StartLoadTestRunScriptName": "TestControllerStartLoadTestRun.ps1",
|
||||
"StartLoadTestRunScriptURL": "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('StartLoadTestRunScriptName'))]",
|
||||
"RunnerScriptName": "TestControllerScriptExtensionRunner.ps1",
|
||||
"RunnerScriptURL": "[concat(variables('assetLocation'),'/TestControllerScripts/',variables('RunnerScriptName'))]",
|
||||
"LoadTestPackageURL": "[concat(variables('assetLocation'),'/SharePointLoadTest.zip')]",
|
||||
"LoadTestUnpackLocation": "%SystemDrive%\\LoadTests\\SharePointLoadTest"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('TestControllerVMName'),'/RunLoadTest')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.8",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('LogToFileScriptURL')]",
|
||||
"[variables('DownloadLTScriptURL')]",
|
||||
"[variables('PrepareLTForRunScriptURL')]",
|
||||
"[variables('StartLoadTestRunScriptURL')]",
|
||||
"[variables('RunnerScriptURL')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('RunnerScriptName'),' ',variables('LoadTestPackageURL'),' ',variables('LoadTestUnpackLocation'),' ',parameters('TargetSharePointServerVMName'),' ',parameters('TargetSQLServerVMName'),' ',parameters('NumberOfLoadTestUsers'),' ',parameters('LoadTestToRun'),' ',parameters('TargetSharePointServerAdminUserName'),' ',parameters('TargetSharePointServerUserPassword'),' ',parameters('VisualStudioVersionNumber'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,192 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing test controller VM resource to use"
|
||||
},
|
||||
"defaultValue": "[concat(resourceGroup().name,'-tc-0')]"
|
||||
},
|
||||
"TestControllerServiceUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name of the account under which the test controller service is running on the test controller machine"
|
||||
},
|
||||
"defaultValue": "tcserv"
|
||||
},
|
||||
"TargetSharePointServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SharePoint server VM resource to test"
|
||||
},
|
||||
"defaultValue": "[concat('SP',resourceGroup().name)]"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SQL server VM resource to test"
|
||||
},
|
||||
"defaultValue": "[concat('SPSQL',resourceGroup().name)]"
|
||||
},
|
||||
"TargetSharePointServerAdminUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the SharePoint administrator account"
|
||||
},
|
||||
"defaultValue": "lcladmin"
|
||||
},
|
||||
"TargetSharePointServerUserPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password of the SharePoint administrator account"
|
||||
},
|
||||
"defaultValue": "[concat('Subscription#',subscription().subscriptionId)]"
|
||||
},
|
||||
"TargetSharePointSiteURL": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "URL of the SharePoint end point to test."
|
||||
},
|
||||
"defaultValue": "[concat('http://SP',resourceGroup().name,'.contoso.com')]"
|
||||
},
|
||||
"NumberOfLoadTestUsers": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "Number of users to create on the SharePoint farm for load testing"
|
||||
},
|
||||
"defaultValue": 15
|
||||
},
|
||||
"LoadTestToRun": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the load test file to run"
|
||||
},
|
||||
"allowedValues": [ "CSOMListRW.loadtest", "MySiteHostRW.loadtest", "MySiteRW.loadtest" ],
|
||||
"defaultValue": "MySiteHostRW.loadtest"
|
||||
},
|
||||
"VisualStudioVersionNumber": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "The version number of Visual Studio installed on the test controller. For example, if Visual Studio 2013 is installed the version number is 12"
|
||||
},
|
||||
"defaultValue": 12
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha-loadtest",
|
||||
"PrepareSQLDeployment": "PrepareSQLForLoadTest",
|
||||
"PrepareSQLDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('PrepareSQLDeployment'))]",
|
||||
"PrepareSQLTemplateURL": "[concat(variables('assetLocation'),'/azuredeploy.SQLPrepareForLoadTest.json')]",
|
||||
"PrepareSPDeployment": "PrepareSharePointForLoadTest",
|
||||
"PrepareSPDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('PrepareSPDeployment'))]",
|
||||
"PrepareSPTemplateURL": "[concat(variables('assetLocation'),'/azuredeploy.SharePointFarmPrepareForLoadTest.json')]",
|
||||
"RunLoadTestDeployment": "RunLoadTest",
|
||||
"RunLoadTestTemplateURL": "[concat(variables('assetLocation'),'/azuredeploy.TestControllerRunLoadTest.json')]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[variables('PrepareSQLDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [ ],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('PrepareSQLTemplateURL')]",
|
||||
"contentVersion": "1.16.8.5"
|
||||
},
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"value": "[parameters('TestControllerServiceUserName')]"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"value": "[parameters('TargetSQLServerVMName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('PrepareSPDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('PrepareSQLDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('PrepareSPTemplateURL')]",
|
||||
"contentVersion": "1.16.8.5"
|
||||
},
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"value": "[parameters('TestControllerServiceUserName')]"
|
||||
},
|
||||
"TargetSharePointServerVMName": {
|
||||
"value": "[parameters('TargetSharePointServerVMName')]"
|
||||
},
|
||||
"TargetSharePointServerAdminUserName": {
|
||||
"value": "[parameters('TargetSharePointServerAdminUserName')]"
|
||||
},
|
||||
"TargetSharePointServerUserPassword": {
|
||||
"value": "[parameters('TargetSharePointServerUserPassword')]"
|
||||
},
|
||||
"TargetSharePointSiteURL": {
|
||||
"value": "[parameters('TargetSharePointSiteURL')]"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"value": "[parameters('TargetSQLServerVMName')]"
|
||||
},
|
||||
"NumberOfLoadTestUsers": {
|
||||
"value": "[parameters('NumberOfLoadTestUsers')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('RunLoadTestDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('PrepareSQLDeploymentID')]",
|
||||
"[variables('PrepareSPDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('RunLoadTestTemplateURL')]",
|
||||
"contentVersion": "1.16.8.5"
|
||||
},
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"value": "[parameters('TestControllerVMName')]"
|
||||
},
|
||||
"TargetSharePointServerVMName": {
|
||||
"value": "[parameters('TargetSharePointServerVMName')]"
|
||||
},
|
||||
"TargetSQLServerVMName": {
|
||||
"value": "[parameters('TargetSQLServerVMName')]"
|
||||
},
|
||||
"NumberOfLoadTestUsers": {
|
||||
"value": "[parameters('NumberOfLoadTestUsers')]"
|
||||
},
|
||||
"LoadTestToRun": {
|
||||
"value": "[parameters('LoadTestToRun')]"
|
||||
},
|
||||
"TargetSharePointServerAdminUserName": {
|
||||
"value": "[parameters('TargetSharePointServerAdminUserName')]"
|
||||
},
|
||||
"TargetSharePointServerUserPassword": {
|
||||
"value": "[parameters('TargetSharePointServerUserPassword')]"
|
||||
},
|
||||
"VisualStudioVersionNumber": {
|
||||
"value": "[parameters('VisualStudioVersionNumber')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"itemDisplayName": "Template that deploys a load test for personal sites on a given SharePoint 2013 farm",
|
||||
"description": "Template that deploys a load test for personal sites on a given SharePoint 2013 farm",
|
||||
"summary": "This template has default values for all the parameters which works with Sharepoint-non-ha template of Azure stack github",
|
||||
"githubUsername": "azurestack",
|
||||
"dateUpdated": "2016-09-22"
|
||||
}
|
||||
|
Двоичный файл не отображается.
|
@ -1,128 +0,0 @@
|
|||
# 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 = <ISO Path> # File path to the iso to upload, for example C:\isos\myiso.iso
|
||||
|
||||
# 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
|
||||
|
||||
# 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.
|
||||
|
||||
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fdevelop%2Fsharepoint-2013-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://azuredeploy.net/deploybutton.png"/>
|
||||
</a>
|
||||
|
||||
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fdevelop%2Fsharepoint-2013-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://armviz.io/visualizebutton.png"/>
|
||||
</a>
|
||||
|
||||
## 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
|
||||
|
||||
```PowerShell
|
||||
|
||||
# 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
|
|
@ -1,682 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"domainName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The domain name"
|
||||
},
|
||||
"defaultValue": "contoso.com"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account name"
|
||||
},
|
||||
"defaultValue": "sa"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VMs and Domain"
|
||||
},
|
||||
"defaultValue": "lcladmin"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password for the Administrator account of the new VMs and Domain"
|
||||
},
|
||||
"defaultValue": "[concat('Subscription#',subscription().subscriptionId)]"
|
||||
},
|
||||
"sqlInstallationISOUri": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Uri to the SQL Server installation ISO. E.g http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
||||
},
|
||||
"defaultValue": "http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
||||
},
|
||||
"sharepoint2013SP1DownloadLink": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Direct download link for the SharePoint 2013 SP1 trial ISO. For example: http://download.msdn.microsoft.com/pr/en_sharepoint_server_2013_with_sp1_x64_dvd_3823428.iso?t=XXXXXXXXXXXXXXX"
|
||||
}
|
||||
},
|
||||
"sharepoint2013ProductKey": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Product key for SharePoint 2013 SP1 required for SharePoint setup. e.g. XXXX-XXXX-XXXX-XXXX "
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"storageAccountType": "Standard_LRS",
|
||||
"adVMSize": "Standard_A1",
|
||||
"sqlVMSize": "Standard_A2",
|
||||
"spVMSize": "Standard_A3",
|
||||
"spassetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-non-ha",
|
||||
"adAssetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/ad-non-ha",
|
||||
"sqlAssetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sql-2014-non-ha",
|
||||
"location": "[resourceGroup().location]",
|
||||
"vmNetworkSubnet": "10.0.0.0/24",
|
||||
"virtualNetworkAddressRange": "10.0.0.0/16",
|
||||
"primaryAdIpAddress": "10.0.0.4",
|
||||
"sqlServerServiceAccountPassword": "[parameters('adminPassword')]",
|
||||
"sharePointFarmPassphrasePassword": "[parameters('adminPassword')]",
|
||||
"staticSubnetName": "[concat('SPSubNet',resourceGroup().name)]",
|
||||
"virtualNetworkName": "[concat('SPVnet',resourceGroup().name)]",
|
||||
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]",
|
||||
"staticSubnetID": "[concat(variables('vnetID'),'/subnets/',variables('staticSubnetName'))]",
|
||||
"adTemplateURL": "[concat(variables('adAssetLocation'),'/adVmTemplate.json')]",
|
||||
"adStorageName": "[tolower(concat('SPADSA',resourceGroup().name))]",
|
||||
"adNICName": "[concat('SPADNic',resourceGroup().name)]",
|
||||
"adVmDeployment": "CreateADVms",
|
||||
"adVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('adVmDeployment'))]",
|
||||
"deployPrimaryAdTemplateURL": "[concat(variables('adAssetLocation'),'/deployPrimaryAD.json')]",
|
||||
"deployPrimaryAd": "DeployPrimaryAd",
|
||||
"deployPrimaryAdID": "[concat('Microsoft.Resources/deployments/', variables('deployPrimaryAd'))]",
|
||||
"sqlStorageName": "[tolower(concat('SPSQLSA',resourceGroup().name))]",
|
||||
"sqlClusterTemplateURL": "[concat(variables('sqlAssetLocation'),'/sqlVmTemplate.json')]",
|
||||
"sqlClusterVmDeployment": "CreateSqlVms",
|
||||
"sqlClusterVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('sqlClusterVmDeployment'))]",
|
||||
"adVMName": "[concat('SPAD',resourceGroup().name)]",
|
||||
"vnetwithDNSTemplateURL": "[concat(variables('adAssetLocation'),'/vnet-with-dns-server.json')]",
|
||||
"updateVNetDNS1": "UpdateVNetDNS1",
|
||||
"updateVNetDNS1ID": "[concat('Microsoft.Resources/deployments/', variables('updateVNetDNS1'))]",
|
||||
"sqlClusterVmName": "[concat('SPSQL',resourceGroup().name)]",
|
||||
"spTemplateURL": "[concat(variables('spassetLocation'),'/spVMTemplate.json')]",
|
||||
"spStorageName": "[tolower(concat('SPSA',resourceGroup().name))]",
|
||||
"spVmDeployment": "CreateSPVMs",
|
||||
"spVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('spVmDeployment'))]",
|
||||
"spVmName": "[concat('SP',resourceGroup().name)]",
|
||||
"deploySPStandalone": "DeploySPStandalone",
|
||||
"deploySPStandaloneTemplateURL": "[concat(variables('spassetLocation'),'/deploySharePointStandalone.json')]",
|
||||
"sqlNicName": "[concat('SPSQLNIC',resourceGroup().name)]",
|
||||
"deploySqlStandalone": "DeploySqlStandalone",
|
||||
"deploySqlStandaloneID": "[concat('Microsoft.Resources/deployments/', variables('deploySqlStandalone'))]",
|
||||
"deploySqlStandaloneTemplateURL": "[concat(variables('sqlAssetLocation'),'/deploySqlStandalone.json')]",
|
||||
"publicLBName": "[concat('PLB',resourceGroup().name)]",
|
||||
"publicIPAddressName": "[concat('PIP',resourceGroup().name)]",
|
||||
"publicIPAddressNameID": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]",
|
||||
"spPublicLBName": "[concat('SPPLB',resourceGroup().name)]",
|
||||
"spPublicIPAddressName": "[concat('SPPIP',resourceGroup().name)]",
|
||||
"spPublicIPAddressNameID": "[resourceId('Microsoft.Network/publicIPAddresses',variables('sppublicIPAddressName'))]",
|
||||
"lbFE": "SPLBFE",
|
||||
"rpdNAT": "SPRDPNAT",
|
||||
"publicLBID": "[resourceId('Microsoft.Network/loadBalancers',variables('publicLBName'))]",
|
||||
"publiclbFEConfigID": "[concat(variables('publiclbID'),'/frontendIPConfigurations/',variables('lbFE'))]",
|
||||
"rdpPort": 3389,
|
||||
"adRDPNATRuleID": "[concat(variables('publiclbID'),'/inboundNatRules/',variables('rpdNAT'))]",
|
||||
"nsgName": "[concat('SPNsg',resourceGroup().name)]",
|
||||
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]",
|
||||
"splbFE": "SPLBFE1",
|
||||
"splbBE": "SPLBBE1",
|
||||
"spSiteProbe": "spSiteProbe",
|
||||
"spAdminProbe": "spAdminProbe",
|
||||
"spSiteRule": "SPSiteLBRule",
|
||||
"spAdminRule": "SPAdminLBRule",
|
||||
"sprdpNAT": "SPRDPNAT1",
|
||||
"spPublicLBID": "[resourceId('Microsoft.Network/loadBalancers',variables('sppublicLBName'))]",
|
||||
"spPubliclbFEConfigID": "[concat(variables('sppubliclbID'),'/frontendIPConfigurations/',variables('splbFE'))]",
|
||||
"spSiteProbeID": "[concat(variables('sppubliclbID'),'/probes/',variables('spSiteProbe'))]",
|
||||
"spAdminProbeID": "[concat(variables('sppubliclbID'),'/probes/',variables('spAdminProbe'))]",
|
||||
"sprdpPort": 3390,
|
||||
"sppublicBEAddressPoolID": "[concat(variables('sppubliclbID'),'/backendAddressPools/',variables('splbBE'))]",
|
||||
"spRDPNATRuleID": "[concat(variables('sppubliclbID'),'/inboundNatRules/',variables('sprdpNAT'))]",
|
||||
"spSourceDrive": "C:",
|
||||
"spSourceFolder": "SharePoint2013",
|
||||
"spconfigDatabaseName": "SP_Config",
|
||||
"spadministrationContentDatabaseName": "SP_AdminContent",
|
||||
"spcontentDatabaseName": "spFarm_Content",
|
||||
"spSiteTemplateName": "STS#0",
|
||||
"sharepointFarmName": "spFarm",
|
||||
"spFQDN": "[concat(variables('spVmName'),'.',parameters('domainName'))]",
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('staticSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('vmNetworkSubnet')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"name": "[variables('nsgName')]",
|
||||
"location": "[variables('location')]",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "rule1",
|
||||
"properties": {
|
||||
"protocol": "*",
|
||||
"sourcePortRange": "*",
|
||||
"destinationPortRange": "*",
|
||||
"sourceAddressPrefix": "*",
|
||||
"destinationAddressPrefix": "*",
|
||||
"access": "Allow",
|
||||
"priority": 101,
|
||||
"direction": "Inbound"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"location": "[variables('location')]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"dependsOn": [
|
||||
"[variables('nsgID')]"
|
||||
],
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[variables('virtualNetworkAddressRange')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('staticSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('vmNetworkSubnet')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[variables('publicIPAddressName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('vnetID')]"
|
||||
],
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Dynamic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[variables('spPublicIPAddressName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('vnetID')]"
|
||||
],
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Dynamic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"name": "[variables('publiclbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('publicIPAddressNameID')]"
|
||||
],
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[variables('lbFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[variables('publicIPAddressNameID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[variables('rpdNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('publiclbFEConfigID')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": "[variables('rdpPort')]",
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"name": "[variables('sppubliclbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('spPublicIPAddressNameID')]"
|
||||
],
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[variables('splbFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[variables('spPublicIPAddressNameID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[variables('splbBE')]"
|
||||
}
|
||||
],
|
||||
"loadBalancingRules": [
|
||||
{
|
||||
"name": "[variables('spSiteRule')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('sppublicBEAddressPoolID')]"
|
||||
},
|
||||
"probe": {
|
||||
"id": "[variables('spSiteProbeID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 80,
|
||||
"backendPort": 80,
|
||||
"idleTimeoutInMinutes": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spAdminRule')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('sppublicBEAddressPoolID')]"
|
||||
},
|
||||
"probe": {
|
||||
"id": "[variables('spAdminProbeID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 8080,
|
||||
"backendPort": 8080,
|
||||
"idleTimeoutInMinutes": 15
|
||||
}
|
||||
}
|
||||
],
|
||||
"probes": [
|
||||
{
|
||||
"name": "[variables('spSiteProbe')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 80,
|
||||
"intervalInSeconds": 15,
|
||||
"numberOfProbes": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spAdminProbe')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 8080,
|
||||
"intervalInSeconds": 15,
|
||||
"numberOfProbes": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[variables('sprdpNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": "[variables('sprdpPort')]",
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('adVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('publicLBID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('adTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"adRDPNATRuleID": {
|
||||
"value": "[variables('adRDPNATRuleID')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('adStorageName')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"vmName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('adVMSize')]"
|
||||
},
|
||||
"adDNicName": {
|
||||
"value": "[variables('adNICName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('deployPrimaryAd')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('adVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deployPrimaryAdTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"primaryADName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('adAssetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('updateVNetDNS1')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('deployPrimaryAdId')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetwithDNSTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"virtualNetworkName": {
|
||||
"value": "[variables('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[variables('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
},
|
||||
"dnsServerAddress": {
|
||||
"value": [
|
||||
"[variables('primaryAdIpAddress')]"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('sqlClusterVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('updateVNetDNS1Id')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('sqlClusterTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('sqlStorageName')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"vmName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('sqlVMSize')]"
|
||||
},
|
||||
"sqlNICName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('spPublicLBID')]",
|
||||
"[variables('updateVNetDNS1Id')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('spTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"vmName": {
|
||||
"value": "[variables('spVmName')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('spStorageName')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('spVMSize')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"rdpNATRuleID": {
|
||||
"value": "[variables('spRDPNATRuleID')]"
|
||||
},
|
||||
"lbBEPool": {
|
||||
"value": "[variables('sppublicBEAddressPoolID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('deploySqlStandalone')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('sqlClusterVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deploySqlStandaloneTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"sqlInstallationISOUri": {
|
||||
"value": "[parameters('sqlInstallationISOUri')]"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"value": "[variables('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('sqlAssetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "[variables('deploySPStandalone')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('deploySqlStandaloneID')]",
|
||||
"[variables('spVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deploySPStandaloneTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVmName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"value": "[variables('spconfigDatabaseName')]"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"value": "[variables('spadministrationContentDatabaseName')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"value": "[variables('spcontentDatabaseName')]"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"value": "[variables('spSiteTemplateName')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"value": "[variables('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"value": "[variables('sharePointFarmPassphrasePassword')]"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"value": "[variables('sharepointFarmName')]"
|
||||
},
|
||||
"sharepointInstallSourceDrive": {
|
||||
"value": "[variables('spSourceDrive')]"
|
||||
},
|
||||
"sharepointInstallSourceFolder": {
|
||||
"value": "[variables('spSourceFolder')]"
|
||||
},
|
||||
"ProductKey": {
|
||||
"value": "[parameters('sharepoint2013ProductKey')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('spassetLocation')]"
|
||||
},
|
||||
"sharepoint2013SP1SourceDLLink": {
|
||||
"value": "[parameters('sharepoint2013SP1DownloadLink')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": { }
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"sharepoint2013SP1DownloadLink": {
|
||||
"value": ""
|
||||
},
|
||||
"sharepoint2013ProductKey": {
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"fqdn": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepointInstallSourceDrive": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepointInstallSourceFolder": {
|
||||
"type": "string"
|
||||
},
|
||||
"ProductKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepoint2013SP1SourceDLLink": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Direct download link for the SharePoint 2013 SP1 trial ISO"
|
||||
}
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address of Primary AD"
|
||||
},
|
||||
"defaultValue": "10.0.0.4"
|
||||
},
|
||||
"assetLocation": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The location of resources that the script is dependent on such as linked templates and DSC modules"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"deploySPStandaloneModulesURL": "[concat(parameters('assetLocation'),'/InstallAndConfigureSharePointServer.ps1.zip')]",
|
||||
"deploySPStandaloneConfigurationFunction": "InstallAndConfigureSharePointServer.ps1\\InstallAndConfigureSharePointServer"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('spVMName'),'/ConfigureSPServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"dependsOn": [
|
||||
],
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"ModulesUrl": "[variables('deploySPStandaloneModulesURL')]",
|
||||
"ConfigurationFunction": "[variables('deploySPStandaloneConfigurationFunction')]",
|
||||
"Properties": {
|
||||
"DomainName": "[parameters('domainName')]",
|
||||
"primaryAdIpAddress": "[parameters('primaryAdIpAddress')]",
|
||||
"AdminCreds": {
|
||||
"UserName": "[parameters('adminUserName')]",
|
||||
"Password": "PrivateSettingsRef:AdminPassword"
|
||||
},
|
||||
"SharePointSetupUserAccountcreds": {
|
||||
"UserName": "[parameters('sharePointSetupUserAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointSetupUserAccountPassword"
|
||||
},
|
||||
"SharePointFarmAccountcreds": {
|
||||
"UserName": "[parameters('sharePointFarmAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmAccountPassword"
|
||||
},
|
||||
"SharePointFarmPassphrasecreds": {
|
||||
"UserName": "ignore",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmPassphrasePassword"
|
||||
},
|
||||
"DatabaseName": "[parameters('configDatabaseName')]",
|
||||
"AdministrationContentDatabaseName": "[parameters('administrationContentDatabaseName')]",
|
||||
"DatabaseServer": "[concat(parameters('sqlVMName'),'.',parameters('domainName'))]",
|
||||
"Configuration": "[concat('{\"roles\":[{\"type\":\"application\",\"properties\":{\"fqdn\":\"',parameters('fqdn'),'\",\"port\":8080}},{\"type\":\"web\",\"properties\":{\"webApp\":{\"name\":\"',parameters('sharepointFarmName'),'\",\"applicationPool\":\"',parameters('sharepointFarmName'),' AppPool\",\"applicationPoolAccount\":\"', parameters('sharePointFarmAccountUserName'),'\",\"url\":\"http://',parameters('fqdn'),'\",\"port\":80,\"hostHeader\":\"',parameters('fqdn'),'\",\"databaseName\":\"',parameters('contentDatabaseName'),'\"},\"site\":{\"name\":\"',parameters('sharepointFarmName'),'\",\"template\":\"',parameters('spSiteTemplateName'),'\",\"url\":\"http://',parameters('fqdn'),'\",\"ownerAliasDomain\":\"',parameters('domainName'),'\",\"ownerAliasUserName\":\"',parameters('sharePointFarmAccountUserName'),'\",\"secondaryOwnerAliasDomain\":\"',parameters('domainName'),'\",\"secondaryOwnerAliasUserName\":\"',parameters('adminUserName'),'\"}}}],\"configureForHa\":\"False\",\"loadBalancedSetProbePort\":0}')]",
|
||||
"InstallSourceDrive": "[parameters('sharepointInstallSourceDrive')]",
|
||||
"InstallSourceFolderName": "[parameters('sharepointInstallSourceFolder')]",
|
||||
"ProductKey": "[parameters('ProductKey')]",
|
||||
"SPDLLink": "[parameters('sharepoint2013SP1SourceDLLink')]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"Items": {
|
||||
"AdminPassword": "[parameters('adminPassword')]",
|
||||
"SharePointSetupUserAccountPassword": "[parameters('sharePointSetupUserAccountPassword')]",
|
||||
"SharePointFarmAccountPassword": "[parameters('sharePointFarmAccountPassword')]",
|
||||
"SharePointFarmPassphrasePassword": "[parameters('sharePointFarmPassphrasePassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"itemDisplayName": "Template that creates a SharePoint 2013 Farm on Windows VMs",
|
||||
"description": "Template that creates a SharePoint 2013 Farm on Windows VMs",
|
||||
"summary": "This template has default values for all the parameters. It request the download path for Sharepoint ISO and corresponding product key",
|
||||
"githubUsername": "azurestack",
|
||||
"dateUpdated": "2016-09-22"
|
||||
}
|
||||
|
|
@ -1,216 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"windowsImagePublisher": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Publisher of Windows Image"
|
||||
},
|
||||
"defaultValue": "MicrosoftWindowsServer"
|
||||
},
|
||||
"windowsImageOffer": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The offer of Windows Image"
|
||||
},
|
||||
"defaultValue": "WindowsServer"
|
||||
},
|
||||
"windowsImageSKU": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SKU Name of Windows Image"
|
||||
},
|
||||
"defaultValue": "2012-R2-Datacenter"
|
||||
},
|
||||
"windowsImageVersion": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Version of Windows Image"
|
||||
},
|
||||
"defaultValue": "latest"
|
||||
},
|
||||
"dataDiskSize": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "The Size of SharePoint VM data disk. Default 10 GB"
|
||||
},
|
||||
"defaultValue": 10
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Prefix of the VM Name"
|
||||
}
|
||||
},
|
||||
"storageAccount": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Storage Account Name"
|
||||
}
|
||||
},
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The type of the Storage Account created"
|
||||
},
|
||||
"defaultValue": "Standard_LRS"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VMs and Domain"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password for the Administrator account of the new VMs and Domain"
|
||||
}
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the AD VMs Created"
|
||||
},
|
||||
"defaultValue": "Standard_A2"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "the resource id to the subnet"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"rdpNATRuleID": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The resource id for the RDP NAT rule"
|
||||
}
|
||||
},
|
||||
|
||||
"lbBEPool": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The resource id for the SharePoint load balancer back end pool"
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"variables": {
|
||||
|
||||
"spNicName": "[concat('SPNic',resourceGroup().name)]",
|
||||
"vmContainerName": "vhds"
|
||||
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[parameters('storageAccount')]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"accountType": "[parameters('storageAccountType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spNicName')]",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"dependsOn": [
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[parameters('subnetResourceId')]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[parameters('lbBEPool')]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatRules": [
|
||||
{
|
||||
"id": "[parameters('rdpNATRuleID')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('vmName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Storage/storageAccounts',parameters('storageAccount'))]",
|
||||
"[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('vmSize')]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[parameters('vmName')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "[parameters('windowsImagePublisher')]",
|
||||
"offer": "[parameters('windowsImageOffer')]",
|
||||
"sku": "[parameters('windowsImageSKU')]",
|
||||
"version": "[parameters('windowsImageVersion')]"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('vmContainerName'),'/', parameters('vmName'), '0','-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage','storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('vmContainerName'),'/',parameters('vmName'),'0','-data-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('vmName'), '0','data-1.vhd')]",
|
||||
"caching": "None",
|
||||
"createOption": "Empty",
|
||||
"diskSizeGB": "[parameters('dataDiskSize')]",
|
||||
"lun": 0
|
||||
},
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage','storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('vmContainerName'),'/', parameters('vmName'), '0','log-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('vmName'), '0','log-1.vhd')]",
|
||||
"caching": "None",
|
||||
"createOption": "Empty",
|
||||
"diskSizeGB": "[parameters('dataDiskSize')]",
|
||||
"lun": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
}
|
||||
}
|
Двоичные данные
sharepoint-2013-sample-loadtest/DownloadLoadTestPackage.ps1
Двоичные данные
sharepoint-2013-sample-loadtest/DownloadLoadTestPackage.ps1
Двоичный файл не отображается.
Двоичные данные
sharepoint-2013-sample-loadtest/PrepareSampleLTForRun.ps1
Двоичные данные
sharepoint-2013-sample-loadtest/PrepareSampleLTForRun.ps1
Двоичный файл не отображается.
Двоичные данные
sharepoint-2013-sample-loadtest/PrepareTargetForRun.ps1
Двоичные данные
sharepoint-2013-sample-loadtest/PrepareTargetForRun.ps1
Двоичный файл не отображается.
|
@ -1,76 +0,0 @@
|
|||
# Download and run a sample load generation load test against an existing SharePoint farm
|
||||
|
||||
This template will prepare the target SharePoint farm for load test execution and download and run a load test on an existing test controller by creating the following resources:
|
||||
|
||||
+ One custom script VM extension on an existing SharePoint VM resource to prepare the farm for load testing
|
||||
+ One custom script VM extension on an existing Visual Studio test controller VM resource to download and execute a load test run
|
||||
|
||||
|
||||
## Notes
|
||||
|
||||
+ This template assumes that a SharePoint 2013 farm and a VS 2013 TC/TA farm are deployed.
|
||||
+ To deploy a SharePoint farm you can use the templates at:
|
||||
+ https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/sharepoint-2013-non-ha
|
||||
or
|
||||
+ https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/sharepoint-2013-single-vm
|
||||
+ To deploy the Visual Studio TC/TA farm you can use the template at:
|
||||
+ https://github.com/Azure/AzureStack-QuickStart-Templates/tree/master/vs2013-tcta
|
||||
+ This template makes use of nested templates for deploying the VM extensions, the main template (azuredeploy.json) assumes that the SharePoint 2013 and VS 2013 TC/TA farms are deployed
|
||||
on the same resource group. If they however are on different resource groups:
|
||||
+ Deploy SharePointFarmPrepareForLoadTest.json on the SharePoint 2013 resource group
|
||||
+ Deploy TestControllerRunLoadTest.json on the VS 2013 TC/TA resource group
|
||||
The above templates can be deployed from the portal or from PowerShell; follow the instructions in the sections bellow but instead of using azuredeploy.json use the above .json files instead.
|
||||
|
||||
## 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.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
|
||||
|
||||
```PowerShell
|
||||
|
||||
# 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 subscription 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 (optional, this template can be deployed to an existing resource group)
|
||||
$resourceGroupName = "sqlResourceGroup"
|
||||
$deploymentName = "SqlDeployment"
|
||||
$location = "Local"
|
||||
New-AzurermResourceGroup -Name $resourceGroupName -Location $location
|
||||
|
||||
#Start new Deployment
|
||||
New-AzurermResourceGroupDeployment -Name $deploymentName -ResourceGroupName $resourceGroupName `
|
||||
-TemplateParameterFile .\azuredeploy.parameters.json -TemplateFile .\azuredeploy.json
|
Двоичные данные
sharepoint-2013-sample-loadtest/SPSampleLT.zip
Двоичные данные
sharepoint-2013-sample-loadtest/SPSampleLT.zip
Двоичный файл не отображается.
Двоичные данные
sharepoint-2013-sample-loadtest/ScriptExtensionRunner.ps1
Двоичные данные
sharepoint-2013-sample-loadtest/ScriptExtensionRunner.ps1
Двоичный файл не отображается.
|
@ -1,52 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name of the account under which the test controller service is running on the test controller machine"
|
||||
},
|
||||
"defaultValue": "tcserv"
|
||||
},
|
||||
"TargetSPServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SharePoint server VM resource to test"
|
||||
},
|
||||
"defaultValue": "sprg-sp-0"
|
||||
},
|
||||
"assetLocation": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The location of resources that the template is dependent on such as scripts and load test package"
|
||||
},
|
||||
"defaultValue": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-sample-loadtest"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"PrepareTargetForRunScriptName": "PrepareTargetForRun.ps1",
|
||||
"PrepareTargetForRunScriptURL": "[concat(parameters('assetLocation'),'/',variables('PrepareTargetForRunScriptName'))]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('TargetSPServerVMName'),'/PrepareSPServerForLTRun')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('PrepareTargetForRunScriptURL')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('PrepareTargetForRunScriptName'),' ',parameters('TestControllerServiceUserName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
Двоичные данные
sharepoint-2013-sample-loadtest/StartLoadTestRun.ps1
Двоичные данные
sharepoint-2013-sample-loadtest/StartLoadTestRun.ps1
Двоичный файл не отображается.
|
@ -1,83 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing test controller VM resource to use"
|
||||
},
|
||||
"defaultValue": "sprg-tc-0"
|
||||
},
|
||||
"TargetSPServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SharePoint server VM resource to test"
|
||||
},
|
||||
"defaultValue": "sprg-sp-0"
|
||||
},
|
||||
"TargetSPSiteURL": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "URL of the SharePoint end point to test."
|
||||
},
|
||||
"defaultValue": "http://sprg-sp-0.contoso.com"
|
||||
},
|
||||
"TargetSPTestUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name an existing user account to be used for load testing. User must have access to the target SharePoint endpoint."
|
||||
},
|
||||
"defaultValue": "spadmin@contoso.com"
|
||||
},
|
||||
"TargetSPTestUserPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password of the user account to be used for lad testing."
|
||||
}
|
||||
},
|
||||
"assetLocation": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The location of resources that the template is dependent on such as scripts and load test package"
|
||||
},
|
||||
"defaultValue": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-sample-loadtest"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"DownloadLoadTestPackageScriptName": "DownloadLoadTestPackage.ps1",
|
||||
"DownloadLoadTestPackageScriptURL": "[concat(parameters('assetLocation'),'/',variables('DownloadLoadTestPackageScriptName'))]",
|
||||
"PrepareSampleLTForRunScriptName": "PrepareSampleLTForRun.ps1",
|
||||
"PrepareSampleLTForRunScriptURL": "[concat(parameters('assetLocation'),'/',variables('PrepareSampleLTForRunScriptName'))]",
|
||||
"StartLoadTestRunScriptName": "StartLoadTestRun.ps1",
|
||||
"StartLoadTestRunScriptURL": "[concat(parameters('assetLocation'),'/',variables('StartLoadTestRunScriptName'))]",
|
||||
"RunnerScriptName": "ScriptExtensionRunner.ps1",
|
||||
"RunnerScriptURL": "[concat(parameters('assetLocation'),'/',variables('RunnerScriptName'))]",
|
||||
"LoadTestPackageURL": "[concat(parameters('assetLocation'),'/SPSampleLT.zip')]",
|
||||
"LoadTestUnpackLocation": "%SystemDrive%\\LoadTests\\SPSampleLT"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('TestControllerVMName'),'/RunSampleLoadTest')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Compute",
|
||||
"type": "CustomScriptExtension",
|
||||
"typeHandlerVersion": "1.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[variables('DownloadLoadTestPackageScriptURL')]",
|
||||
"[variables('PrepareSampleLTForRunScriptURL')]",
|
||||
"[variables('StartLoadTestRunScriptURL')]",
|
||||
"[variables('RunnerScriptURL')]"
|
||||
],
|
||||
"commandToExecute": "[concat('powershell -ExecutionPolicy Unrestricted -file ',variables('RunnerScriptName'),' ',variables('LoadTestPackageURL'),' ',variables('LoadTestUnpackLocation'),' ',parameters('TargetSPSiteURL'),' ',parameters('TargetSPServerVMName'),' ',parameters('TargetSPTestUserName'),' ',parameters('TargetSPTestUserPassword'),' ',parameters('TestControllerVMName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,121 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.16.8.5",
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing test controller VM resource to use"
|
||||
},
|
||||
"defaultValue": "[concat(resourceGroup().name,'-tc-0')]"
|
||||
},
|
||||
"TestControllerServiceUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name of the account under which the test controller service is running on the test controller machine"
|
||||
},
|
||||
"defaultValue": "tcserv"
|
||||
},
|
||||
"TargetSPServerVMName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the existing SharePoint server VM resource to test"
|
||||
},
|
||||
"defaultValue": "[concat('SP',resourceGroup().name)]"
|
||||
},
|
||||
"TargetSPSiteURL": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "URL of the SharePoint end point to test."
|
||||
},
|
||||
"defaultValue": "[concat('http://SP',resourceGroup().name,'.contoso.com')]"
|
||||
},
|
||||
"TargetSPTestUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "User name an existing user account to be used for load testing. User must have access to the target SharePoint endpoint."
|
||||
},
|
||||
"defaultValue": "lcladmin@contoso.com"
|
||||
},
|
||||
"TargetSPTestUserPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password of the user account to be used for lad testing."
|
||||
},
|
||||
"defaultValue": "[concat('Subscription#',subscription().subscriptionId)]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The location of resources that the template is dependent on such as scripts and load test package"
|
||||
},
|
||||
"defaultValue": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2013-sample-loadtest"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"PrepareTargetDeployment": "PrepareTargetSPForLT",
|
||||
"PrepareTargetTemplateURL": "[concat(parameters('assetLocation'),'/SharePointFarmPrepareForLoadTest.json')]",
|
||||
"RunLoadTestDeployment": "RunLoadTest",
|
||||
"RunLoadTestTemplateURL": "[concat(parameters('assetLocation'),'/TestControllerRunLoadTest.json')]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[variables('PrepareTargetDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('PrepareTargetTemplateURL')]",
|
||||
"contentVersion": "1.16.8.5"
|
||||
},
|
||||
"parameters": {
|
||||
"TestControllerServiceUserName": {
|
||||
"value": "[parameters('TestControllerServiceUserName')]"
|
||||
},
|
||||
"TargetSPServerVMName": {
|
||||
"value": "[parameters('TargetSPServerVMName')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[parameters('assetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('RunLoadTestDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('RunLoadTestTemplateURL')]",
|
||||
"contentVersion": "1.16.8.5"
|
||||
},
|
||||
"parameters": {
|
||||
"TestControllerVMName": {
|
||||
"value": "[parameters('TestControllerVMName')]"
|
||||
},
|
||||
"TargetSPServerVMName": {
|
||||
"value": "[parameters('TargetSPServerVMName')]"
|
||||
},
|
||||
"TargetSPSiteURL": {
|
||||
"value": "[parameters('TargetSPSiteURL')]"
|
||||
},
|
||||
"TargetSPTestUserName": {
|
||||
"value": "[parameters('TargetSPTestUserName')]"
|
||||
},
|
||||
"TargetSPTestUserPassword": {
|
||||
"value": "[parameters('TargetSPTestUserPassword')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[parameters('assetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"itemDisplayName": "Template that deploys a sample load test for a given SharePoint 2013 farm",
|
||||
"description": "Template that deploys a sample load test for a given SharePoint 2013 farm",
|
||||
"summary": "This template has default values for all the parameters which works with Sharepoint-non-ha template of Azure stack github",
|
||||
"githubUsername": "azurestack",
|
||||
"dateUpdated": "2016-09-22"
|
||||
}
|
||||
|
Двоичный файл не отображается.
|
@ -1,128 +0,0 @@
|
|||
# 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 = <ISO Path> # File path to the iso to upload, for example C:\isos\myiso.iso
|
||||
|
||||
# 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
|
||||
|
||||
# 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.
|
||||
|
||||
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fgithub.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fraw%2Fmaster%2Fsharepoint-2016-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://azuredeploy.net/deploybutton.png"/>
|
||||
</a>
|
||||
|
||||
<a href="http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzureStack-QuickStart-Templates%2Fdevelop%2Fsharepoint-2016-non-ha%2Fazuredeploy.json" target="_blank">
|
||||
<img src="http://armviz.io/visualizebutton.png"/>
|
||||
</a>
|
||||
|
||||
## 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
|
||||
|
||||
```PowerShell
|
||||
|
||||
# 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
|
|
@ -1,683 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"domainName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The domain name"
|
||||
},
|
||||
"defaultValue": "contoso.com"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account name"
|
||||
},
|
||||
"defaultValue": "sa"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VMs and Domain"
|
||||
},
|
||||
"defaultValue": "lcladmin"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password for the Administrator account of the new VMs and Domain"
|
||||
},
|
||||
"defaultValue": "[concat('Subscription#',subscription().subscriptionId)]"
|
||||
},
|
||||
"sqlInstallationISOUri": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Uri to the SQL Server installation ISO. E.g http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
||||
},
|
||||
"defaultValue": "http://care.dlservice.microsoft.com/dl/download/2/F/8/2F8F7165-BB21-4D1E-B5D8-3BD3CE73C77D/SQLServer2014SP1-FullSlipstream-x64-ENU.iso"
|
||||
},
|
||||
"sharepoint2016DownloadLink": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Direct download link for the SharePoint 2016 trial ISO. For example: http://download.msdn.microsoft.com/pr/en_sharepoint_server_2016_x64_dvd_3823428.iso?t=XXXXXXXXXXXXXXX"
|
||||
},
|
||||
"defaultValue": "https://download.microsoft.com/download/0/0/4/004EE264-7043-45BF-99E3-3F74ECAE13E5/officeserver.img"
|
||||
},
|
||||
"sharepoint2016ProductKey": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Product key for SharePoint 2016 required for SharePoint setup. e.g. XXXX-XXXX-XXXX-XXXX "
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"storageAccountType": "Standard_LRS",
|
||||
"adVMSize": "Standard_A1",
|
||||
"sqlVMSize": "Standard_A2",
|
||||
"spVMSize": "Standard_A3",
|
||||
"spassetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sharepoint-2016-non-ha",
|
||||
"adAssetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/ad-non-ha",
|
||||
"sqlAssetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/sql-2014-non-ha",
|
||||
"location": "[resourceGroup().location]",
|
||||
"vmNetworkSubnet": "10.0.0.0/24",
|
||||
"virtualNetworkAddressRange": "10.0.0.0/16",
|
||||
"primaryAdIpAddress": "10.0.0.4",
|
||||
"sqlServerServiceAccountPassword": "[parameters('adminPassword')]",
|
||||
"sharePointFarmPassphrasePassword": "[parameters('adminPassword')]",
|
||||
"staticSubnetName": "[concat('SPSubNet',resourceGroup().name)]",
|
||||
"virtualNetworkName": "[concat('SPVnet',resourceGroup().name)]",
|
||||
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]",
|
||||
"staticSubnetID": "[concat(variables('vnetID'),'/subnets/',variables('staticSubnetName'))]",
|
||||
"adTemplateURL": "[concat(variables('adAssetLocation'),'/adVmTemplate.json')]",
|
||||
"adStorageName": "[tolower(concat('SPADSA',resourceGroup().name))]",
|
||||
"adNICName": "[concat('SPADNic',resourceGroup().name)]",
|
||||
"adVmDeployment": "CreateADVms",
|
||||
"adVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('adVmDeployment'))]",
|
||||
"deployPrimaryAdTemplateURL": "[concat(variables('adAssetLocation'),'/deployPrimaryAD.json')]",
|
||||
"deployPrimaryAd": "DeployPrimaryAd",
|
||||
"deployPrimaryAdID": "[concat('Microsoft.Resources/deployments/', variables('deployPrimaryAd'))]",
|
||||
"sqlStorageName": "[tolower(concat('SPSQLSA',resourceGroup().name))]",
|
||||
"sqlClusterTemplateURL": "[concat(variables('sqlAssetLocation'),'/sqlVmTemplate.json')]",
|
||||
"sqlClusterVmDeployment": "CreateSqlVms",
|
||||
"sqlClusterVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('sqlClusterVmDeployment'))]",
|
||||
"adVMName": "[concat('SPAD',resourceGroup().name)]",
|
||||
"vnetwithDNSTemplateURL": "[concat(variables('adAssetLocation'),'/vnet-with-dns-server.json')]",
|
||||
"updateVNetDNS1": "UpdateVNetDNS1",
|
||||
"updateVNetDNS1ID": "[concat('Microsoft.Resources/deployments/', variables('updateVNetDNS1'))]",
|
||||
"sqlClusterVmName": "[concat('SPSQL',resourceGroup().name)]",
|
||||
"spTemplateURL": "[concat(variables('spassetLocation'),'/spVMTemplate.json')]",
|
||||
"spStorageName": "[tolower(concat('SPSA',resourceGroup().name))]",
|
||||
"spVmDeployment": "CreateSPVMs",
|
||||
"spVmDeploymentID": "[concat('Microsoft.Resources/deployments/', variables('spVmDeployment'))]",
|
||||
"spVmName": "[concat('SP',resourceGroup().name)]",
|
||||
"deploySPStandalone": "DeploySPStandalone",
|
||||
"deploySPStandaloneTemplateURL": "[concat(variables('spassetLocation'),'/deploySharePointStandalone.json')]",
|
||||
"sqlNicName": "[concat('SPSQLNIC',resourceGroup().name)]",
|
||||
"deploySqlStandalone": "DeploySqlStandalone",
|
||||
"deploySqlStandaloneID": "[concat('Microsoft.Resources/deployments/', variables('deploySqlStandalone'))]",
|
||||
"deploySqlStandaloneTemplateURL": "[concat(variables('sqlAssetLocation'),'/deploySqlStandalone.json')]",
|
||||
"publicLBName": "[concat('PLB',resourceGroup().name)]",
|
||||
"publicIPAddressName": "[concat('PIP',resourceGroup().name)]",
|
||||
"publicIPAddressNameID": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]",
|
||||
"spPublicLBName": "[concat('SPPLB',resourceGroup().name)]",
|
||||
"spPublicIPAddressName": "[concat('SPPIP',resourceGroup().name)]",
|
||||
"spPublicIPAddressNameID": "[resourceId('Microsoft.Network/publicIPAddresses',variables('sppublicIPAddressName'))]",
|
||||
"lbFE": "SPLBFE",
|
||||
"rpdNAT": "SPRDPNAT",
|
||||
"publicLBID": "[resourceId('Microsoft.Network/loadBalancers',variables('publicLBName'))]",
|
||||
"publiclbFEConfigID": "[concat(variables('publiclbID'),'/frontendIPConfigurations/',variables('lbFE'))]",
|
||||
"rdpPort": 3389,
|
||||
"adRDPNATRuleID": "[concat(variables('publiclbID'),'/inboundNatRules/',variables('rpdNAT'))]",
|
||||
"nsgName": "[concat('SPNsg',resourceGroup().name)]",
|
||||
"nsgID": "[resourceId('Microsoft.Network/networkSecurityGroups',variables('nsgName'))]",
|
||||
"splbFE": "SPLBFE1",
|
||||
"splbBE": "SPLBBE1",
|
||||
"spSiteProbe": "spSiteProbe",
|
||||
"spAdminProbe": "spAdminProbe",
|
||||
"spSiteRule": "SPSiteLBRule",
|
||||
"spAdminRule": "SPAdminLBRule",
|
||||
"sprdpNAT": "SPRDPNAT1",
|
||||
"spPublicLBID": "[resourceId('Microsoft.Network/loadBalancers',variables('sppublicLBName'))]",
|
||||
"spPubliclbFEConfigID": "[concat(variables('sppubliclbID'),'/frontendIPConfigurations/',variables('splbFE'))]",
|
||||
"spSiteProbeID": "[concat(variables('sppubliclbID'),'/probes/',variables('spSiteProbe'))]",
|
||||
"spAdminProbeID": "[concat(variables('sppubliclbID'),'/probes/',variables('spAdminProbe'))]",
|
||||
"sprdpPort": 3390,
|
||||
"sppublicBEAddressPoolID": "[concat(variables('sppubliclbID'),'/backendAddressPools/',variables('splbBE'))]",
|
||||
"spRDPNATRuleID": "[concat(variables('sppubliclbID'),'/inboundNatRules/',variables('sprdpNAT'))]",
|
||||
"spSourceDrive": "C:",
|
||||
"spSourceFolder": "SharePoint2016",
|
||||
"spconfigDatabaseName": "SP_Config",
|
||||
"spadministrationContentDatabaseName": "SP_AdminContent",
|
||||
"spcontentDatabaseName": "spFarm_Content",
|
||||
"spSiteTemplateName": "STS#0",
|
||||
"sharepointFarmName": "spFarm",
|
||||
"spFQDN": "[concat(variables('spVmName'),'.',parameters('domainName'))]",
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('staticSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('vmNetworkSubnet')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"name": "[variables('nsgName')]",
|
||||
"location": "[variables('location')]",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "rule1",
|
||||
"properties": {
|
||||
"protocol": "*",
|
||||
"sourcePortRange": "*",
|
||||
"destinationPortRange": "*",
|
||||
"sourceAddressPrefix": "*",
|
||||
"destinationAddressPrefix": "*",
|
||||
"access": "Allow",
|
||||
"priority": 101,
|
||||
"direction": "Inbound"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"location": "[variables('location')]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"dependsOn": [
|
||||
"[variables('nsgID')]"
|
||||
],
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[variables('virtualNetworkAddressRange')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('staticSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('vmNetworkSubnet')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[variables('publicIPAddressName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('vnetID')]"
|
||||
],
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Dynamic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[variables('spPublicIPAddressName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('vnetID')]"
|
||||
],
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Dynamic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"name": "[variables('publiclbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('publicIPAddressNameID')]"
|
||||
],
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[variables('lbFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[variables('publicIPAddressNameID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[variables('rpdNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('publiclbFEConfigID')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": "[variables('rdpPort')]",
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"name": "[variables('sppubliclbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[variables('spPublicIPAddressNameID')]"
|
||||
],
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[variables('splbFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[variables('spPublicIPAddressNameID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[variables('splbBE')]"
|
||||
}
|
||||
],
|
||||
"loadBalancingRules": [
|
||||
{
|
||||
"name": "[variables('spSiteRule')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('sppublicBEAddressPoolID')]"
|
||||
},
|
||||
"probe": {
|
||||
"id": "[variables('spSiteProbeID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 80,
|
||||
"backendPort": 80,
|
||||
"idleTimeoutInMinutes": 15
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spAdminRule')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('sppublicBEAddressPoolID')]"
|
||||
},
|
||||
"probe": {
|
||||
"id": "[variables('spAdminProbeID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 8080,
|
||||
"backendPort": 8080,
|
||||
"idleTimeoutInMinutes": 15
|
||||
}
|
||||
}
|
||||
],
|
||||
"probes": [
|
||||
{
|
||||
"name": "[variables('spSiteProbe')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 80,
|
||||
"intervalInSeconds": 15,
|
||||
"numberOfProbes": 2
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spAdminProbe')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 8080,
|
||||
"intervalInSeconds": 15,
|
||||
"numberOfProbes": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[variables('sprdpNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('sppubliclbFEConfigID')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": "[variables('sprdpPort')]",
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('adVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('publicLBID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('adTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"adRDPNATRuleID": {
|
||||
"value": "[variables('adRDPNATRuleID')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('adStorageName')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"vmName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('adVMSize')]"
|
||||
},
|
||||
"adDNicName": {
|
||||
"value": "[variables('adNICName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('deployPrimaryAd')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('adVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deployPrimaryAdTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"primaryADName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('adAssetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('updateVNetDNS1')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('deployPrimaryAdId')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetwithDNSTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"virtualNetworkName": {
|
||||
"value": "[variables('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[variables('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
},
|
||||
"dnsServerAddress": {
|
||||
"value": [
|
||||
"[variables('primaryAdIpAddress')]"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('sqlClusterVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('updateVNetDNS1Id')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('sqlClusterTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('sqlStorageName')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"vmName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('sqlVMSize')]"
|
||||
},
|
||||
"sqlNICName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spVmDeployment')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('spPublicLBID')]",
|
||||
"[variables('updateVNetDNS1Id')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('spTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"vmName": {
|
||||
"value": "[variables('spVmName')]"
|
||||
},
|
||||
"storageAccount": {
|
||||
"value": "[variables('spStorageName')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[variables('storageAccountType')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"vmSize": {
|
||||
"value": "[variables('spVMSize')]"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"value": "[variables('staticSubnetID')]"
|
||||
},
|
||||
"rdpNATRuleID": {
|
||||
"value": "[variables('spRDPNATRuleID')]"
|
||||
},
|
||||
"lbBEPool": {
|
||||
"value": "[variables('sppublicBEAddressPoolID')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('deploySqlStandalone')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('sqlClusterVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deploySqlStandaloneTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"sqlInstallationISOUri": {
|
||||
"value": "[parameters('sqlInstallationISOUri')]"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"value": "[variables('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('sqlAssetLocation')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"name": "[variables('deploySPStandalone')]",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"[variables('deploySqlStandaloneID')]",
|
||||
"[variables('spVmDeploymentID')]"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('deploySPStandaloneTemplateURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVmName')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"value": "[variables('spconfigDatabaseName')]"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"value": "[variables('spadministrationContentDatabaseName')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlClusterVmName')]"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"value": "[variables('spcontentDatabaseName')]"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"value": "[variables('spSiteTemplateName')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"value": "[variables('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"value": "[variables('sharePointFarmPassphrasePassword')]"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"value": "[variables('sharepointFarmName')]"
|
||||
},
|
||||
"sharepointInstallSourceDrive": {
|
||||
"value": "[variables('spSourceDrive')]"
|
||||
},
|
||||
"sharepointInstallSourceFolder": {
|
||||
"value": "[variables('spSourceFolder')]"
|
||||
},
|
||||
"ProductKey": {
|
||||
"value": "[parameters('sharepoint2016ProductKey')]"
|
||||
},
|
||||
"assetLocation": {
|
||||
"value": "[variables('spassetLocation')]"
|
||||
},
|
||||
"sharepoint2016SourceDLLink": {
|
||||
"value": "[parameters('sharepoint2016DownloadLink')]"
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"value": "[variables('primaryAdIpAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": { }
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"sharepoint2016DownloadLink": {
|
||||
"value": ""
|
||||
},
|
||||
"sharepoint2016ProductKey": {
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"fqdn": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepointInstallSourceDrive": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepointInstallSourceFolder": {
|
||||
"type": "string"
|
||||
},
|
||||
"ProductKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharepoint2016SourceDLLink": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Direct download link for the SharePoint 2016 trial ISO"
|
||||
}
|
||||
},
|
||||
"primaryAdIpAddress": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address of Primary AD"
|
||||
},
|
||||
"defaultValue": "10.0.0.4"
|
||||
},
|
||||
"assetLocation": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The location of resources that the script is dependent on such as linked templates and DSC modules"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"deploySPStandaloneModulesURL": "[concat(parameters('assetLocation'),'/InstallAndConfigureSharePointServer.ps1.zip')]",
|
||||
"deploySPStandaloneConfigurationFunction": "InstallAndConfigureSharePointServer.ps1\\InstallAndConfigureSharePointServer"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('spVMName'),'/ConfigureSPServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"dependsOn": [
|
||||
],
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.8",
|
||||
"autoUpgradeMinorVersion": "true",
|
||||
"settings": {
|
||||
"ModulesUrl": "[variables('deploySPStandaloneModulesURL')]",
|
||||
"ConfigurationFunction": "[variables('deploySPStandaloneConfigurationFunction')]",
|
||||
"Properties": {
|
||||
"DomainName": "[parameters('domainName')]",
|
||||
"primaryAdIpAddress": "[parameters('primaryAdIpAddress')]",
|
||||
"AdminCreds": {
|
||||
"UserName": "[parameters('adminUserName')]",
|
||||
"Password": "PrivateSettingsRef:AdminPassword"
|
||||
},
|
||||
"SharePointSetupUserAccountcreds": {
|
||||
"UserName": "[parameters('sharePointSetupUserAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointSetupUserAccountPassword"
|
||||
},
|
||||
"SharePointFarmAccountcreds": {
|
||||
"UserName": "[parameters('sharePointFarmAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmAccountPassword"
|
||||
},
|
||||
"SharePointFarmPassphrasecreds": {
|
||||
"UserName": "ignore",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmPassphrasePassword"
|
||||
},
|
||||
"DatabaseName": "[parameters('configDatabaseName')]",
|
||||
"AdministrationContentDatabaseName": "[parameters('administrationContentDatabaseName')]",
|
||||
"DatabaseServer": "[concat(parameters('sqlVMName'),'.',parameters('domainName'))]",
|
||||
"Configuration": "[concat('{\"roles\":[{\"type\":\"application\",\"properties\":{\"fqdn\":\"',parameters('fqdn'),'\",\"port\":8080}},{\"type\":\"web\",\"properties\":{\"webApp\":{\"name\":\"',parameters('sharepointFarmName'),'\",\"applicationPool\":\"',parameters('sharepointFarmName'),' AppPool\",\"applicationPoolAccount\":\"', parameters('sharePointFarmAccountUserName'),'\",\"url\":\"http://',parameters('fqdn'),'\",\"port\":80,\"hostHeader\":\"',parameters('fqdn'),'\",\"databaseName\":\"',parameters('contentDatabaseName'),'\"},\"site\":{\"name\":\"',parameters('sharepointFarmName'),'\",\"template\":\"',parameters('spSiteTemplateName'),'\",\"url\":\"http://',parameters('fqdn'),'\",\"ownerAliasDomain\":\"',parameters('domainName'),'\",\"ownerAliasUserName\":\"',parameters('sharePointFarmAccountUserName'),'\",\"secondaryOwnerAliasDomain\":\"',parameters('domainName'),'\",\"secondaryOwnerAliasUserName\":\"',parameters('adminUserName'),'\"}}}],\"configureForHa\":\"False\",\"loadBalancedSetProbePort\":0}')]",
|
||||
"InstallSourceDrive": "[parameters('sharepointInstallSourceDrive')]",
|
||||
"InstallSourceFolderName": "[parameters('sharepointInstallSourceFolder')]",
|
||||
"ProductKey": "[parameters('ProductKey')]",
|
||||
"SPDLLink": "[parameters('sharepoint2016SourceDLLink')]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"Items": {
|
||||
"AdminPassword": "[parameters('adminPassword')]",
|
||||
"SharePointSetupUserAccountPassword": "[parameters('sharePointSetupUserAccountPassword')]",
|
||||
"SharePointFarmAccountPassword": "[parameters('sharePointFarmAccountPassword')]",
|
||||
"SharePointFarmPassphrasePassword": "[parameters('sharePointFarmPassphrasePassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"itemDisplayName": "Template that creates a SharePoint 2016 Farm on Windows VMs",
|
||||
"description": "Template that creates a SharePoint 2016 Farm on Windows VMs",
|
||||
"summary": "This template has default values for all the parameters. It request the download path for Sharepoint ISO and corresponding product key",
|
||||
"githubUsername": "azurestack",
|
||||
"dateUpdated": "2017-12-15"
|
||||
}
|
||||
|
|
@ -1,216 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"windowsImagePublisher": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Publisher of Windows Image"
|
||||
},
|
||||
"defaultValue": "MicrosoftWindowsServer"
|
||||
},
|
||||
"windowsImageOffer": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The offer of Windows Image"
|
||||
},
|
||||
"defaultValue": "WindowsServer"
|
||||
},
|
||||
"windowsImageSKU": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SKU Name of Windows Image"
|
||||
},
|
||||
"defaultValue": "2016-Datacenter"
|
||||
},
|
||||
"windowsImageVersion": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Version of Windows Image"
|
||||
},
|
||||
"defaultValue": "latest"
|
||||
},
|
||||
"dataDiskSize": {
|
||||
"type": "int",
|
||||
"metadata": {
|
||||
"description": "The Size of SharePoint VM data disk. Default 10 GB"
|
||||
},
|
||||
"defaultValue": 10
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Prefix of the VM Name"
|
||||
}
|
||||
},
|
||||
"storageAccount": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The Storage Account Name"
|
||||
}
|
||||
},
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The type of the Storage Account created"
|
||||
},
|
||||
"defaultValue": "Standard_LRS"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VMs and Domain"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password for the Administrator account of the new VMs and Domain"
|
||||
}
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the AD VMs Created"
|
||||
},
|
||||
"defaultValue": "Standard_A2"
|
||||
},
|
||||
"subnetResourceId": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "the resource id to the subnet"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
"rdpNATRuleID": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The resource id for the RDP NAT rule"
|
||||
}
|
||||
},
|
||||
|
||||
"lbBEPool": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The resource id for the SharePoint load balancer back end pool"
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"variables": {
|
||||
|
||||
"spNicName": "[concat('SPNic',resourceGroup().name)]",
|
||||
"vmContainerName": "vhds"
|
||||
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[parameters('storageAccount')]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"accountType": "[parameters('storageAccountType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spNicName')]",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"dependsOn": [
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[parameters('subnetResourceId')]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[parameters('lbBEPool')]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatRules": [
|
||||
{
|
||||
"id": "[parameters('rdpNATRuleID')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('vmName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Storage/storageAccounts',parameters('storageAccount'))]",
|
||||
"[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('vmSize')]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[parameters('vmName')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "[parameters('windowsImagePublisher')]",
|
||||
"offer": "[parameters('windowsImageOffer')]",
|
||||
"sku": "[parameters('windowsImageSKU')]",
|
||||
"version": "[parameters('windowsImageVersion')]"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('vmContainerName'),'/', parameters('vmName'), '0','-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage','storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('vmContainerName'),'/',parameters('vmName'),'0','-data-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('vmName'), '0','data-1.vhd')]",
|
||||
"caching": "None",
|
||||
"createOption": "Empty",
|
||||
"diskSizeGB": "[parameters('dataDiskSize')]",
|
||||
"lun": 0
|
||||
},
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', parameters('storageAccount')),providers('Microsoft.Storage','storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('vmContainerName'),'/', parameters('vmName'), '0','log-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('vmName'), '0','log-1.vhd')]",
|
||||
"caching": "None",
|
||||
"createOption": "Empty",
|
||||
"diskSizeGB": "[parameters('dataDiskSize')]",
|
||||
"lun": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# Create a new SharePoint 2019 Farm with 3 VMs
|
||||
|
||||
This template creates three new Azure VMs, each with a public IP address and load balancer and a VNet, it configures one VM to be an AD DC for a new Forest and Domain, one with SQL Server 2017 domain joined and a third VM with a SharePoint 2019, all VMs have public facing RDP
|
||||
|
||||
Click the button below to deploy
|
||||
|
||||
<p><a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FNikCharlebois%2Fazure-quickstart-templates%2Fmaster%2Fsharepoint2019-non-ha%2FmainTemplate.json"><img src="http://azuredeploy.net/deploybutton.png" alt="Deploy Environment in Azure" /></a>
|
||||
|
||||
Notes: Sharepoint farm name must not contain spaces.
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/availabilitySets",
|
||||
"name": "[parameters('adAvailabilitySetName')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]"
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/availabilitySets",
|
||||
"name": "[parameters('spAvailabilitySetName')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]"
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/availabilitySets",
|
||||
"name": "[parameters('sqlAvailabilitySetName')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]"
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,908 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"sharepointFarmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the SharePoint farm"
|
||||
},
|
||||
"defaultValue": "spfarm"
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The region to deploy the resources into"
|
||||
},
|
||||
"defaultValue":"[resourceGroup().location]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Virtual Network to Create"
|
||||
},
|
||||
"defaultValue": "spfarmVNET"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the new VNET "
|
||||
},
|
||||
"defaultValue": "10.0.0.0/16"
|
||||
},
|
||||
"adSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the AD subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.0.0/24"
|
||||
},
|
||||
"sqlSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the SQL subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.1.0/24"
|
||||
},
|
||||
"spSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the SP subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.2.0/24"
|
||||
},
|
||||
"adNicIPAddress": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The IP address of the new AD VM"
|
||||
},
|
||||
"defaultValue": "10.0.0.4"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VM and Domain"
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password forthe Administrator account of the new VM and Domain"
|
||||
}
|
||||
},
|
||||
"adVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the AD VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS2"
|
||||
},
|
||||
"sqlVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the SQL VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS2"
|
||||
},
|
||||
"spVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS3"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The FQDN of the AD Domain created "
|
||||
},
|
||||
"defaultValue": "contoso.local"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account name"
|
||||
},
|
||||
"defaultValue": "sqlservice"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account password"
|
||||
}
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Setup account name"
|
||||
},
|
||||
"defaultValue": "sp_setup"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Setup account password"
|
||||
}
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm account name"
|
||||
},
|
||||
"defaultValue": "sp_farm"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm account password"
|
||||
}
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm Passphrase"
|
||||
}
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Content Site Template Name"
|
||||
},
|
||||
"defaultValue": "STS#0"
|
||||
},
|
||||
"spDNSPrefix": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The DNS Prefix for the SharePoint Public IP Address"
|
||||
}
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"artifactsBaseUrl": "",
|
||||
"description": "URL to acquire other templates"
|
||||
},
|
||||
"defaultValue": "https://github.com/NikCharlebois/azure-quickstart-templates/raw/master/sharepoint2019-non-ha"
|
||||
},
|
||||
"spPublicIPNewOrExisting": {
|
||||
"type": "string",
|
||||
"defaultValue": "new",
|
||||
"allowedValues": [
|
||||
"new",
|
||||
"existing"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "Indicates whether the SharePoint farm's IP is new or existing"
|
||||
}
|
||||
},
|
||||
"spPublicIPRGName": {
|
||||
"type": "string",
|
||||
"defaultValue": "",
|
||||
"metadata": {
|
||||
"description": "Resource Group containing existing public IP for SharePoint"
|
||||
}
|
||||
},
|
||||
"sppublicIPAddressName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of existing public IP resource for SharePoint"
|
||||
}
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name prefix of the new storage account created to store the VMs disks"
|
||||
}
|
||||
},
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"Premium_LRS",
|
||||
"Standard_LRS",
|
||||
"Standard_GRS"
|
||||
|
||||
],
|
||||
"metadata": {
|
||||
"description": "The type of the Storage Account created"
|
||||
},
|
||||
"defaultValue": "Premium_LRS"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation":"[concat(parameters('baseUrl'),'/dsc')]",
|
||||
"configDatabaseName": "SP_Config",
|
||||
"administrationContentDatabaseName": "SP_AdminContent",
|
||||
"contentDatabaseName": "spARM_Content",
|
||||
"adVMName": "[concat(parameters('sharepointFarmName'),'-ad')]",
|
||||
"sqlVMName": "[concat(parameters('sharepointFarmName'),'-sql')]",
|
||||
"spVMName": "[concat(parameters('sharepointFarmName'),'-sp')]",
|
||||
"LBFE": "LBFE",
|
||||
"LBBE": "LBBE",
|
||||
"RDPNAT": "RDP",
|
||||
"spWebNAT": "spWeb",
|
||||
"spCANAT": "spCentralAdmin",
|
||||
"adSubnetName": "adSubnet",
|
||||
"sqlSubnetName": "sqlSubnet",
|
||||
"spSubnetName": "spSubnet",
|
||||
"adNicName": "adNic",
|
||||
"sqlNicName": "sqlNic",
|
||||
"spNicName": "spNic",
|
||||
"adSubnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets/', parameters('virtualNetworkName'),variables('adSubnetName'))]",
|
||||
"sqlSubnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets/', parameters('virtualNetworkName'),variables('sqlSubnetName'))]",
|
||||
"spSubnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets/', parameters('virtualNetworkName'),variables('spSubnetName'))]",
|
||||
"adNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('adNicName'))]",
|
||||
"sqlNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('sqlNicName'))]",
|
||||
"spNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]",
|
||||
"adLBName": "adLoadBalancer",
|
||||
"sqlLBName": "sqlLoadBalancer",
|
||||
"spLBName": "spLoadBalancer",
|
||||
"adIPConfigID": "[concat(variables('adNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"adlbID": "[resourceId('Microsoft.Network/loadBalancers',variables('adLBName'))]",
|
||||
"adlbFEConfigID": "[concat(variables('adlbID'),'/frontendIPConfigurations/',variables('LBFE'))]",
|
||||
"adRDPNATRuleID": "[concat(variables('adlbID'),'/inboundNatRules/',variables('RDPNAT'))]",
|
||||
"adBEAddressPoolID": "[concat(variables('adlbID'),'/backendAddressPools/',variables('LBBE'))]",
|
||||
"sqlIPConfigID": "[concat(variables('sqlNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"sqllbID": "[resourceId('Microsoft.Network/loadBalancers',variables('sqlLBName'))]",
|
||||
"sqllbFEConfigID": "[concat(variables('sqllbID'),'/frontendIPConfigurations/',variables('LBFE'))]",
|
||||
"sqlRDPNATRuleID": "[concat(variables('sqllbID'),'/inboundNatRules/',variables('RDPNAT'))]",
|
||||
"sqlBEAddressPoolID": "[concat(variables('sqllbID'),'/backendAddressPools/',variables('LBBE'))]",
|
||||
"spIPConfigID": "[concat(variables('spNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"adDataDisk": "ADDataDisk",
|
||||
"adDataDiskSize": 1000,
|
||||
"sqlDataDisk": "SQLDataDisk",
|
||||
"sqlDataDiskSize": 1000,
|
||||
"sqlLogDisk": "SQLLogDisk",
|
||||
"sqlLogDiskSize": 1000,
|
||||
"spDataDisk": "SPDataDisk",
|
||||
"spDataDiskSize": 1000,
|
||||
"adpublicIPAddressName": "adpublicIP",
|
||||
"sqlpublicIPAddressName": "sqlpublicIP",
|
||||
"spCentralAdminPort": 8080,
|
||||
"spAvailabilitySetName": "spAvailabiltySet",
|
||||
"sqlAvailabilitySetName": "sqlAvailabiltySet",
|
||||
"adAvailabilitySetName": "adAvailabiltySet",
|
||||
"publicIPAddressType": "Dynamic",
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('adSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('adSubnet')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('sqlSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('sqlSubnet')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('spSubnet')]"
|
||||
}
|
||||
}
|
||||
],
|
||||
"SpPublicIpexisting":"[resourceId(parameters('spPublicIPRGName'),concat('Microsoft.Network','/','publicIPAddresses'),parameters('sppublicIPAddressName'))]",
|
||||
"SpPublicIpnew": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),parameters('sppublicIPAddressName'))]",
|
||||
"adPublicIpResourceId": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),variables('adpublicIPAddressName'))]",
|
||||
"sqlPublicIpResourceId": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),variables('sqlpublicIPAddressName'))]",
|
||||
"spFQDN":"[concat(parameters('spDNSPrefix'),'.',toLower(trim(replace(parameters('location'),' ' ,''))),'.cloudapp.azure.com')]",
|
||||
"splbResourceId":"[resourceId(concat('Microsoft.Network','/','loadBalancers'),variables('spLBName'))]",
|
||||
"adModulesURL": "[concat(variables('assetLocation'),'/CreateADPDC.ps1.zip')]",
|
||||
"adConfigurationFunction": "CreateADPDC.ps1\\CreateADPDC",
|
||||
"sqlConfigureModulesURL": "[concat(variables('assetLocation'),'/ConfigureSqlServer.ps1.zip')]",
|
||||
"sqlConfigurationFunction": "ConfigureSqlServer.ps1\\ConfigureSqlServer",
|
||||
"spConfigureModulesURL": "[concat(variables('assetLocation'),'/ConfigureSharePointServer.ps1.zip')]",
|
||||
"spConfigurationFunction": "ConfigureSharePointServer.ps1\\ConfigureSharePointServer",
|
||||
"sqlPrepareModulesURL": "[concat(variables('assetLocation'),'/PrepareSqlServer.ps1.zip')]",
|
||||
"sqlPreparationFunction": "PrepareSqlServer.ps1\\PrepareSqlServer",
|
||||
"spPrepareModulesURL": "[concat(variables('assetLocation'),'/PrepareSharePointServer.ps1.zip')]",
|
||||
"spPreparationFunction": "PrepareSharePointServer.ps1\\PrepareSharePointServer",
|
||||
"SettingUpSharepointIPUrl": "[concat(parameters('baseUrl'),'/publicip-',parameters('spPublicIPNewOrExisting'),'.json')]",
|
||||
"storageAccountSetupURL": "[concat(parameters('baseUrl'),'/storageAccount.json')]",
|
||||
"creatingPublicIPsUrl": "[concat(parameters('baseUrl'),'/creatingPublicIPs.json')]",
|
||||
"vnetwithDNSTemplateUrl": "[concat(parameters('baseUrl'),'/vnet-with-dns-server.json')]",
|
||||
"CreatingAvailabilitySetsUrl": "[concat(parameters('baseUrl'),'/availabilitySets.json')]",
|
||||
"vnetSetupURL": "[concat(parameters('baseUrl'),'/vnet-new.json')]",
|
||||
"setupLBsUrl": "[concat(parameters('baseUrl'),'/loadBalancers.json')]",
|
||||
"creatingNICSUrl": "[concat(parameters('baseUrl'),'/creatingNICS.json')]",
|
||||
"ProvisioningADDomainControllerUrl": "[concat(parameters('baseUrl'),'/provisioningDomainController.json')]",
|
||||
"ProvisioningSQLUrl": "[concat(parameters('baseUrl'),'/provisioningSQL.json')]",
|
||||
"provisioningSharepointUrl": "[concat(parameters('baseUrl'),'/provisioningSharepoint.json')]",
|
||||
"configuringSQLUrl": "[concat(parameters('baseUrl'),'/configuringSQL.json')]",
|
||||
"configuringSharepointUrl": "[concat(parameters('baseUrl'),'/configuringSharepoint.json')]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "SettingUpStorageAccount",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('storageAccountSetupURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[parameters('storageAccountType')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpPublicIPs",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('creatingPublicIPsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adpublicIPAddressName": {
|
||||
"value": "[variables('adpublicIPAddressName')]"
|
||||
},
|
||||
"sqlpublicIPAddressName": {
|
||||
"value": "[variables('sqlpublicIPAddressName')]"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"value": "[variables('publicIPAddressType')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CreatingAvailabilitySets",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('CreatingAvailabilitySetsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"value": "[variables('adAvailabilitySetName')]"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"value": "[variables('sqlAvailabilitySetName')]"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"value": "[variables('spAvailabilitySetName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpVirtualNetwork",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetSetupURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"value": "[parameters('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[parameters('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpSharepointIP",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('SettingUpSharepointIPUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"publicIpAddressName": {
|
||||
"value": "[parameters('sppublicIPAddressName')]"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"value": "[variables('publicIPAddressType')]"
|
||||
},
|
||||
"dnsPrefix": {
|
||||
"value": "[parameters('spDNSPrefix')]"
|
||||
},
|
||||
"publicIpRGName": {
|
||||
"value": "[parameters('spPublicIPRGName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpLoadBalancers",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpSharepointIP",
|
||||
"Microsoft.Resources/deployments/SettingUpPublicIPs"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('setupLBsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spLBName": {
|
||||
"value": "[variables('spLBName')]"
|
||||
},
|
||||
"sqllbName": {
|
||||
"value": "[variables('sqlLBName')]"
|
||||
},
|
||||
"LBFE": {
|
||||
"value": "[variables('LBFE')]"
|
||||
},
|
||||
"LBBE": {
|
||||
"value": "[variables('LBBE')]"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"value": "[variables('RDPNAT')]"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"value": "[variables('spWebNAT')]"
|
||||
},
|
||||
"spCANAT": {
|
||||
"value": "[variables('spCANAT')]"
|
||||
},
|
||||
"adlbName": {
|
||||
"value": "[variables('adLBName')]"
|
||||
},
|
||||
"spPublicIPResourceId": {
|
||||
"value": "[variables(concat('SpPublicIP',parameters('spPublicIPNewOrExisting')))]"
|
||||
},
|
||||
"adPublicIpResourceId": {
|
||||
"value": "[variables('adPublicIpResourceId')]"
|
||||
},
|
||||
"sqlPublicIpResourceId": {
|
||||
"value": "[variables('sqlPublicIpResourceId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CreatingNetworkInterfaces",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpVirtualNetwork",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers",
|
||||
"Microsoft.Resources/deployments/SettingUpVirtualNetwork"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('creatingNICSUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adNicName": {
|
||||
"value": "[variables('adNicName')]"
|
||||
},
|
||||
"adNicIPAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
},
|
||||
"adSubnetRef": {
|
||||
"value": "[variables('adSubnetRef')]"
|
||||
},
|
||||
"adBEAddressPoolID": {
|
||||
"value": "[variables('adBEAddressPoolID')]"
|
||||
},
|
||||
"adRDPNATRuleID": {
|
||||
"value": "[variables('adRDPNATRuleID')]"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
},
|
||||
"sqlSubnetRef": {
|
||||
"value": "[variables('sqlSubnetRef')]"
|
||||
},
|
||||
"sqlBEAddressPoolID": {
|
||||
"value": "[variables('sqlBEAddressPoolID')]"
|
||||
},
|
||||
"sqlRDPNATRuleID": {
|
||||
"value": "[variables('sqlRDPNATRuleID')]"
|
||||
},
|
||||
"spNicName": {
|
||||
"value": "[variables('spNicName')]"
|
||||
},
|
||||
"spSubnetRef": {
|
||||
"value": "[variables('spSubnetRef')]"
|
||||
},
|
||||
"splbResourceId": {
|
||||
"value": "[variables('splbResourceId')]"
|
||||
},
|
||||
"LBBE": {
|
||||
"value": "[variables('LBBE')]"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"value": "[variables('RDPNAT')]"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"value": "[variables('spWebNAT')]"
|
||||
},
|
||||
"spCANAT": {
|
||||
"value": "[variables('spCANAT')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningADDomainController",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('ProvisioningADDomainControllerUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adVMName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"adVMSize": {
|
||||
"value": "[parameters('adVMSize')]"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"value": "[variables('adAvailabilitySetName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"adDataDisk": {
|
||||
"value": "[variables('adDataDisk')]"
|
||||
},
|
||||
"adNicName": {
|
||||
"value": "[variables('adNicName')]"
|
||||
},
|
||||
"adModulesURL": {
|
||||
"value": "[variables('adModulesURL')]"
|
||||
},
|
||||
"adConfigurationFunction": {
|
||||
"value": "[variables('adConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningSQLServerVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('ProvisioningSQLUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"sqlVMSize": {
|
||||
"value": "[parameters('sqlVMSize')]"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"value": "[variables('sqlAvailabilitySetName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"sqlDataDisk": {
|
||||
"value": "[variables('sqlDataDisk')]"
|
||||
},
|
||||
"sqlLogDisk": {
|
||||
"value": "[variables('sqlLogDisk')]"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
},
|
||||
"sqlPrepareModulesURL": {
|
||||
"value": "[variables('sqlPrepareModulesURL')]"
|
||||
},
|
||||
"sqlPreparationFunction": {
|
||||
"value": "[variables('sqlPreparationFunction')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningSharepointVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('provisioningSharepointUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVMName')]"
|
||||
},
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spPrepareModulesURL": {
|
||||
"value": "[variables('spPrepareModulesURL')]"
|
||||
},
|
||||
"spPreparationFunction": {
|
||||
"value": "[variables('spPreparationFunction')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"spVMSize": {
|
||||
"value": "[parameters('spVMSize')]"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"value": "[variables('spAvailabilitySetName')]"
|
||||
},
|
||||
"spNicName": {
|
||||
"value": "[variables('spNicName')]"
|
||||
},
|
||||
"spDataDisk": {
|
||||
"value": "[variables('spDataDisk')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UpdatingDNStoPrimaryADVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/ProvisioningADDomainController",
|
||||
"Microsoft.Resources/deployments/ProvisioningSQLServerVM",
|
||||
"Microsoft.Resources/deployments/ProvisioningSharepointVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetwithDNSTemplateUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"value": "[parameters('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[parameters('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": [
|
||||
"[parameters('adNicIPAddress')]"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ConfiguringSQLServerVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/UpdatingDNStoPrimaryADVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('configuringSQLUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sqlConfgureModulesURL": {
|
||||
"value": "[variables('sqlConfigureModulesURL')]"
|
||||
},
|
||||
"sqlConfigurationFunction": {
|
||||
"value": "[variables('sqlConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('sharePointSetupUserAccountUserName')]"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"value": "[parameters('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('sharePointSetupUserAccountPassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ConfiguringSharepointVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/ConfiguringSQLServerVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('configuringSharepointUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVMName')]"
|
||||
},
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spConfgureModulesURL": {
|
||||
"value": "[variables('spConfigureModulesURL')]"
|
||||
},
|
||||
"spConfigurationFunction": {
|
||||
"value": "[variables('spConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('sharePointSetupUserAccountUserName')]"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"value": "[parameters('sharePointFarmAccountUserName')]"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"value": "[variables('configDatabaseName')]"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"value": "[variables('administrationContentDatabaseName')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"value": "[variables('contentDatabaseName')]"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"value": "[parameters('spSiteTemplateName')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('sharePointSetupUserAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"value": "[parameters('sharePointFarmAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"value": "[parameters('sharePointFarmPassphrasePassword')]"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"value": "[parameters('sharepointFarmName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"value": "GEN-UNIQUE-10"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "GEN-PASSWORD"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"value": "GEN-PASSWORD"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "GEN-PASSWORD"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"value": "GEN-PASSWORD"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"value": "GEN-PASSWORD"
|
||||
},
|
||||
"sppublicIPAddressName": {
|
||||
"value": "GEN-UNIQUE"
|
||||
},
|
||||
"spDNSPrefix": {
|
||||
"value": "GEN-UNIQUE"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "GEN-UNIQUE"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sqlConfigureModulesURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlConfigurationFunction": {
|
||||
"type": "string"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('sqlVMName'),'/CreateSQLServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.24",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"ModulesUrl": "[parameters('sqlConfigureModulesURL')]",
|
||||
"wmfVersion": "latest",
|
||||
"ConfigurationFunction": "[parameters('sqlConfigurationFunction')]",
|
||||
"Properties": {
|
||||
"DomainName": "[parameters('domainName')]",
|
||||
"AdminCreds": {
|
||||
"UserName": "[parameters('adminUserName')]",
|
||||
"Password": "PrivateSettingsRef:AdminPassword"
|
||||
},
|
||||
"SqlServerServiceAccountcreds": {
|
||||
"UserName": "[parameters('sqlServerServiceAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SqlServerServiceAccountPassword"
|
||||
},
|
||||
"SharePointSetupUserAccountcreds": {
|
||||
"UserName": "[parameters('sharePointSetupUserAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointSetupUserAccountPassword"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"Items": {
|
||||
"AdminPassword": "[parameters('adminPassword')]",
|
||||
"SqlServerServiceAccountPassword": "[parameters('sqlServerServiceAccountPassword')]",
|
||||
"SharePointSetupUserAccountPassword": "[parameters('sharePointSetupUserAccountPassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"spConfgureModulesURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"spConfigurationFunction": {
|
||||
"type": "string"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"fqdn": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('spVMName'),'/ConfigureSPServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.24",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"ModulesUrl": "[parameters('spConfgureModulesURL')]",
|
||||
"wmfVersion": "4.0",
|
||||
"ConfigurationFunction": "[parameters('spConfigurationFunction')]",
|
||||
"Properties": {
|
||||
"DomainName": "[parameters('domainName')]",
|
||||
"AdminCreds": {
|
||||
"UserName": "[parameters('adminUserName')]",
|
||||
"Password": "PrivateSettingsRef:AdminPassword"
|
||||
},
|
||||
"SharePointSetupUserAccountcreds": {
|
||||
"UserName": "[parameters('sharePointSetupUserAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointSetupUserAccountPassword"
|
||||
},
|
||||
"SharePointFarmAccountcreds": {
|
||||
"UserName": "[parameters('sharePointFarmAccountUserName')]",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmAccountPassword"
|
||||
},
|
||||
"SharePointFarmPassphrasecreds": {
|
||||
"UserName": "ignore",
|
||||
"Password": "PrivateSettingsRef:SharePointFarmPassphrasePassword"
|
||||
},
|
||||
"DatabaseName": "[parameters('configDatabaseName')]",
|
||||
"AdministrationContentDatabaseName": "[parameters('administrationContentDatabaseName')]",
|
||||
"DatabaseServer": "[concat(parameters('sqlVMName'),'.',parameters('domainName'))]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"Items": {
|
||||
"AdminPassword": "[parameters('adminPassword')]",
|
||||
"SharePointSetupUserAccountPassword": "[parameters('sharePointSetupUserAccountPassword')]",
|
||||
"SharePointFarmAccountPassword": "[parameters('sharePointFarmAccountPassword')]",
|
||||
"SharePointFarmPassphrasePassword": "[parameters('sharePointFarmPassphrasePassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,374 +0,0 @@
|
|||
{
|
||||
"handler": "Microsoft.Compute.MultiVm",
|
||||
"version": "0.1.2-preview",
|
||||
"parameters": {
|
||||
"basics": [
|
||||
{
|
||||
"name": "sharePointFarmName",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
"label": "SharePoint farm name",
|
||||
"defaultValue": "spfarm",
|
||||
"constraints": {
|
||||
"required": true,
|
||||
"regex": "^[a-z0-9A-Z]{1,10}$",
|
||||
"validationMessage": "Only letters and numbers are allowed, and the value must be 1-10 characters long."
|
||||
}
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{
|
||||
"name": "infrastructureConfig",
|
||||
"label": "Infrastructure settings",
|
||||
"subLabel": {
|
||||
"preValidation": "Configure the infrastructure settings",
|
||||
"postValidation": "Done"
|
||||
},
|
||||
"bladeTitle": "Infrastructure settings",
|
||||
"elements": [
|
||||
{
|
||||
"name": "adminUsername",
|
||||
"type": "Microsoft.Compute.UserNameTextBox",
|
||||
"label": "Username",
|
||||
"toolTip": "Admin username for the virtual machines and the Active Directory domain.",
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "adminPassword",
|
||||
"type": "Microsoft.Compute.CredentialsCombo",
|
||||
"label": {
|
||||
"password": "Password",
|
||||
"confirmPassword": "Confirm password"
|
||||
},
|
||||
"toolTip": {
|
||||
"password": "Admin password for the virtual machines and the Active Directory domain."
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "storageAccounts",
|
||||
"type": "Microsoft.Storage.MultiStorageAccountCombo",
|
||||
"label": {
|
||||
"prefix": "Storage account name prefix",
|
||||
"type": "Storage account type"
|
||||
},
|
||||
"defaultValue": {
|
||||
"type": "Premium_LRS"
|
||||
},
|
||||
"count": 2,
|
||||
"constraints": {
|
||||
"allowedTypes":[
|
||||
"Premium_LRS",
|
||||
"Standard_LRS",
|
||||
"Standard_GRS"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "virtualNetworkName",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
"label": "Virtual Network name",
|
||||
"toolTip": "Name of the virtual network to be created",
|
||||
"defaultValue": "spfarmvnet",
|
||||
"constraints": {
|
||||
"required": true,
|
||||
"regex": "^[a-z0-9A-Z]{1,10}$",
|
||||
"validationMessage": "Only letters and numbers are allowed, and the value must be 1-10 characters long."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "adConfig",
|
||||
"label": "Active Directory settings",
|
||||
"subLabel": {
|
||||
"preValidation": "Configure the domain controller",
|
||||
"postValidation": "Done"
|
||||
},
|
||||
"bladeTitle": "Active Directory settings",
|
||||
"elements": [
|
||||
{
|
||||
"name": "domainName",
|
||||
"type": "Microsoft.Common.TextBox",
|
||||
"label": "Forest root domain name",
|
||||
"toolTip": "Fully-qualified domain name of the Active directory domain.",
|
||||
"defaultValue": "contoso.com",
|
||||
"constraints": {
|
||||
"required": true,
|
||||
"regex": "^([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}$",
|
||||
"validationMessage": "Must be a valid fully-qualified domain name."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "adVmSize",
|
||||
"type": "Microsoft.Compute.SizeSelector",
|
||||
"label": "AD VM size",
|
||||
"toolTip": "The size of the virtual machine for the domain controller.",
|
||||
"recommendedSizes": [
|
||||
"Standard_DS2",
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS2_v2",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2"
|
||||
],
|
||||
"constraints": {
|
||||
"allowedSizes": [
|
||||
"Standard_DS2",
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS11",
|
||||
"Standard_DS12",
|
||||
"Standard_DS13",
|
||||
"Standard_DS14",
|
||||
"Standard_DS2_v2",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2",
|
||||
"Standard_DS11_v2",
|
||||
"Standard_DS12_v2",
|
||||
"Standard_DS13_v2",
|
||||
"Standard_DS14_v2"
|
||||
]
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "sqlConfig",
|
||||
"label": "SQL Server settings",
|
||||
"subLabel": {
|
||||
"preValidation": "Configure the SQL Server",
|
||||
"postValidation": "Done"
|
||||
},
|
||||
"bladeTitle": "SQL Server settings",
|
||||
"elements": [
|
||||
{
|
||||
"name": "sqlVmSize",
|
||||
"type": "Microsoft.Compute.SizeSelector",
|
||||
"label": "SQL Server VM size",
|
||||
"toolTip": "The size of the virtual machine for the SQL Server.",
|
||||
"recommendedSizes": [
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS14",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2",
|
||||
"Standard_DS14_v2"
|
||||
],
|
||||
"constraints": {
|
||||
"allowedSizes": [
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS11",
|
||||
"Standard_DS12",
|
||||
"Standard_DS13",
|
||||
"Standard_DS14",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2",
|
||||
"Standard_DS11_v2",
|
||||
"Standard_DS12_v2",
|
||||
"Standard_DS13_v2",
|
||||
"Standard_DS14_v2"
|
||||
]
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "sqlServerServiceAccountPassword",
|
||||
"type": "Microsoft.Compute.CredentialsCombo",
|
||||
"label": {
|
||||
"password": "Service account password",
|
||||
"confirmPassword": "Confirm password"
|
||||
},
|
||||
"toolTip":{
|
||||
"password": "SQL Service account password, username is sqlserver, account is used to run MSSQLSERVER and SQLSERVERAGENT."
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "spConfig",
|
||||
"label": "SharePoint Server settings",
|
||||
"subLabel": {
|
||||
"preValidation": "Configure the SharePoint server",
|
||||
"postValidation": "Done"
|
||||
},
|
||||
"bladeTitle": "SharePoint Server settings",
|
||||
"elements": [
|
||||
{
|
||||
"name": "spDnsAndPublicIP",
|
||||
"type": "Microsoft.Network.PublicIpAddressCombo",
|
||||
"label": {
|
||||
"publicIpAddress": "Public IP address",
|
||||
"domainNameLabel": "DNS label"
|
||||
},
|
||||
"toolTip": {
|
||||
"domainNameLabel": "DNS label for the SharePoint Server's public IP address, which hosts the first site collection and the Central Administration site."
|
||||
},
|
||||
"defaultValue": {
|
||||
"publicIpAddressName": "ip01"
|
||||
},
|
||||
"options": {
|
||||
"hideNone": true,
|
||||
"hideDomainNameLabel": false
|
||||
},
|
||||
"constraints": {
|
||||
"required": {
|
||||
"domainNameLabel": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spVmSize",
|
||||
"type": "Microsoft.Compute.SizeSelector",
|
||||
"label": "SharePoint Server VM size",
|
||||
"toolTip": "The size of the virtual machine for the SharePoint Server.",
|
||||
"recommendedSizes": [
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS14",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2",
|
||||
"Standard_DS14_v2"
|
||||
],
|
||||
"constraints": {
|
||||
"allowedSizes": [
|
||||
"Standard_DS3",
|
||||
"Standard_DS4",
|
||||
"Standard_DS11",
|
||||
"Standard_DS12",
|
||||
"Standard_DS13",
|
||||
"Standard_DS14",
|
||||
"Standard_DS3_v2",
|
||||
"Standard_DS4_v2",
|
||||
"Standard_DS11_v2",
|
||||
"Standard_DS12_v2",
|
||||
"Standard_DS13_v2",
|
||||
"Standard_DS14_v2"
|
||||
]
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"name": "spSetupUserAccountPassword",
|
||||
"type": "Microsoft.Compute.CredentialsCombo",
|
||||
"label": {
|
||||
"password": "Setup user account password",
|
||||
"confirmPassword": "Confirm password"
|
||||
},
|
||||
"toolTip":{
|
||||
"password": "SharePoint setup account password, username is spsetup, account is used to setup SharePoint."
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spServerFarmAccountPassword",
|
||||
"type": "Microsoft.Compute.CredentialsCombo",
|
||||
"label": {
|
||||
"password": "Server farm account password",
|
||||
"confirmPassword": "Confirm password"
|
||||
},
|
||||
"toolTip":{
|
||||
"password": "farm account password, username is sp_farm, account is used to configure and manage server farm, act as the application pool identity for the SharePoint Central Administration Web site and run the Microsoft SharePoint Foundation Workflow ."
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spServerFarmPassphrase",
|
||||
"type": "Microsoft.Compute.CredentialsCombo",
|
||||
"label": {
|
||||
"password": "Server farm passphrase",
|
||||
"confirmPassword": "Confirm passphrase"
|
||||
},
|
||||
"toolTip": {
|
||||
"password": "A secure password phrase that will be used to join other machines to this farm."
|
||||
},
|
||||
"osPlatform": "Windows",
|
||||
"constraints": {
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "spSiteTemplateName",
|
||||
"type": "Microsoft.Common.DropDown",
|
||||
"label": "Content site template",
|
||||
"defaultValue": "Team Site",
|
||||
"constraints": {
|
||||
"allowedValues": [
|
||||
{
|
||||
"label": "Team Site",
|
||||
"value": "STS#0"
|
||||
},
|
||||
{
|
||||
"label": "Blank Site",
|
||||
"value": "STS#1"
|
||||
},
|
||||
{
|
||||
"label": "Document Workspace",
|
||||
"value": "STS#2"
|
||||
},
|
||||
{
|
||||
"label": "Basic Meeting Workspace",
|
||||
"value": "MPS#0"
|
||||
},
|
||||
{
|
||||
"label": "Decision Meeting Workspace",
|
||||
"value": "MPS#2"
|
||||
},
|
||||
{
|
||||
"label": "Wiki Site",
|
||||
"value": "WIKI#0"
|
||||
},
|
||||
{
|
||||
"label": "Central Admin Site",
|
||||
"value": "CENTRALADMIN#0"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"location": "[location()]",
|
||||
"sharePointFarmName": "[basics('sharePointFarmName')]",
|
||||
"adminUsername": "[steps('infrastructureConfig').adminUsername]",
|
||||
"adminPassword": "[steps('infrastructureConfig').adminPassword.password]",
|
||||
"virtualNetworkName": "[steps('infrastructureConfig').virtualNetworkName]",
|
||||
"storageAccountNamePrefix": "[steps('infrastructureConfig').storageAccounts.prefix]",
|
||||
"storageAccountType": "[steps('infrastructureConfig').storageAccounts.type]",
|
||||
"domainName": "[steps('adConfig').domainName]",
|
||||
"adVmSize": "[steps('adConfig').adVmSize]",
|
||||
"sqlVMSize": "[steps('sqlConfig').sqlVmSize]",
|
||||
"sqlServerServiceAccountPassword": "[steps('sqlConfig').sqlServerServiceAccountPassword.password]",
|
||||
"spDNSPrefix": "[steps('spConfig').spDnsAndPublicIP.domainNameLabel]",
|
||||
"sppublicIPAddressName": "[steps('spConfig').spDnsAndPublicIP.name]",
|
||||
"spPublicIPNewOrExisting": "[steps('spConfig').spDnsAndPublicIP.newOrExistingOrNone]",
|
||||
"spPublicIPRGName": "[steps('spConfig').spDnsAndPublicIP.resourceGroup]",
|
||||
"spVMSize": "[steps('spConfig').spVmSize]",
|
||||
"sharePointSetupUserAccountPassword": "[steps('spConfig').spSetupUserAccountPassword.password]",
|
||||
"sharePointFarmAccountPassword": "[steps('spConfig').spServerFarmAccountPassword.password]",
|
||||
"sharePointFarmPassphrasePassword": "[steps('spConfig').spServerFarmPassphrase.password]",
|
||||
"spSiteTemplateName": "[steps('spConfig').spSiteTemplateName]"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,154 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"adNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adNicIPAddress": {
|
||||
"type": "string"
|
||||
},
|
||||
"adSubnetRef": {
|
||||
"type": "string"
|
||||
},
|
||||
"adBEAddressPoolID": {
|
||||
"type": "string"
|
||||
},
|
||||
"adRDPNATRuleID": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlSubnetRef": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlBEAddressPoolID": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlRDPNATRuleID": {
|
||||
"type": "string"
|
||||
},
|
||||
"spNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spSubnetRef": {
|
||||
"type": "string"
|
||||
},
|
||||
"splbResourceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"LBBE": {
|
||||
"type": "string"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"type": "string"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"type": "string"
|
||||
},
|
||||
"spCANAT": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[parameters('adNicName')]",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Static",
|
||||
"privateIPAddress": "[parameters('adNicIPAddress')]",
|
||||
"subnet": {
|
||||
"id": "[parameters('adSubnetRef')]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[parameters('adBEAddressPoolID')]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatRules": [
|
||||
{
|
||||
"id": "[parameters('adRDPNATRuleID')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[parameters('sqlNicName')]",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[parameters('sqlSubnetRef')]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[parameters('sqlBEAddressPoolID')]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatRules": [
|
||||
{
|
||||
"id": "[parameters('sqlRDPNATRuleID')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[parameters('spNicName')]",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[parameters('spSubnetRef')]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[concat(parameters('splbResourceId'),'/backendAddressPools/',parameters('LBBE'))]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatRules": [
|
||||
{
|
||||
"id": "[concat(parameters('splbResourceId'),'/inboundNatRules/',parameters('RDPNAT'))]"
|
||||
},
|
||||
{
|
||||
"id": "[concat(parameters('splbResourceId'),'/inboundNatRules/',parameters('spWebNAT'))]"
|
||||
},
|
||||
{
|
||||
"id": "[concat(parameters('splbResourceId'),'/inboundNatRules/',parameters('spCANAT'))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"adpublicIPAddressName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlpublicIPAddressName": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[parameters('adpublicIPAddressName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[parameters('sqlpublicIPAddressName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"adPublicIpResourceId": {
|
||||
"type": "string",
|
||||
"value": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('adpublicIPAddressName'))]"
|
||||
},
|
||||
"sqlPublicIpResourceId": {
|
||||
"type": "string",
|
||||
"value": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('sqlpublicIPAddressName'))]"
|
||||
}
|
||||
}
|
||||
}
|
Двоичные данные
sharepoint2019-non-ha/dsc/ConfigureSharePointServer.ps1.zip
Двоичные данные
sharepoint2019-non-ha/dsc/ConfigureSharePointServer.ps1.zip
Двоичный файл не отображается.
Двоичные данные
sharepoint2019-non-ha/dsc/ConfigureSqlServer.ps1.zip
Двоичные данные
sharepoint2019-non-ha/dsc/ConfigureSqlServer.ps1.zip
Двоичный файл не отображается.
Двоичные данные
sharepoint2019-non-ha/dsc/CreateADPDC.ps1.zip
Двоичные данные
sharepoint2019-non-ha/dsc/CreateADPDC.ps1.zip
Двоичный файл не отображается.
Двоичные данные
sharepoint2019-non-ha/dsc/PrepareSharePointServer.ps1.zip
Двоичные данные
sharepoint2019-non-ha/dsc/PrepareSharePointServer.ps1.zip
Двоичный файл не отображается.
Двоичные данные
sharepoint2019-non-ha/dsc/PrepareSqlServer.ps1.zip
Двоичные данные
sharepoint2019-non-ha/dsc/PrepareSqlServer.ps1.zip
Двоичный файл не отображается.
|
@ -1,193 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"spLBName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adlbName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqllbName": {
|
||||
"type": "string"
|
||||
},
|
||||
"LBFE": {
|
||||
"type": "string"
|
||||
},
|
||||
"LBBE": {
|
||||
"type": "string"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"type": "string"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"type": "string"
|
||||
},
|
||||
"spCANAT": {
|
||||
"type": "string"
|
||||
},
|
||||
"spPublicIPResourceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"adPublicIpResourceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlPublicIpResourceId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"name": "[parameters('spLBName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[parameters('LBFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[parameters('spPublicIPResourceId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[parameters('LBBE')]"
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[parameters('RDPNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(resourceid(resourceGroup().name,'Microsoft.Network/loadBalancers',parameters('spLBName')), '/frontendIPConfigurations/',parameters('LBFE'))]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": 3389,
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[parameters('spWebNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(resourceid(resourceGroup().name,'Microsoft.Network/loadBalancers',parameters('spLBName')), '/frontendIPConfigurations/',parameters('LBFE'))]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": 80,
|
||||
"backendPort": 80,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[parameters('spCANAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(resourceid(resourceGroup().name,'Microsoft.Network/loadBalancers',parameters('spLBName')), '/frontendIPConfigurations/',parameters('LBFE'))]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": 8080,
|
||||
"backendPort": 8080,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"name": "[parameters('adlbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[parameters('LBFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[parameters('adPublicIpResourceId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[parameters('LBBE')]"
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[parameters('RDPNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(resourceid(resourceGroup().name,'Microsoft.Network/loadBalancers',parameters('adlbName')), '/frontendIPConfigurations/',parameters('LBFE'))]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": 3389,
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"name": "[parameters('sqllbName')]",
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[parameters('LBFE')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[parameters('sqlPublicIpResourceId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[parameters('LBBE')]"
|
||||
}
|
||||
],
|
||||
"inboundNatRules": [
|
||||
{
|
||||
"name": "[parameters('RDPNAT')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(resourceid(resourceGroup().name,'Microsoft.Network/loadBalancers',parameters('sqllbName')), '/frontendIPConfigurations/',parameters('LBFE'))]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPort": 3389,
|
||||
"backendPort": 3389,
|
||||
"enableFloatingIP": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"splbID": {
|
||||
"value": "[resourceId('Microsoft.Network/loadBalancers',parameters('spLBName'))]",
|
||||
"type": "string"
|
||||
},
|
||||
"sqllbID": {
|
||||
"value": "[resourceId('Microsoft.Network/loadBalancers',parameters('sqlLBName'))]",
|
||||
"type": "string"
|
||||
},
|
||||
"adlbID": {
|
||||
"value": "[resourceId('Microsoft.Network/loadBalancers',parameters('adLBName'))]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,909 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"sharepointFarmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the SharePoint farm"
|
||||
},
|
||||
"defaultValue": "spfarm"
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The region to deploy the resources into"
|
||||
},
|
||||
"defaultValue":"[resourceGroup().location]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Virtual Network to Create"
|
||||
},
|
||||
"defaultValue": "spfarmVNET"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the new VNET "
|
||||
},
|
||||
"defaultValue": "10.0.0.0/16"
|
||||
},
|
||||
"adSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the AD subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.0.0/24"
|
||||
},
|
||||
"sqlSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the SQL subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.1.0/24"
|
||||
},
|
||||
"spSubnet": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The address range of the SP subnet created in the new VNET"
|
||||
},
|
||||
"defaultValue": "10.0.2.0/24"
|
||||
},
|
||||
"adNicIPAddress": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The IP address of the new AD VM"
|
||||
},
|
||||
"defaultValue": "10.0.0.4"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The name of the Administrator of the new VM and Domain"
|
||||
},
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The password for the Administrator account of the new VM and Domain"
|
||||
}
|
||||
},
|
||||
"adVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the AD VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS2"
|
||||
},
|
||||
"sqlVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the SQL VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS2"
|
||||
},
|
||||
"spVMSize": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The size of the VM Created"
|
||||
},
|
||||
"defaultValue": "Standard_DS3"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The FQDN of the AD Domain created "
|
||||
},
|
||||
"defaultValue": "contoso.local"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account name"
|
||||
},
|
||||
"defaultValue": "sqlservice"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SQL Server Service account password"
|
||||
}
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Setup account name"
|
||||
},
|
||||
"defaultValue": "sp_setup"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Setup account password"
|
||||
}
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm account name"
|
||||
},
|
||||
"defaultValue": "sp_farm"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm account password"
|
||||
}
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Farm Passphrase"
|
||||
}
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The SharePoint Content Site Template Name"
|
||||
},
|
||||
"defaultValue": "STS#0"
|
||||
},
|
||||
"spDNSPrefix": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "The DNS Prefix for the SharePoint Public IP Address"
|
||||
}
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"artifactsBaseUrl": "",
|
||||
"description": "URL to acquire other templates"
|
||||
},
|
||||
"defaultValue": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/sharepoint-three-vm"
|
||||
},
|
||||
"spPublicIPNewOrExisting": {
|
||||
"type": "string",
|
||||
"defaultValue": "new",
|
||||
"allowedValues": [
|
||||
"new",
|
||||
"existing"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "Indicates whether the SharePoint farm's IP is new or existing"
|
||||
}
|
||||
},
|
||||
"spPublicIPRGName": {
|
||||
"type": "string",
|
||||
"defaultValue": "",
|
||||
"metadata": {
|
||||
"description": "Resource Group containing existing public IP for SharePoint"
|
||||
}
|
||||
},
|
||||
"sppublicIPAddressName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of existing public IP resource for SharePoint"
|
||||
}
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name prefix of the new storage account created to store the VMs disks"
|
||||
}
|
||||
},
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"Premium_LRS",
|
||||
"Standard_LRS",
|
||||
"Standard_GRS"
|
||||
|
||||
],
|
||||
"metadata": {
|
||||
"description": "The type of the Storage Account created"
|
||||
},
|
||||
"defaultValue": "Premium_LRS"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"assetLocation":"[concat(parameters('baseUrl'),'/dsc')]",
|
||||
"configDatabaseName": "SP_Config",
|
||||
"administrationContentDatabaseName": "SP_AdminContent",
|
||||
"contentDatabaseName": "spARM_Content",
|
||||
"adVMName": "[concat(parameters('sharepointFarmName'),'-ad')]",
|
||||
"sqlVMName": "[concat(parameters('sharepointFarmName'),'-sql')]",
|
||||
"spVMName": "[concat(parameters('sharepointFarmName'),'-sp')]",
|
||||
"LBFE": "LBFE",
|
||||
"LBBE": "LBBE",
|
||||
"RDPNAT": "RDP",
|
||||
"spWebNAT": "spWeb",
|
||||
"spCANAT": "spCentralAdmin",
|
||||
"adSubnetName": "adSubnet",
|
||||
"sqlSubnetName": "sqlSubnet",
|
||||
"spSubnetName": "spSubnet",
|
||||
"adNicName": "adNic",
|
||||
"sqlNicName": "sqlNic",
|
||||
"spNicName": "spNic",
|
||||
"VnetID": "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworkName'))]",
|
||||
"adSubnetRef": "[concat(variables('VnetID'),'/subnets/',variables('adSubnetName'))]",
|
||||
"sqlSubnetRef": "[concat(variables('VnetID'),'/subnets/',variables('sqlSubnetName'))]",
|
||||
"spSubnetRef": "[concat(variables('VnetID'),'/subnets/',variables('spSubnetName'))]",
|
||||
"adNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('adNicName'))]",
|
||||
"sqlNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('sqlNicName'))]",
|
||||
"spNicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('spNicName'))]",
|
||||
"adLBName": "adLoadBalancer",
|
||||
"sqlLBName": "sqlLoadBalancer",
|
||||
"spLBName": "spLoadBalancer",
|
||||
"adIPConfigID": "[concat(variables('adNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"adlbID": "[resourceId('Microsoft.Network/loadBalancers',variables('adLBName'))]",
|
||||
"adlbFEConfigID": "[concat(variables('adlbID'),'/frontendIPConfigurations/',variables('LBFE'))]",
|
||||
"adRDPNATRuleID": "[concat(variables('adlbID'),'/inboundNatRules/',variables('RDPNAT'))]",
|
||||
"adBEAddressPoolID": "[concat(variables('adlbID'),'/backendAddressPools/',variables('LBBE'))]",
|
||||
"sqlIPConfigID": "[concat(variables('sqlNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"sqllbID": "[resourceId('Microsoft.Network/loadBalancers',variables('sqlLBName'))]",
|
||||
"sqllbFEConfigID": "[concat(variables('sqllbID'),'/frontendIPConfigurations/',variables('LBFE'))]",
|
||||
"sqlRDPNATRuleID": "[concat(variables('sqllbID'),'/inboundNatRules/',variables('RDPNAT'))]",
|
||||
"sqlBEAddressPoolID": "[concat(variables('sqllbID'),'/backendAddressPools/',variables('LBBE'))]",
|
||||
"spIPConfigID": "[concat(variables('spNicId'),'/ipConfigurations/ipconfig1')]",
|
||||
"adDataDisk": "ADDataDisk",
|
||||
"adDataDiskSize": 1000,
|
||||
"sqlDataDisk": "SQLDataDisk",
|
||||
"sqlDataDiskSize": 1000,
|
||||
"sqlLogDisk": "SQLLogDisk",
|
||||
"sqlLogDiskSize": 1000,
|
||||
"spDataDisk": "SPDataDisk",
|
||||
"spDataDiskSize": 1000,
|
||||
"adpublicIPAddressName": "adpublicIP",
|
||||
"sqlpublicIPAddressName": "sqlpublicIP",
|
||||
"spCentralAdminPort": 8080,
|
||||
"spAvailabilitySetName": "spAvailabiltySet",
|
||||
"sqlAvailabilitySetName": "sqlAvailabiltySet",
|
||||
"adAvailabilitySetName": "adAvailabiltySet",
|
||||
"publicIPAddressType": "Dynamic",
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('adSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('adSubnet')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('sqlSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('sqlSubnet')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('spSubnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[parameters('spSubnet')]"
|
||||
}
|
||||
}
|
||||
],
|
||||
"SpPublicIpexisting":"[resourceId(parameters('spPublicIPRGName'),concat('Microsoft.Network','/','publicIPAddresses'),parameters('sppublicIPAddressName'))]",
|
||||
"SpPublicIpnew": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),parameters('sppublicIPAddressName'))]",
|
||||
"adPublicIpResourceId": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),variables('adpublicIPAddressName'))]",
|
||||
"sqlPublicIpResourceId": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),variables('sqlpublicIPAddressName'))]",
|
||||
"spFQDN":"[concat(parameters('spDNSPrefix'),'.',toLower(trim(replace(parameters('location'),' ' ,''))),'.cloudapp.azure.com')]",
|
||||
"splbResourceId":"[resourceId(concat('Microsoft.Network','/','loadBalancers'),variables('spLBName'))]",
|
||||
"adModulesURL": "[concat(variables('assetLocation'),'/CreateADPDC.ps1.zip')]",
|
||||
"adConfigurationFunction": "CreateADPDC.ps1\\CreateADPDC",
|
||||
"sqlConfigureModulesURL": "[concat(variables('assetLocation'),'/ConfigureSqlServer.ps1.zip')]",
|
||||
"sqlConfigurationFunction": "ConfigureSqlServer.ps1\\ConfigureSqlServer",
|
||||
"spConfigureModulesURL": "[concat(variables('assetLocation'),'/ConfigureSharePointServer.ps1.zip')]",
|
||||
"spConfigurationFunction": "ConfigureSharePointServer.ps1\\ConfigureSharePointServer",
|
||||
"sqlPrepareModulesURL": "[concat(variables('assetLocation'),'/PrepareSqlServer.ps1.zip')]",
|
||||
"sqlPreparationFunction": "PrepareSqlServer.ps1\\PrepareSqlServer",
|
||||
"spPrepareModulesURL": "[concat(variables('assetLocation'),'/PrepareSharePointServer.ps1.zip')]",
|
||||
"spPreparationFunction": "PrepareSharePointServer.ps1\\PrepareSharePointServer",
|
||||
"SettingUpSharepointIPUrl": "[concat(parameters('baseUrl'),'/publicip-',parameters('spPublicIPNewOrExisting'),'.json')]",
|
||||
"storageAccountSetupURL": "[concat(parameters('baseUrl'),'/storageAccount.json')]",
|
||||
"creatingPublicIPsUrl": "[concat(parameters('baseUrl'),'/creatingPublicIPs.json')]",
|
||||
"vnetwithDNSTemplateUrl": "[concat(parameters('baseUrl'),'/vnet-with-dns-server.json')]",
|
||||
"CreatingAvailabilitySetsUrl": "[concat(parameters('baseUrl'),'/availabilitySets.json')]",
|
||||
"vnetSetupURL": "[concat(parameters('baseUrl'),'/vnet-new.json')]",
|
||||
"setupLBsUrl": "[concat(parameters('baseUrl'),'/loadBalancers.json')]",
|
||||
"creatingNICSUrl": "[concat(parameters('baseUrl'),'/creatingNICS.json')]",
|
||||
"ProvisioningADDomainControllerUrl": "[concat(parameters('baseUrl'),'/provisioningDomainController.json')]",
|
||||
"ProvisioningSQLUrl": "[concat(parameters('baseUrl'),'/provisioningSQL.json')]",
|
||||
"provisioningSharepointUrl": "[concat(parameters('baseUrl'),'/provisioningSharepoint.json')]",
|
||||
"configuringSQLUrl": "[concat(parameters('baseUrl'),'/configuringSQL.json')]",
|
||||
"configuringSharepointUrl": "[concat(parameters('baseUrl'),'/configuringSharepoint.json')]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "SettingUpStorageAccount",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('storageAccountSetupURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"storageAccountType": {
|
||||
"value": "[parameters('storageAccountType')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpPublicIPs",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('creatingPublicIPsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adpublicIPAddressName": {
|
||||
"value": "[variables('adpublicIPAddressName')]"
|
||||
},
|
||||
"sqlpublicIPAddressName": {
|
||||
"value": "[variables('sqlpublicIPAddressName')]"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"value": "[variables('publicIPAddressType')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CreatingAvailabilitySets",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('CreatingAvailabilitySetsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"value": "[variables('adAvailabilitySetName')]"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"value": "[variables('sqlAvailabilitySetName')]"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"value": "[variables('spAvailabilitySetName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpVirtualNetwork",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetSetupURL')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"value": "[parameters('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[parameters('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpSharepointIP",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('SettingUpSharepointIPUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"publicIpAddressName": {
|
||||
"value": "[parameters('sppublicIPAddressName')]"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"value": "[variables('publicIPAddressType')]"
|
||||
},
|
||||
"dnsPrefix": {
|
||||
"value": "[parameters('spDNSPrefix')]"
|
||||
},
|
||||
"publicIpRGName": {
|
||||
"value": "[parameters('spPublicIPRGName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "SettingUpLoadBalancers",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpSharepointIP",
|
||||
"Microsoft.Resources/deployments/SettingUpPublicIPs"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('setupLBsUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spLBName": {
|
||||
"value": "[variables('spLBName')]"
|
||||
},
|
||||
"sqllbName": {
|
||||
"value": "[variables('sqlLBName')]"
|
||||
},
|
||||
"LBFE": {
|
||||
"value": "[variables('LBFE')]"
|
||||
},
|
||||
"LBBE": {
|
||||
"value": "[variables('LBBE')]"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"value": "[variables('RDPNAT')]"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"value": "[variables('spWebNAT')]"
|
||||
},
|
||||
"spCANAT": {
|
||||
"value": "[variables('spCANAT')]"
|
||||
},
|
||||
"adlbName": {
|
||||
"value": "[variables('adLBName')]"
|
||||
},
|
||||
"spPublicIPResourceId": {
|
||||
"value": "[variables(concat('SpPublicIP',parameters('spPublicIPNewOrExisting')))]"
|
||||
},
|
||||
"adPublicIpResourceId": {
|
||||
"value": "[variables('adPublicIpResourceId')]"
|
||||
},
|
||||
"sqlPublicIpResourceId": {
|
||||
"value": "[variables('sqlPublicIpResourceId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CreatingNetworkInterfaces",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpVirtualNetwork",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers",
|
||||
"Microsoft.Resources/deployments/SettingUpVirtualNetwork"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('creatingNICSUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adNicName": {
|
||||
"value": "[variables('adNicName')]"
|
||||
},
|
||||
"adNicIPAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
},
|
||||
"adSubnetRef": {
|
||||
"value": "[variables('adSubnetRef')]"
|
||||
},
|
||||
"adBEAddressPoolID": {
|
||||
"value": "[variables('adBEAddressPoolID')]"
|
||||
},
|
||||
"adRDPNATRuleID": {
|
||||
"value": "[variables('adRDPNATRuleID')]"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
},
|
||||
"sqlSubnetRef": {
|
||||
"value": "[variables('sqlSubnetRef')]"
|
||||
},
|
||||
"sqlBEAddressPoolID": {
|
||||
"value": "[variables('sqlBEAddressPoolID')]"
|
||||
},
|
||||
"sqlRDPNATRuleID": {
|
||||
"value": "[variables('sqlRDPNATRuleID')]"
|
||||
},
|
||||
"spNicName": {
|
||||
"value": "[variables('spNicName')]"
|
||||
},
|
||||
"spSubnetRef": {
|
||||
"value": "[variables('spSubnetRef')]"
|
||||
},
|
||||
"splbResourceId": {
|
||||
"value": "[variables('splbResourceId')]"
|
||||
},
|
||||
"LBBE": {
|
||||
"value": "[variables('LBBE')]"
|
||||
},
|
||||
"RDPNAT": {
|
||||
"value": "[variables('RDPNAT')]"
|
||||
},
|
||||
"spWebNAT": {
|
||||
"value": "[variables('spWebNAT')]"
|
||||
},
|
||||
"spCANAT": {
|
||||
"value": "[variables('spCANAT')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningADDomainController",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('ProvisioningADDomainControllerUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"adVMName": {
|
||||
"value": "[variables('adVMName')]"
|
||||
},
|
||||
"adVMSize": {
|
||||
"value": "[parameters('adVMSize')]"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"value": "[variables('adAvailabilitySetName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"adDataDisk": {
|
||||
"value": "[variables('adDataDisk')]"
|
||||
},
|
||||
"adNicName": {
|
||||
"value": "[variables('adNicName')]"
|
||||
},
|
||||
"adModulesURL": {
|
||||
"value": "[variables('adModulesURL')]"
|
||||
},
|
||||
"adConfigurationFunction": {
|
||||
"value": "[variables('adConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningSQLServerVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('ProvisioningSQLUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"sqlVMSize": {
|
||||
"value": "[parameters('sqlVMSize')]"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"value": "[variables('sqlAvailabilitySetName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"sqlDataDisk": {
|
||||
"value": "[variables('sqlDataDisk')]"
|
||||
},
|
||||
"sqlLogDisk": {
|
||||
"value": "[variables('sqlLogDisk')]"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"value": "[variables('sqlNicName')]"
|
||||
},
|
||||
"sqlPrepareModulesURL": {
|
||||
"value": "[variables('sqlPrepareModulesURL')]"
|
||||
},
|
||||
"sqlPreparationFunction": {
|
||||
"value": "[variables('sqlPreparationFunction')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ProvisioningSharepointVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/SettingUpStorageAccount",
|
||||
"Microsoft.Resources/deployments/CreatingNetworkInterfaces",
|
||||
"Microsoft.Resources/deployments/CreatingAvailabilitySets",
|
||||
"Microsoft.Resources/deployments/SettingUpLoadBalancers"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('provisioningSharepointUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVMName')]"
|
||||
},
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spPrepareModulesURL": {
|
||||
"value": "[variables('spPrepareModulesURL')]"
|
||||
},
|
||||
"spPreparationFunction": {
|
||||
"value": "[variables('spPreparationFunction')]"
|
||||
},
|
||||
"adminUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"spVMSize": {
|
||||
"value": "[parameters('spVMSize')]"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"value": "[variables('spAvailabilitySetName')]"
|
||||
},
|
||||
"spNicName": {
|
||||
"value": "[variables('spNicName')]"
|
||||
},
|
||||
"spDataDisk": {
|
||||
"value": "[variables('spDataDisk')]"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"value": "[parameters('storageAccountNamePrefix')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": "[parameters('adNicIPAddress')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UpdatingDNStoPrimaryADVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/ProvisioningADDomainController",
|
||||
"Microsoft.Resources/deployments/ProvisioningSQLServerVM",
|
||||
"Microsoft.Resources/deployments/ProvisioningSharepointVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('vnetwithDNSTemplateUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"value": "[parameters('virtualNetworkName')]"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"value": "[parameters('virtualNetworkAddressRange')]"
|
||||
},
|
||||
"subnets": {
|
||||
"value": "[variables('subnets')]"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"value": [
|
||||
"[parameters('adNicIPAddress')]"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ConfiguringSQLServerVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/UpdatingDNStoPrimaryADVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('configuringSQLUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"adminUsername": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sqlConfigureModulesURL": {
|
||||
"value": "[variables('sqlConfigureModulesURL')]"
|
||||
},
|
||||
"sqlConfigurationFunction": {
|
||||
"value": "[variables('sqlConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"sqlServerServiceAccountUserName": {
|
||||
"value": "[parameters('sqlServerServiceAccountUserName')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('sharePointSetupUserAccountUserName')]"
|
||||
},
|
||||
"sqlServerServiceAccountPassword": {
|
||||
"value": "[parameters('sqlServerServiceAccountPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('sharePointSetupUserAccountPassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ConfiguringSharepointVM",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"apiVersion": "2015-01-01",
|
||||
"dependsOn": [
|
||||
"Microsoft.Resources/deployments/ConfiguringSQLServerVM"
|
||||
],
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri": "[variables('configuringSharepointUrl')]",
|
||||
"contentVersion": "1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"value": "[variables('spVMName')]"
|
||||
},
|
||||
"location": {
|
||||
"value": "[parameters('location')]"
|
||||
},
|
||||
"spConfgureModulesURL": {
|
||||
"value": "[variables('spConfigureModulesURL')]"
|
||||
},
|
||||
"spConfigurationFunction": {
|
||||
"value": "[variables('spConfigurationFunction')]"
|
||||
},
|
||||
"domainName": {
|
||||
"value": "[parameters('domainName')]"
|
||||
},
|
||||
"adminUserName": {
|
||||
"value": "[parameters('adminUsername')]"
|
||||
},
|
||||
"sharePointSetupUserAccountUserName": {
|
||||
"value": "[parameters('sharePointSetupUserAccountUserName')]"
|
||||
},
|
||||
"sharePointFarmAccountUserName": {
|
||||
"value": "[parameters('sharePointFarmAccountUserName')]"
|
||||
},
|
||||
"configDatabaseName": {
|
||||
"value": "[variables('configDatabaseName')]"
|
||||
},
|
||||
"administrationContentDatabaseName": {
|
||||
"value": "[variables('administrationContentDatabaseName')]"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"value": "[variables('sqlVMName')]"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]"
|
||||
},
|
||||
"contentDatabaseName": {
|
||||
"value": "[variables('contentDatabaseName')]"
|
||||
},
|
||||
"spSiteTemplateName": {
|
||||
"value": "[parameters('spSiteTemplateName')]"
|
||||
},
|
||||
"adminPassword": {
|
||||
"value": "[parameters('adminPassword')]"
|
||||
},
|
||||
"sharePointSetupUserAccountPassword": {
|
||||
"value": "[parameters('sharePointSetupUserAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmAccountPassword": {
|
||||
"value": "[parameters('sharePointFarmAccountPassword')]"
|
||||
},
|
||||
"sharePointFarmPassphrasePassword": {
|
||||
"value": "[parameters('sharePointFarmPassphrasePassword')]"
|
||||
},
|
||||
"sharepointFarmName": {
|
||||
"value": "[parameters('sharepointFarmName')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"fqdn": {
|
||||
"value": "[variables('spFQDN')]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
|
||||
"type": "QuickStart",
|
||||
"itemDisplayName": "Create a Three VM SharePoint 2019 Deployment",
|
||||
"description": "This template creates three new Azure VMs, each with a public IP address and load balancer and a VNet, it configures one VM to be an AD DC for a new Forest and Domain, one with SQL Server domain joined and a third VM with a SharePoint farm, all VMs have public facing RDP",
|
||||
"summary": "This template creates a SharePoint 2019 farm",
|
||||
"githubUsername": "nikcharlebois",
|
||||
"dateUpdated": "2019-02-19"
|
||||
}
|
|
@ -1,139 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"adVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adVMSize": {
|
||||
"type": "string"
|
||||
},
|
||||
"adAvailabilitySetName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"adDataDisk": {
|
||||
"type": "string"
|
||||
},
|
||||
"adNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adModulesURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"adConfigurationFunction": {
|
||||
"type": "string"
|
||||
},
|
||||
"domainName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('adVMName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('adVMSize')]"
|
||||
},
|
||||
"availabilitySet": {
|
||||
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('adAvailabilitySetName'))]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[parameters('adVMName')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftWindowsServer",
|
||||
"offer": "WindowsServer",
|
||||
"sku": "2019-Datacenter",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/',parameters('adVMName'),'-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/', parameters('adDataDisk'),'-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('adVMName'),'-data-disk1')]",
|
||||
"caching": "None",
|
||||
"createOption": "Empty",
|
||||
"diskSizeGB": "128",
|
||||
"lun": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',parameters('adNicName'))]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"diagnosticsProfile": {
|
||||
"bootDiagnostics": {
|
||||
"enabled": "true",
|
||||
"storageUri": "[concat('http://',parameters('storageAccountNamePrefix'),'2.blob.core.windows.net')]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('adVMName'),'/InstallDC')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Compute/virtualMachines', parameters('adVMName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.76",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"ModulesUrl": "[parameters('adModulesURL')]",
|
||||
"wmfVersion": "latest",
|
||||
"ConfigurationFunction": "[parameters('adConfigurationFunction')]",
|
||||
"Properties": {
|
||||
"DomainName": "[parameters('domainName')]",
|
||||
"AdminCreds": {
|
||||
"UserName": "[parameters('adminUserName')]",
|
||||
"Password": "PrivateSettingsRef:AdminPassword"
|
||||
}
|
||||
}
|
||||
},
|
||||
"protectedSettings": {
|
||||
"Items": {
|
||||
"AdminPassword": "[parameters('adminPassword')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,142 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlVMSize": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlAvailabilitySetName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlDataDisk": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlLogDisk": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlPrepareModulesURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"sqlPreparationFunction": {
|
||||
"type": "string"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('sqlVMName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('sqlVMSize')]"
|
||||
},
|
||||
"availabilitySet": {
|
||||
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('sqlAvailabilitySetName'))]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computername": "[parameters('sqlVMName')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftSQLServer",
|
||||
"offer": "SQL2017-WS2016",
|
||||
"sku": "Standard",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/',parameters('sqlVMName'),'-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/', parameters('sqlDataDisk'), '-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('sqlVMName'),'-data-disk1')]",
|
||||
"createOption": "empty",
|
||||
"caching": "None",
|
||||
"diskSizeGB": 128,
|
||||
"lun": 0
|
||||
},
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/', parameters('sqlLogDisk'), '-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('sqlVMName'),'-log-disk1')]",
|
||||
"createOption": "empty",
|
||||
"caching": "None",
|
||||
"diskSizeGB": 128,
|
||||
"lun": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',parameters('sqlNicName'))]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"diagnosticsProfile": {
|
||||
"bootDiagnostics": {
|
||||
"enabled": "true",
|
||||
"storageUri": "[concat('http://',parameters('storageAccountNamePrefix'),'2.blob.core.windows.net')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('sqlVMName'),'/CreateSQLServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/', parameters('sqlVMName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.76",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"ModulesUrl": "[parameters('sqlPrepareModulesURL')]",
|
||||
"wmfVersion": "latest",
|
||||
"ConfigurationFunction": "[parameters('sqlPreparationFunction')]",
|
||||
"Properties": {
|
||||
"DNSServer": "[parameters('DNSServerAddress')]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {}
|
||||
}
|
|
@ -1,128 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"spVMName": {
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"spPrepareModulesURL": {
|
||||
"type": "string"
|
||||
},
|
||||
"spPreparationFunction": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminUserName": {
|
||||
"type": "string"
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring"
|
||||
},
|
||||
"spVMSize": {
|
||||
"type": "string"
|
||||
},
|
||||
"spAvailabilitySetName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spNicName": {
|
||||
"type": "string"
|
||||
},
|
||||
"spDataDisk": {
|
||||
"type": "string"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[parameters('spVMName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[parameters('spVMSize')]"
|
||||
},
|
||||
"availabilitySet": {
|
||||
"id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('spAvailabilitySetName'))]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[parameters('spVMName')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "MicrosoftSharePoint",
|
||||
"offer": "MicrosoftSharePointServer",
|
||||
"sku": "2019",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"name": "osdisk",
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/',parameters('spVMName'),'-osdisk.vhd')]"
|
||||
},
|
||||
"caching": "ReadWrite",
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"vhd": {
|
||||
"uri": "[concat('http://',parameters('storageAccountNamePrefix'),'1.blob.core.windows.net/vhds/',parameters('spVMName'),'-', parameters('spDataDisk'),'-1.vhd')]"
|
||||
},
|
||||
"name": "[concat(parameters('spVMName'),'-data-disk1')]",
|
||||
"createOption": "empty",
|
||||
"caching": "None",
|
||||
"diskSizeGB": 128,
|
||||
"lun": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',parameters('spNicName'))]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"diagnosticsProfile": {
|
||||
"bootDiagnostics": {
|
||||
"enabled": "true",
|
||||
"storageUri": "[concat('http://',parameters('storageAccountNamePrefix'),'2.blob.core.windows.net')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||
"name": "[concat(parameters('spVMName'),'/ConfigureSPServer')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"dependsOn": [
|
||||
"[parameters('spVMName')]"
|
||||
],
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publisher": "Microsoft.Powershell",
|
||||
"type": "DSC",
|
||||
"typeHandlerVersion": "2.76",
|
||||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {
|
||||
"ModulesUrl": "[parameters('spPrepareModulesURL')]",
|
||||
"wmfVersion": "latest",
|
||||
"ConfigurationFunction": "[parameters('spPreparationFunction')]",
|
||||
"Properties": {
|
||||
"DNSServer": "[parameters('DNSServerAddress')]"
|
||||
}
|
||||
},
|
||||
"protectedSettings": null
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIPAddressName": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"type": "string"
|
||||
},
|
||||
"dnsPrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIpRGName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"publicIpId": "[resourceId(parameters('publicIpRGName'),concat('Microsoft.Network','/','publicIPAddresses'),parameters('publicIPAddressName'))]"
|
||||
},
|
||||
"resources": [],
|
||||
"outputs": {
|
||||
"publicIpId": {
|
||||
"value": "[variables('publicIpId')]",
|
||||
"type": "string"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[reference(variables('publicIpId'),'2015-06-15').dnsSettings.fqdn]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIPAddressName": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIPAddressType": {
|
||||
"type": "string"
|
||||
},
|
||||
"dnsPrefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"publicIpRGName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-06-15",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[parameters('publicIPAddressName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]",
|
||||
"dnsSettings": {
|
||||
"domainNameLabel": "[parameters('dnsPrefix')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"publicIpId": {
|
||||
"value": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),parameters('publicIPAddressName'))]",
|
||||
"type": "string"
|
||||
},
|
||||
"fqdn": {
|
||||
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',parameters('publicIPAddressName')),'2015-06-15').dnsSettings.fqdn]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"storageAccountNamePrefix": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"Description": "The name of the new storage account created to store the VMs disks"
|
||||
}
|
||||
},
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"Premium_LRS",
|
||||
"Standard_LRS",
|
||||
"Standard_GRS"
|
||||
],
|
||||
"metadata": {
|
||||
"Description": "The type of the Storage Account created"
|
||||
},
|
||||
"defaultValue": "Premium_LRS"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[concat(parameters('storageAccountNamePrefix'),'1')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"accountType": "[parameters('storageAccountType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[concat(parameters('storageAccountNamePrefix'),'2')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"accountType": "Standard_LRS"
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"storageAccountId": {
|
||||
"value": "[concat(resourceId('Microsoft.Storage/StorageAccounts',parameters('storageAccountNamePrefix')),'1')]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string"
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"type": "string"
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"type": "string"
|
||||
},
|
||||
"subnets": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[parameters('virtualNetworkName')]",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[parameters('virtualNetworkAddressRange')]"
|
||||
]
|
||||
},
|
||||
"subnets": "[parameters('subnets')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"Description": "The region to deploy the resources into"
|
||||
}
|
||||
},
|
||||
"virtualNetworkName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"Description": "The name of the Virtual Network"
|
||||
}
|
||||
},
|
||||
"virtualNetworkAddressRange": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"Description": "The address range of the VNET in CIDR format"
|
||||
},
|
||||
"defaultValue": "10.0.0.0/16"
|
||||
},
|
||||
"subnets": {
|
||||
"type": "array",
|
||||
"metadata": {
|
||||
"Description": "The subnet definition for the VNET"
|
||||
}
|
||||
},
|
||||
"DNSServerAddress": {
|
||||
"type": "array",
|
||||
"metadata": {
|
||||
"Description": "The DNS address(es) of the DNS Server(s) used by the VNET"
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"name": "[parameters('virtualNetworkName')]",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2015-06-15",
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[parameters('virtualNetworkAddressRange')]"
|
||||
]
|
||||
},
|
||||
"dhcpOptions": {
|
||||
"dnsServers": "[parameters('DNSServerAddress')]"
|
||||
},
|
||||
"subnets": "[parameters('subnets')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче