@ -2,6 +2,9 @@
"$schema" : "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json" ,
"$schema" : "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json" ,
"contentVersion" : "1.0.0.0" ,
"contentVersion" : "1.0.0.0" ,
"parameters" : {
"parameters" : {
"prefix" : {
"type" : "string"
} ,
"clusterLocation" : {
"clusterLocation" : {
"type" : "string" ,
"type" : "string" ,
"metadata" : {
"metadata" : {
@ -233,13 +236,16 @@
"publicIPApiVersion" : "2015-06-15" ,
"publicIPApiVersion" : "2015-06-15" ,
"vnetID" : "[resourceId('Microsoft.Network/virtualNetworks',parameters('virtualNetworkName'))]" ,
"vnetID" : "[resourceId('Microsoft.Network/virtualNetworks',parameters('virtualNetworkName'))]" ,
"subnet0Ref" : "[concat(variables('vnetID'),'/subnets/',parameters('subnet0Name'))]" ,
"subnet0Ref" : "[concat(variables('vnetID'),'/subnets/',parameters('subnet0Name'))]" ,
"lbID0" : "[resourceId('Microsoft.Network/loadBalancers', concat('LB','-', parameter s('clusterName'),'-',parameters('vmNodeType0Name')))]" ,
"lbID0" : "[resourceId('Microsoft.Network/loadBalancers', concat('LB','-', variable s('clusterName'),'-',parameters('vmNodeType0Name')))]" ,
"lbIPConfig0" : "[concat(variables('lbID0'),'/frontendIPConfigurations/LoadBalancerIPConfig')]" ,
"lbIPConfig0" : "[concat(variables('lbID0'),'/frontendIPConfigurations/LoadBalancerIPConfig')]" ,
"lbPoolID0" : "[concat(variables('lbID0'),'/backendAddressPools/LoadBalancerBEAddressPool')]" ,
"lbPoolID0" : "[concat(variables('lbID0'),'/backendAddressPools/LoadBalancerBEAddressPool')]" ,
"lbProbeID0" : "[concat(variables('lbID0'),'/probes/FabricGatewayProbe')]" ,
"lbProbeID0" : "[concat(variables('lbID0'),'/probes/FabricGatewayProbe')]" ,
"lbHttpProbeID0" : "[concat(variables('lbID0'),'/probes/FabricHttpGatewayProbe')]" ,
"lbHttpProbeID0" : "[concat(variables('lbID0'),'/probes/FabricHttpGatewayProbe')]" ,
"lbNatPoolID0" : "[concat(variables('lbID0'),'/inboundNatPools/LoadBalancerBEAddressNatPool')]" ,
"lbNatPoolID0" : "[concat(variables('lbID0'),'/inboundNatPools/LoadBalancerBEAddressNatPool')]" ,
"vmStorageAccountName0" : "[toLower(concat(uniqueString(resourceGroup().id), '1', '0' ))]" ,
"vmStorageAccountName0" : "[toLower(concat(uniqueString(resourceGroup().id), '1', '0' ))]" ,
"supportLogStorageAccountName" : "[take(concat(parameters('prefix'), parameters('supportLogStorageAccountName')),22)]" ,
"applicationDiagnosticsStorageAccountName" : "[take(concat(parameters('prefix'), parameters('applicationDiagnosticsStorageAccountName')),22)]" ,
"clusterName" : "[concat(parameters('prefix'), parameters('clusterName'))]" ,
"uniqueStringArray0" : [
"uniqueStringArray0" : [
"[concat(variables('vmStorageAccountName0'), '0')]" ,
"[concat(variables('vmStorageAccountName0'), '0')]" ,
"[concat(variables('vmStorageAccountName0'), '1')]" ,
"[concat(variables('vmStorageAccountName0'), '1')]" ,
@ -252,7 +258,7 @@
{
{
"apiVersion" : "[variables('storageApiVersion')]" ,
"apiVersion" : "[variables('storageApiVersion')]" ,
"type" : "Microsoft.Storage/storageAccounts" ,
"type" : "Microsoft.Storage/storageAccounts" ,
"name" : "[parameter s('supportLogStorageAccountName')]" ,
"name" : "[variable s('supportLogStorageAccountName')]" ,
"location" : "[parameters('computeLocation')]" ,
"location" : "[parameters('computeLocation')]" ,
"dependsOn" : [ ] ,
"dependsOn" : [ ] ,
"properties" : { } ,
"properties" : { } ,
@ -262,13 +268,13 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
"apiVersion" : "[variables('storageApiVersion')]" ,
"apiVersion" : "[variables('storageApiVersion')]" ,
"type" : "Microsoft.Storage/storageAccounts" ,
"type" : "Microsoft.Storage/storageAccounts" ,
"name" : "[parameter s('applicationDiagnosticsStorageAccountName')]" ,
"name" : "[variable s('applicationDiagnosticsStorageAccountName')]" ,
"location" : "[parameters('computeLocation')]" ,
"location" : "[parameters('computeLocation')]" ,
"dependsOn" : [ ] ,
"dependsOn" : [ ] ,
"properties" : { } ,
"properties" : { } ,
@ -278,7 +284,7 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
@ -304,7 +310,7 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
@ -320,13 +326,13 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
"apiVersion" : "[variables('lbApiVersion')]" ,
"apiVersion" : "[variables('lbApiVersion')]" ,
"type" : "Microsoft.Network/loadBalancers" ,
"type" : "Microsoft.Network/loadBalancers" ,
"name" : "[concat('LB','-', parameter s('clusterName'),'-',parameters('vmNodeType0Name'))]" ,
"name" : "[concat('LB','-', variable s('clusterName'),'-',parameters('vmNodeType0Name'))]" ,
"location" : "[parameters('computeLocation')]" ,
"location" : "[parameters('computeLocation')]" ,
"dependsOn" : [
"dependsOn" : [
"[concat('Microsoft.Network/publicIPAddresses/',concat(parameters('lbIPName'),'-','0'))]"
"[concat('Microsoft.Network/publicIPAddresses/',concat(parameters('lbIPName'),'-','0'))]"
@ -600,7 +606,7 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
@ -620,7 +626,7 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
@ -635,9 +641,9 @@
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[2])]" ,
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[2])]" ,
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[3])]" ,
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[3])]" ,
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[4])]" ,
"[concat('Microsoft.Storage/storageAccounts/', variables('uniqueStringArray0')[4])]" ,
"[concat('Microsoft.Network/loadBalancers/', concat('LB','-', parameter s('clusterName'),'-',parameters('vmNodeType0Name')))]" ,
"[concat('Microsoft.Storage/storageAccounts/', parameter s('supportLogStorageAccountName'))]" ,
"[concat('Microsoft.Storage/storageAccounts/', parameter s('applicationDiagnosticsStorageAccountName'))]"
"[concat('Microsoft.Network/loadBalancers/', concat('LB','-', variable s('clusterName'),'-',parameters('vmNodeType0Name')))]" ,
"[concat('Microsoft.Storage/storageAccounts/', variable s('supportLogStorageAccountName'))]" ,
"[concat('Microsoft.Storage/storageAccounts/', variable s('applicationDiagnosticsStorageAccountName'))]"
] ,
] ,
"properties" : {
"properties" : {
"overprovision" : "[parameters('overProvision')]" ,
"overprovision" : "[parameters('overProvision')]" ,
@ -653,12 +659,12 @@
"type" : "ServiceFabricNode" ,
"type" : "ServiceFabricNode" ,
"autoUpgradeMinorVersion" : true ,
"autoUpgradeMinorVersion" : true ,
"protectedSettings" : {
"protectedSettings" : {
"StorageAccountKey1" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameter s('supportLogStorageAccountName')),'2015-05-01-preview').key1]" ,
"StorageAccountKey2" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameter s('supportLogStorageAccountName')),'2015-05-01-preview').key2]"
"StorageAccountKey1" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variable s('supportLogStorageAccountName')),'2015-05-01-preview').key1]" ,
"StorageAccountKey2" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variable s('supportLogStorageAccountName')),'2015-05-01-preview').key2]"
} ,
} ,
"publisher" : "Microsoft.Azure.ServiceFabric" ,
"publisher" : "Microsoft.Azure.ServiceFabric" ,
"settings" : {
"settings" : {
"clusterEndpoint" : "[reference(parameter s('clusterName')).clusterEndpoint]" ,
"clusterEndpoint" : "[reference(variable s('clusterName')).clusterEndpoint]" ,
"nodeTypeRef" : "[parameters('vmNodeType0Name')]" ,
"nodeTypeRef" : "[parameters('vmNodeType0Name')]" ,
"dataPath" : "D:\\\\SvcFab" ,
"dataPath" : "D:\\\\SvcFab" ,
"durabilityLevel" : "Bronze" ,
"durabilityLevel" : "Bronze" ,
@ -674,8 +680,8 @@
"type" : "IaaSDiagnostics" ,
"type" : "IaaSDiagnostics" ,
"autoUpgradeMinorVersion" : true ,
"autoUpgradeMinorVersion" : true ,
"protectedSettings" : {
"protectedSettings" : {
"storageAccountName" : "[parameter s('applicationDiagnosticsStorageAccountName')]" ,
"storageAccountKey" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', parameter s('applicationDiagnosticsStorageAccountName')),'2015-05-01-preview').key1]" ,
"storageAccountName" : "[variable s('applicationDiagnosticsStorageAccountName')]" ,
"storageAccountKey" : "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variable s('applicationDiagnosticsStorageAccountName')),'2015-05-01-preview').key1]" ,
"storageAccountEndPoint" : "https://core.windows.net/"
"storageAccountEndPoint" : "https://core.windows.net/"
} ,
} ,
"publisher" : "Microsoft.Azure.Diagnostics" ,
"publisher" : "Microsoft.Azure.Diagnostics" ,
@ -715,7 +721,7 @@
}
}
}
}
} ,
} ,
"StorageAccount" : "[parameter s('applicationDiagnosticsStorageAccountName')]"
"StorageAccount" : "[variable s('applicationDiagnosticsStorageAccountName')]"
} ,
} ,
"typeHandlerVersion" : "1.5"
"typeHandlerVersion" : "1.5"
}
}
@ -786,16 +792,16 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
} ,
} ,
{
{
"apiVersion" : "2017-07-01-preview" ,
"apiVersion" : "2017-07-01-preview" ,
"type" : "Microsoft.ServiceFabric/clusters" ,
"type" : "Microsoft.ServiceFabric/clusters" ,
"name" : "[parameter s('clusterName')]" ,
"name" : "[variable s('clusterName')]" ,
"location" : "[parameters('clusterLocation')]" ,
"location" : "[parameters('clusterLocation')]" ,
"dependsOn" : [
"dependsOn" : [
"[concat('Microsoft.Storage/storageAccounts/', parameter s('supportLogStorageAccountName'))]"
"[concat('Microsoft.Storage/storageAccounts/', variable s('supportLogStorageAccountName'))]"
] ,
] ,
"properties" : {
"properties" : {
"addonFeatures" : [
"addonFeatures" : [
@ -803,14 +809,14 @@
] ,
] ,
"clientCertificateCommonNames" : [ ] ,
"clientCertificateCommonNames" : [ ] ,
"clientCertificateThumbprints" : [ ] ,
"clientCertificateThumbprints" : [ ] ,
"clusterCodeVersion" : "5.7.207 .9494" ,
"clusterCodeVersion" : "6.0.232 .9494" ,
"clusterState" : "Default" ,
"clusterState" : "Default" ,
"diagnosticsStorageAccountConfig" : {
"diagnosticsStorageAccountConfig" : {
"blobEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', parameter s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.blob]" ,
"blobEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', variable s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.blob]" ,
"protectedAccountKeyName" : "StorageAccountKey1" ,
"protectedAccountKeyName" : "StorageAccountKey1" ,
"queueEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', parameter s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.queue]" ,
"storageAccountName" : "[parameter s('supportLogStorageAccountName')]" ,
"tableEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', parameter s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.table]"
"queueEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', variable s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.queue]" ,
"storageAccountName" : "[variable s('supportLogStorageAccountName')]" ,
"tableEndpoint" : "[reference(concat('Microsoft.Storage/storageAccounts/', variable s('supportLogStorageAccountName')), variables('storageApiVersion')).primaryEndpoints.table]"
} ,
} ,
"fabricSettings" : [ ] ,
"fabricSettings" : [ ] ,
"managementEndpoint" : "[concat('http://',reference(concat(parameters('lbIPName'),'-','0')).dnsSettings.fqdn,':',parameters('nt0fabricHttpGatewayPort'))]" ,
"managementEndpoint" : "[concat('http://',reference(concat(parameters('lbIPName'),'-','0')).dnsSettings.fqdn,':',parameters('nt0fabricHttpGatewayPort'))]" ,
@ -840,13 +846,13 @@
} ,
} ,
"tags" : {
"tags" : {
"resourceType" : "Service Fabric" ,
"resourceType" : "Service Fabric" ,
"clusterName" : "[parameter s('clusterName')]"
"clusterName" : "[variable s('clusterName')]"
}
}
}
}
] ,
] ,
"outputs" : {
"outputs" : {
"clusterProperties" : {
"clusterProperties" : {
"value" : "[reference(parameter s('clusterName'))]" ,
"value" : "[reference(variable s('clusterName'))]" ,
"type" : "object"
"type" : "object"
}
}
}
}