~azure-ts-arm-template: update `apiVersion` in template
Move `apiVersion` to each resource and update to latest version to allow for incremental updates.
MODIFY
azure-ts-arm-template/index.ts
azure-ts-arm-template/index.ts
@@ -31,22 +31,21 @@ const armDeployment = new azure.core.TemplateDeployment("test-dep", {
"storageAccountName": "[concat(uniquestring(resourceGroup().id), 'storage')]",
"publicIPAddressName": "[concat('myPublicIp', uniquestring(resourceGroup().id))]",
"publicIPAddressType": "Dynamic",
- "apiVersion": "2015-06-15",
"dnsLabelPrefix": `${pulumi.getProject()}-${pulumi.getStack()}`,
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('storageAccountName')]",
- "apiVersion": "[variables('apiVersion')]",
+ "apiVersion": "2019-04-01",
"location": "[variables('location')]",
- "properties": {
- "accountType": "[parameters('storageAccountType')]",
+ "sku": {
+ "name": "[parameters('storageAccountType')]",
},
},
{
"type": "Microsoft.Network/publicIPAddresses",
- "apiVersion": "[variables('apiVersion')]",
+ "apiVersion": "2019-09-01",
"name": "[variables('publicIPAddressName')]",
"location": "[variables('location')]",
"properties": {

~azure-ts-arm-template: update `apiVersion` in template (#488)

Move `apiVersion` to each resource and update to latest version to allow for incremental updates.