Fix AzureStack QuickStartTemplates' Storage account resources to use … (#428)

* Fix AzureStack QuickStartTemplates' Storage account resources to use sku and kind - round2

* Fix AzureStack QuickStartTemplates' Storage account resources to use sku and kind - round3

* Proxy resources don't need to specify api version anymore as the bug is fixed, so remove the api version
This commit is contained in:
Deepa Thomas 2019-04-08 16:25:48 -07:00 коммит произвёл Krishna Nithin
Родитель afc24c98b5
Коммит 9392d98c0c
37 изменённых файлов: 586 добавлений и 568 удалений

Просмотреть файл

@ -914,9 +914,10 @@
], ],
"location": "[variables('location')]", "location": "[variables('location')]",
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('agentpublicAccountName'))]", "name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('agentpublicAccountName'))]",
"properties": { "sku": {
"accountType": "[variables('vmSizesMap')[variables('agentpublicVMSize')].storageAccountType]" "name": "[variables('vmSizesMap')[variables('agentpublicVMSize')].storageAccountType]"
}, },
"kind": "Storage",
"type": "Microsoft.Storage/storageAccounts" "type": "Microsoft.Storage/storageAccounts"
}, },
{ {
@ -1144,9 +1145,10 @@
], ],
"location": "[variables('location')]", "location": "[variables('location')]",
"name": "[variables('masterStorageAccountName')]", "name": "[variables('masterStorageAccountName')]",
"properties": { "sku": {
"accountType": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]" "name": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]"
}, },
"kind": "Storage",
"type": "Microsoft.Storage/storageAccounts" "type": "Microsoft.Storage/storageAccounts"
}, },
{ {
@ -1219,7 +1221,6 @@
"type": "Microsoft.Network/loadBalancers" "type": "Microsoft.Network/loadBalancers"
}, },
{ {
"apiVersion": "2017-10-01",
"copy": { "copy": {
"count": "[variables('masterCount')]", "count": "[variables('masterCount')]",
"name": "masterLbLoopNode" "name": "masterLbLoopNode"
@ -1241,7 +1242,6 @@
"type": "Microsoft.Network/loadBalancers/inboundNatRules" "type": "Microsoft.Network/loadBalancers/inboundNatRules"
}, },
{ {
"apiVersion": "2017-10-01",
"dependsOn": [ "dependsOn": [
"[variables('masterLbID')]" "[variables('masterLbID')]"
], ],

Просмотреть файл

@ -914,9 +914,10 @@
], ],
"location": "[variables('location')]", "location": "[variables('location')]",
"name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('agentpublicAccountName'))]", "name": "[concat(variables('storageAccountPrefixes')[mod(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('storageAccountPrefixes')[div(add(copyIndex(),variables('agentpublicStorageAccountOffset')),variables('storageAccountPrefixesCount'))],variables('agentpublicAccountName'))]",
"properties": { "sku": {
"accountType": "[variables('vmSizesMap')[variables('agentpublicVMSize')].storageAccountType]" "name": "[variables('vmSizesMap')[variables('agentpublicVMSize')].storageAccountType]"
}, },
"kind": "Storage",
"type": "Microsoft.Storage/storageAccounts" "type": "Microsoft.Storage/storageAccounts"
}, },
{ {
@ -1139,9 +1140,10 @@
], ],
"location": "[variables('location')]", "location": "[variables('location')]",
"name": "[variables('masterStorageAccountName')]", "name": "[variables('masterStorageAccountName')]",
"properties": { "sku": {
"accountType": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]" "name": "[variables('vmSizesMap')[variables('masterVMSize')].storageAccountType]"
}, },
"kind": "Storage",
"type": "Microsoft.Storage/storageAccounts" "type": "Microsoft.Storage/storageAccounts"
}, },
{ {
@ -1214,7 +1216,6 @@
"type": "Microsoft.Network/loadBalancers" "type": "Microsoft.Network/loadBalancers"
}, },
{ {
"apiVersion": "2017-10-01",
"copy": { "copy": {
"count": "[variables('masterCount')]", "count": "[variables('masterCount')]",
"name": "masterLbLoopNode" "name": "masterLbLoopNode"
@ -1236,7 +1237,6 @@
"type": "Microsoft.Network/loadBalancers/inboundNatRules" "type": "Microsoft.Network/loadBalancers/inboundNatRules"
}, },
{ {
"apiVersion": "2017-10-01",
"dependsOn": [ "dependsOn": [
"[variables('masterLbID')]" "[variables('masterLbID')]"
], ],

Просмотреть файл

@ -98,9 +98,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]
@ -203,7 +204,6 @@
} }
}, },
{ {
"apiVersion": "2017-10-01",
"type": "Microsoft.Network/loadBalancers/inboundNatRules", "type": "Microsoft.Network/loadBalancers/inboundNatRules",
"name": "[concat(variables('publicLBName'), '/RDP-VM', copyIndex())]", "name": "[concat(variables('publicLBName'), '/RDP-VM', copyIndex())]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",

Просмотреть файл

@ -133,9 +133,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]
@ -238,7 +239,6 @@
} }
}, },
{ {
"apiVersion": "2017-10-01",
"type": "Microsoft.Network/loadBalancers/inboundNatRules", "type": "Microsoft.Network/loadBalancers/inboundNatRules",
"name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]", "name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",

Просмотреть файл

@ -42,7 +42,6 @@
{ {
"type": "Microsoft.Network/dnszones/a", "type": "Microsoft.Network/dnszones/a",
"name": "[concat(parameters('newZoneName'), '/', parameters('newRecordName'))]", "name": "[concat(parameters('newZoneName'), '/', parameters('newRecordName'))]",
"apiVersion": "2016-04-01",
"location": "global", "location": "global",
"dependsOn": [ "dependsOn": [
"[parameters('newZoneName')]" "[parameters('newZoneName')]"

Просмотреть файл

@ -25,8 +25,7 @@
"sku": { "sku": {
"name": "[parameters('storageAccountType')]" "name": "[parameters('storageAccountType')]"
}, },
"kind": "Storage", "kind": "Storage"
"properties": {}
} }
], ],
"outputs": {} "outputs": {}

Просмотреть файл

@ -71,8 +71,7 @@
"sku": { "sku": {
"name": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage", "kind": "Storage"
"properties": {}
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",

Просмотреть файл

@ -95,17 +95,19 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('diagnosticsStorageAccountName')]", "name": "[variables('diagnosticsStorageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('diagnosticsStorageAccountType')]" "name": "[variables('diagnosticsStorageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIpAddresses", "type": "Microsoft.Network/publicIpAddresses",

Просмотреть файл

@ -73,9 +73,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",

Просмотреть файл

@ -102,9 +102,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storage').storageAccounts.name]", "name": "[variables('storage').storageAccounts.name]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storage').storageAccounts.type]" "name": "[variables('storage').storageAccounts.type]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -95,8 +95,7 @@
"sku": { "sku": {
"name": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage", "kind": "Storage"
"properties": {}
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -195,9 +195,10 @@
"tags": { "tags": {
"displayName": "sa" "displayName": "sa"
}, },
"properties": { "sku": {
"accountType": "[parameters('storageAccountType')]" "name": "[parameters('storageAccountType')]"
} },
"kind": "Storage"
} }
] ]
} }

Просмотреть файл

@ -222,9 +222,10 @@
"tags": { "tags": {
"displayName": "sa" "displayName": "sa"
}, },
"properties": { "sku": {
"accountType": "[parameters('storageAccountType')]" "name": "[parameters('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"name": "[concat(variables('linuxNicName'), copyIndex())]", "name": "[concat(variables('linuxNicName'), copyIndex())]",

Просмотреть файл

@ -84,9 +84,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -84,189 +84,190 @@
"loadBalancerProbeName": "[concat('LBHttpProbe', uniqueString(resourceGroup().id))]", "loadBalancerProbeName": "[concat('LBHttpProbe', uniqueString(resourceGroup().id))]",
"loadBalancerNatPoolName": "[concat('LBNatPool', uniqueString(resourceGroup().id))]" "loadBalancerNatPoolName": "[concat('LBNatPool', uniqueString(resourceGroup().id))]"
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"sku": {
"name": "[variables('storageAccountType')]"
},
"kind": "Storage"
},
{
"type": "Microsoft.Network/virtualNetworks",
"name": "[variables('vnetName')]",
"location": "[variables('location')]",
"properties": {
"addressSpace": {
"addressPrefixes": [
"10.0.0.0/16"
]
},
"subnets": [
{
"name": "[variables('subnetName')]",
"properties": { "properties": {
"accountType": "[variables('storageAccountType')]" "addressPrefix": "10.0.0.0/24"
} }
}, }
{ ]
"type": "Microsoft.Network/virtualNetworks", }
"name": "[variables('vnetName')]", },
"location": "[variables('location')]", {
"properties": { "type": "Microsoft.Network/publicIPAddresses",
"addressSpace": { "name": "[variables('publicIPAddressName')]",
"addressPrefixes": [ "location": "[variables('location')]",
"10.0.0.0/16" "properties": {
] "publicIPAllocationMethod": "Dynamic",
}, "dnsSettings": {
"subnets": [ "domainNameLabel": "[variables('vmssDomainName')]"
{
"name": "[variables('subnetName')]",
"properties": {
"addressPrefix": "10.0.0.0/24"
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[variables('location')]",
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[variables('vmssDomainName')]"
}
}
},
{
"type": "Microsoft.Network/loadBalancers",
"name": "[variables('loadBalancerName')]",
"location": "[variables('location')]",
"properties": {
"frontendIPConfigurations": [
{
"name": "[variables('loadBalancerFrontEndName')]",
"properties": {
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('publicIPAddressName'))]"
}
}
}
],
"backendAddressPools": [
{
"name": "[variables('loadBalancerBackendName')]"
}
],
"loadBalancingRules": [
{
"name": "roundRobinLBRule",
"properties": {
"frontendIPConfiguration": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/frontendIPConfigurations/', variables('loadBalancerFrontEndName'))]"
},
"backendAddressPool": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/backendAddressPools/', variables('loadBalancerBackendName'))]"
},
"protocol": "tcp",
"frontendPort": 80,
"backendPort": 80,
"enableFloatingIP": false,
"idleTimeoutInMinutes": 5,
"probe": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/probes/', variables('loadBalancerProbeName'))]"
}
}
}
],
"probes": [
{
"name": "[variables('loadBalancerProbeName')]",
"properties": {
"protocol": "tcp",
"port": 80,
"intervalInSeconds": "5",
"numberOfProbes": "2"
}
}
],
"inboundNatPools": [
{
"name": "[variables('loadBalancerNatPoolName')]",
"properties": {
"frontendIPConfiguration": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/frontendIPConfigurations/', variables('loadBalancerFrontEndName'))]"
},
"protocol": "tcp",
"frontendPortRangeStart": "50000",
"frontendPortRangeEnd": "50019",
"backendPort": "3389"
}
}
]
},
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]"
]
},
{
"type": "Microsoft.Compute/virtualMachineScaleSets",
"sku": {
"name": "[parameters('vmSku')]",
"tier": "Standard",
"capacity": "[parameters('instanceCount')]"
},
"name": "[parameters('vmssName')]",
"location": "[variables('location')]",
"properties": {
"upgradePolicy": {
"mode": "Manual"
},
"virtualMachineProfile": {
"storageProfile": {
"osDisk": {
"vhdContainers": [
"[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('storageAccountContainerName'))]"
],
"name": "[variables('OSDiskName')]",
"caching": "ReadOnly",
"createOption": "FromImage"
},
"imageReference": {
"publisher": "[parameters('osImagePublisher')]",
"offer": "[parameters('osImageOffer')]",
"sku": "[parameters('osImageSku')]",
"version": "latest"
}
},
"osProfile": {
"computerNamePrefix": "[parameters('vmssName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]"
},
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "nic",
"properties": {
"primary": "true",
"ipConfigurations": [
{
"name": "ipconfig",
"properties": {
"subnet": {
"id": "[variables('subnetRef')]"
},
"loadBalancerBackendAddressPools": [
{
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('loadBalancerName'), '/backendAddressPools/', variables('loadBalancerBackEndName'))]"
}
],
"loadBalancerInboundNatPools": [
{
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('loadBalancerName'), '/inboundNatPools/', variables('loadBalancerNatPoolName'))]"
}
]
}
}
]
}
}
]
}
}
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('vnetName'))]",
"[resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName'))]"
]
} }
] }
},
{
"type": "Microsoft.Network/loadBalancers",
"name": "[variables('loadBalancerName')]",
"location": "[variables('location')]",
"properties": {
"frontendIPConfigurations": [
{
"name": "[variables('loadBalancerFrontEndName')]",
"properties": {
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('publicIPAddressName'))]"
}
}
}
],
"backendAddressPools": [
{
"name": "[variables('loadBalancerBackendName')]"
}
],
"loadBalancingRules": [
{
"name": "roundRobinLBRule",
"properties": {
"frontendIPConfiguration": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/frontendIPConfigurations/', variables('loadBalancerFrontEndName'))]"
},
"backendAddressPool": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/backendAddressPools/', variables('loadBalancerBackendName'))]"
},
"protocol": "tcp",
"frontendPort": 80,
"backendPort": 80,
"enableFloatingIP": false,
"idleTimeoutInMinutes": 5,
"probe": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/probes/', variables('loadBalancerProbeName'))]"
}
}
}
],
"probes": [
{
"name": "[variables('loadBalancerProbeName')]",
"properties": {
"protocol": "tcp",
"port": 80,
"intervalInSeconds": "5",
"numberOfProbes": "2"
}
}
],
"inboundNatPools": [
{
"name": "[variables('loadBalancerNatPoolName')]",
"properties": {
"frontendIPConfiguration": {
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName')), '/frontendIPConfigurations/', variables('loadBalancerFrontEndName'))]"
},
"protocol": "tcp",
"frontendPortRangeStart": "50000",
"frontendPortRangeEnd": "50019",
"backendPort": "3389"
}
}
]
},
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]"
]
},
{
"type": "Microsoft.Compute/virtualMachineScaleSets",
"sku": {
"name": "[parameters('vmSku')]",
"tier": "Standard",
"capacity": "[parameters('instanceCount')]"
},
"name": "[parameters('vmssName')]",
"location": "[variables('location')]",
"properties": {
"upgradePolicy": {
"mode": "Manual"
},
"virtualMachineProfile": {
"storageProfile": {
"osDisk": {
"vhdContainers": [
"[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob, variables('storageAccountContainerName'))]"
],
"name": "[variables('OSDiskName')]",
"caching": "ReadOnly",
"createOption": "FromImage"
},
"imageReference": {
"publisher": "[parameters('osImagePublisher')]",
"offer": "[parameters('osImageOffer')]",
"sku": "[parameters('osImageSku')]",
"version": "latest"
}
},
"osProfile": {
"computerNamePrefix": "[parameters('vmssName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]"
},
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "nic",
"properties": {
"primary": "true",
"ipConfigurations": [
{
"name": "ipconfig",
"properties": {
"subnet": {
"id": "[variables('subnetRef')]"
},
"loadBalancerBackendAddressPools": [
{
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('loadBalancerName'), '/backendAddressPools/', variables('loadBalancerBackEndName'))]"
}
],
"loadBalancerInboundNatPools": [
{
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('loadBalancerName'), '/inboundNatPools/', variables('loadBalancerNatPoolName'))]"
}
]
}
}
]
}
}
]
}
}
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('vnetName'))]",
"[resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName'))]"
]
}
]
} }

Просмотреть файл

@ -76,11 +76,11 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[toLower(variables('storageAccountName'))]", "name": "[toLower(variables('storageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[variables('networkSecurityGroupName')]", "name": "[variables('networkSecurityGroupName')]",

Просмотреть файл

@ -76,11 +76,11 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[toLower(variables('storageAccountName'))]", "name": "[toLower(variables('storageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[variables('networkSecurityGroupName')]", "name": "[variables('networkSecurityGroupName')]",

Просмотреть файл

@ -85,9 +85,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[toLower(variables('storageAccountName'))]", "name": "[toLower(variables('storageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
@ -237,7 +238,7 @@
"typeHandlerVersion": "2.0", "typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": "true", "autoUpgradeMinorVersion": "true",
"settings": { "settings": {
"fileUris": ["[concat(parameters('_artifactsLocation'), variables('scriptName'), '.sh')]"], "fileUris": [ "[concat(parameters('_artifactsLocation'), variables('scriptName'), '.sh')]" ],
"commandToExecute": "[concat('sh ', variables('scriptName'), '.sh')]" "commandToExecute": "[concat('sh ', variables('scriptName'), '.sh')]"
} }
} }

Просмотреть файл

@ -78,9 +78,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[toLower(variables('storageAccountName'))]", "name": "[toLower(variables('storageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
@ -226,7 +227,7 @@
"typeHandlerVersion": "2.0", "typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": "true", "autoUpgradeMinorVersion": "true",
"settings": { "settings": {
"fileUris": ["[concat(parameters('_artifactsLocation'), variables('scriptName'), '.sh')]"], "fileUris": [ "[concat(parameters('_artifactsLocation'), variables('scriptName'), '.sh')]" ],
"commandToExecute": "[concat('sh ', variables('scriptName'), '.sh')]" "commandToExecute": "[concat('sh ', variables('scriptName'), '.sh')]"
} }
} }

Просмотреть файл

@ -130,9 +130,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",

Просмотреть файл

@ -166,9 +166,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]

Просмотреть файл

@ -166,9 +166,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]

Просмотреть файл

@ -108,9 +108,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('newStorageAccountName')]", "name": "[parameters('newStorageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[parameters('storageAccountType')]" "name": "[parameters('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",

Просмотреть файл

@ -91,9 +91,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",

Просмотреть файл

@ -84,9 +84,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -96,9 +96,10 @@
"name": "storageLoop", "name": "storageLoop",
"count": "[variables('saCount')]" "count": "[variables('saCount')]"
}, },
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -71,9 +71,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -105,9 +105,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -101,9 +101,10 @@
"name": "storageLoop", "name": "storageLoop",
"count": "[variables('saCount')]" "count": "[variables('saCount')]"
}, },
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",

Просмотреть файл

@ -97,9 +97,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {

Просмотреть файл

@ -147,10 +147,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]
@ -267,8 +267,6 @@
}, },
{ {
"apiVersion": "2017-10-01",
"type": "Microsoft.Network/loadBalancers/inboundNatRules", "type": "Microsoft.Network/loadBalancers/inboundNatRules",
"name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]", "name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",

Просмотреть файл

@ -152,10 +152,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageName')]", "name": "[variables('storageName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}, },
"kind": "Storage",
"dependsOn": [ "dependsOn": [
"[variables('publiclbName')]" "[variables('publiclbName')]"
] ]
@ -272,8 +272,6 @@
}, },
{ {
"apiVersion": "2017-10-01",
"type": "Microsoft.Network/loadBalancers/inboundNatRules", "type": "Microsoft.Network/loadBalancers/inboundNatRules",
"name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]", "name": "[concat(variables('publicLBName'), '/ssh-VM', copyIndex())]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",

Просмотреть файл

@ -102,9 +102,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",

Просмотреть файл

@ -68,9 +68,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]", "name": "[variables('storageAccountName')]",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",

Просмотреть файл

@ -100,267 +100,268 @@
"dnsPrefix": "[tolower(concat('vmdns', resourceGroup().name))]", "dnsPrefix": "[tolower(concat('vmdns', resourceGroup().name))]",
"controllerVmSize": "Standard_A4" "controllerVmSize": "Standard_A4"
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[tolower(variables('uniqueStorageAccountName'))]", "name": "[tolower(variables('uniqueStorageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
}
}, },
{ "kind": "Storage"
"type": "Microsoft.Network/networkSecurityGroups", },
"name": "[variables('nsgName')]", {
"location": "[variables('location')]", "type": "Microsoft.Network/networkSecurityGroups",
"properties": { "name": "[variables('nsgName')]",
"securityRules": [ "location": "[variables('location')]",
{ "properties": {
"name": "nsgsrule", "securityRules": [
"properties": { {
"protocol": "*", "name": "nsgsrule",
"sourcePortRange": "*",
"destinationPortRange": "*",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 101,
"direction": "Inbound"
}
}
]
}
},
{
"type": "Microsoft.Network/virtualNetworks",
"name": "[variables('virtualNetworkName')]",
"location": "[variables('location')]",
"dependsOn": [ "[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]" ],
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('addressPrefix')]"
]
},
"subnets": [
{
"name": "[variables('subnetName')]",
"properties": {
"addressPrefix": "[variables('subnetPrefix')]",
"networkSecurityGroup": {
"id": "[variables('nsgID')]"
}
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[resourceGroup().location]",
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[variables('dnsPrefix')]"
}
},
"dependsOn": [
"[variables('vnetID')]"
]
},
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('vmNicName')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]",
"[concat('Microsoft.Network/publicIPAddresses/',variables('publicIPAddressName'))]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfigpri",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[variables('subnetRef')]"
},
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]"
}
}
}
]
}
},
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[concat(variables('vmNicName'),copyIndex())]",
"location": "[variables('location')]",
"copy": {
"name": "nicLoop",
"count": "[parameters('vmCount')]"
},
"dependsOn": [
"[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfigprivate",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[variables('subnetRef')]"
}
}
}
]
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('vmName')]",
"location": "[variables('location')]",
"dependsOn": [
"vmLoop"
],
"properties": {
"hardwareProfile": {
"vmSize": "[variables('controllerVmSize')]"
},
"osProfile": {
"computerName": "[variables('vmName')]",
"adminUsername": "[variables('vmAdminUsername')]",
"adminPassword": "[parameters('vmAdminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('vmOsSku')]",
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),'/',variables('vmOsDiskName'),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('vmNicName')))]"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob]"
}
}
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(variables('vmName'),copyIndex())]",
"location": "[variables('location')]",
"copy": {
"name": "vmLoop",
"count": "[parameters('vmCount')]",
"mode": "Serial",
"batchSize": "[parameters('batchSize')]"
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/',variables('uniqueStorageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/',variables('vmNicName'),copyIndex())]"
],
"properties": {
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[variables('vmName')]",
"adminUsername": "[variables('vmAdminUsername')]",
"adminPassword": "[parameters('vmAdminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('vmOsSku')]",
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),copyIndex(),'/',concat(variables('vmOsDiskName'),copyIndex()),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('vmNicName'),copyIndex()))]"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob]"
}
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/dscExtension')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/',variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.15",
"autoUpgradeMinorVersion": true,
"settings": {
"modulesUrl": "[variables('modulesUrlVMBootAll')]",
"configurationFunction": "[variables('configurationFunctionVMBootAll')]",
"properties": { "properties": {
"AzureAccountCreds": { "protocol": "*",
"userName": "[parameters('azureAccountUsername')]", "sourcePortRange": "*",
"password": "PrivateSettingsRef:azureAccountPassword" "destinationPortRange": "*",
}, "sourceAddressPrefix": "*",
"TenantId": "[parameters('tenantId')]", "destinationAddressPrefix": "*",
"Location": "[variables('location')]", "access": "Allow",
"VMName": "[variables('vmName')]", "priority": 101,
"VMCount": "[parameters('vmCount')]", "direction": "Inbound"
"VMAdminCreds": {
"userName": "[variables('vmAdminUsername')]",
"password": "PrivateSettingsRef:vmAdminPassword"
},
"AzureStorageAccount": "[variables('uniqueStorageAccountName')]",
"AzureStorageAccessKey": "[listKeys(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')), '2015-06-15').key1]",
"AzureStorageEndpoint": "[reference(resourceId('Microsoft.Storage/storageAccounts', variables('uniqueStorageAccountName')), '2015-06-15').primaryEndpoints['blob']]",
"AzureSubscription": "[subscription().subscriptionId]"
} }
}
]
}
},
{
"type": "Microsoft.Network/virtualNetworks",
"name": "[variables('virtualNetworkName')]",
"location": "[variables('location')]",
"dependsOn": [ "[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]" ],
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('addressPrefix')]"
]
},
"subnets": [
{
"name": "[variables('subnetName')]",
"properties": {
"addressPrefix": "[variables('subnetPrefix')]",
"networkSecurityGroup": {
"id": "[variables('nsgID')]"
}
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[resourceGroup().location]",
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[variables('dnsPrefix')]"
}
},
"dependsOn": [
"[variables('vnetID')]"
]
},
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('vmNicName')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]",
"[concat('Microsoft.Network/publicIPAddresses/',variables('publicIPAddressName'))]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfigpri",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[variables('subnetRef')]"
},
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]"
}
}
}
]
}
},
{
"type": "Microsoft.Network/networkInterfaces",
"name": "[concat(variables('vmNicName'),copyIndex())]",
"location": "[variables('location')]",
"copy": {
"name": "nicLoop",
"count": "[parameters('vmCount')]"
},
"dependsOn": [
"[concat('Microsoft.Network/virtualNetworks/',variables('virtualNetworkName'))]"
],
"properties": {
"ipConfigurations": [
{
"name": "ipconfigprivate",
"properties": {
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id": "[variables('subnetRef')]"
}
}
}
]
}
},
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('vmName')]",
"location": "[variables('location')]",
"dependsOn": [
"vmLoop"
],
"properties": {
"hardwareProfile": {
"vmSize": "[variables('controllerVmSize')]"
},
"osProfile": {
"computerName": "[variables('vmName')]",
"adminUsername": "[variables('vmAdminUsername')]",
"adminPassword": "[parameters('vmAdminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('vmOsSku')]",
"version": "latest"
}, },
"protectedSettings": { "osDisk": {
"items": { "name": "osdisk",
"vmAdminPassword": "[parameters('vmAdminPassword')]", "vhd": {
"azureAccountPassword": "[parameters('azureAccountPassword')]" "uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),'/',variables('vmOsDiskName'),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('vmNicName')))]"
} }
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob]"
} }
} }
} }
] },
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(variables('vmName'),copyIndex())]",
"location": "[variables('location')]",
"copy": {
"name": "vmLoop",
"count": "[parameters('vmCount')]",
"mode": "Serial",
"batchSize": "[parameters('batchSize')]"
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/',variables('uniqueStorageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/',variables('vmNicName'),copyIndex())]"
],
"properties": {
"hardwareProfile": {
"vmSize": "[parameters('vmSize')]"
},
"osProfile": {
"computerName": "[variables('vmName')]",
"adminUsername": "[variables('vmAdminUsername')]",
"adminPassword": "[parameters('vmAdminPassword')]"
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('vmOsSku')]",
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob,variables('uniqueStorageAccountContainerName'),copyIndex(),'/',concat(variables('vmOsDiskName'),copyIndex()),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('vmNicName'),copyIndex()))]"
}
]
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')),providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).primaryEndpoints.blob]"
}
}
}
},
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(variables('vmName'),'/dscExtension')]",
"location": "[variables('location')]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/',variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.Powershell",
"type": "DSC",
"typeHandlerVersion": "2.15",
"autoUpgradeMinorVersion": true,
"settings": {
"modulesUrl": "[variables('modulesUrlVMBootAll')]",
"configurationFunction": "[variables('configurationFunctionVMBootAll')]",
"properties": {
"AzureAccountCreds": {
"userName": "[parameters('azureAccountUsername')]",
"password": "PrivateSettingsRef:azureAccountPassword"
},
"TenantId": "[parameters('tenantId')]",
"Location": "[variables('location')]",
"VMName": "[variables('vmName')]",
"VMCount": "[parameters('vmCount')]",
"VMAdminCreds": {
"userName": "[variables('vmAdminUsername')]",
"password": "PrivateSettingsRef:vmAdminPassword"
},
"AzureStorageAccount": "[variables('uniqueStorageAccountName')]",
"AzureStorageAccessKey": "[listKeys(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')), '2015-06-15').key1]",
"AzureStorageEndpoint": "[reference(resourceId('Microsoft.Storage/storageAccounts', variables('uniqueStorageAccountName')), '2015-06-15').primaryEndpoints['blob']]",
"AzureSubscription": "[subscription().subscriptionId]"
}
},
"protectedSettings": {
"items": {
"vmAdminPassword": "[parameters('vmAdminPassword')]",
"azureAccountPassword": "[parameters('azureAccountPassword')]"
}
}
}
}
]
} }

Просмотреть файл

@ -185,9 +185,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[tolower(variables('uniqueStorageAccountName'))]", "name": "[tolower(variables('uniqueStorageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
@ -236,19 +237,19 @@
} }
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]", "name": "[variables('publicIPAddressName')]",
"apiVersion": "2015-05-01-preview", "apiVersion": "2015-05-01-preview",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
"publicIPAllocationMethod": "Dynamic", "publicIPAllocationMethod": "Dynamic",
"dnsSettings": { "dnsSettings": {
"domainNameLabel": "[variables('dnsPrefix')]" "domainNameLabel": "[variables('dnsPrefix')]"
} }
}, },
"dependsOn": [ "dependsOn": [
"[variables('vnetID')]" "[variables('vnetID')]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
@ -310,7 +311,7 @@
], ],
"properties": { "properties": {
"hardwareProfile": { "hardwareProfile": {
"vmSize": "[parameters('vmSize')]" "vmSize": "[parameters('vmSize')]"
}, },
"osProfile": { "osProfile": {
"computerName": "[variables('vmName')]", "computerName": "[variables('vmName')]",
@ -432,7 +433,7 @@
"AzureStorageAccount": "[variables('uniqueStorageAccountName')]", "AzureStorageAccount": "[variables('uniqueStorageAccountName')]",
"AzureStorageAccessKey": "[listKeys(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')), '2015-06-15').key1]", "AzureStorageAccessKey": "[listKeys(concat('Microsoft.Storage/storageAccounts/', variables('uniqueStorageAccountName')), '2015-06-15').key1]",
"AzureStorageEndpoint": "[reference(resourceId('Microsoft.Storage/storageAccounts', variables('uniqueStorageAccountName')), '2015-06-15').primaryEndpoints['blob']]", "AzureStorageEndpoint": "[reference(resourceId('Microsoft.Storage/storageAccounts', variables('uniqueStorageAccountName')), '2015-06-15').primaryEndpoints['blob']]",
"WaitForIoStormCompletion" : "[parameters('WaitForIoStormCompletion')]", "WaitForIoStormCompletion": "[parameters('WaitForIoStormCompletion')]",
"FixedIops": "[parameters('vmFixedIops')]", "FixedIops": "[parameters('vmFixedIops')]",
"RunFixedIoLatencyTestAfterGoalSeek": "[parameters('vmRunFixedIoLatencyTestAfterGoalSeek')]", "RunFixedIoLatencyTestAfterGoalSeek": "[parameters('vmRunFixedIoLatencyTestAfterGoalSeek')]",
"DataDisks": "[parameters('vmDataDiskCount')]" "DataDisks": "[parameters('vmDataDiskCount')]"

Просмотреть файл

@ -200,9 +200,10 @@
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[tolower(variables('uniqueStorageAccountName'))]", "name": "[tolower(variables('uniqueStorageAccountName'))]",
"location": "[variables('location')]", "location": "[variables('location')]",
"properties": { "sku": {
"accountType": "[variables('storageAccountType')]" "name": "[variables('storageAccountType')]"
} },
"kind": "Storage"
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
@ -380,7 +381,7 @@
"vmSize": "[parameters('vmSize')]" "vmSize": "[parameters('vmSize')]"
}, },
"osProfile": { "osProfile": {
"computerName": "[concat(variables('vmName'),copyIndex())]", "computerName": "[concat(variables('vmName'),copyIndex())]",
"adminUsername": "[variables('vmAdminUsername')]", "adminUsername": "[variables('vmAdminUsername')]",
"adminPassword": "[parameters('vmAdminPassword')]" "adminPassword": "[parameters('vmAdminPassword')]"
}, },