Added SP2019 non-HA (#420)
This commit is contained in:
Родитель
72c81a0640
Коммит
1c37af337e
|
@ -0,0 +1,9 @@
|
|||
# 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.
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"$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": {}
|
||||
}
|
|
@ -0,0 +1,908 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
"$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": {}
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
{
|
||||
"$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')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,374 @@
|
|||
{
|
||||
"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]"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,154 @@
|
|||
{
|
||||
"$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": {}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"$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'))]"
|
||||
}
|
||||
}
|
||||
}
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -0,0 +1,193 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,909 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
|
@ -0,0 +1,139 @@
|
|||
{
|
||||
"$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": {}
|
||||
}
|
|
@ -0,0 +1,142 @@
|
|||
{
|
||||
"$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": {}
|
||||
}
|
|
@ -0,0 +1,128 @@
|
|||
{
|
||||
"$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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"$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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"$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')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"$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')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче