|
231 | 231 | "type": "string",
|
232 | 232 | "defaultValue": "[newGuid()]"
|
233 | 233 | },
|
| 234 | + "guidTag": { |
| 235 | + "type": "string", |
| 236 | + "defaultValue": "[newGuid()]" |
| 237 | + }, |
234 | 238 | "hasDNSZones": {
|
235 | 239 | "type": "bool",
|
236 | 240 | "defaultValue": false,
|
|
505 | 509 | "const_appGatewaySSLCertOptionGenerateCert": "generateCert",
|
506 | 510 | "const_azureSubjectName": "[format('{0}.{1}.{2}', variables('name_domainLabelforApplicationGateway'), parameters('location'),'cloudapp.azure.com')]",
|
507 | 511 | "const_globalResourceNameSuffix": "[uniqueString(parameters('guidValue'))]",
|
| 512 | + "const_guidTag": "[uniqueString(parameters('guidTag'))]", |
508 | 513 | "const_vmSize": "[parameters('vmSize')]",
|
509 | 514 | "const_vmSizeCoherence": "[parameters('vmSizeSelectForCoherence')]",
|
510 | 515 | "name_adminVM": "[concat(parameters('adminVMNamePrefix'), variables('const_globalResourceNameSuffix'), 'VM')]",
|
|
517 | 522 | "name_dnszonesLinkedTemplateName": "dnszonesTemplate.json",
|
518 | 523 | "name_domainLabelforApplicationGateway": "[take(concat(variables('name_dnsNameforApplicationGateway'),'-',toLower(resourceGroup().name),'-',toLower(parameters('wlsDomainName'))),63)]",
|
519 | 524 | "name_keyVaultLinkedTemplateName": "_keyvaultWithNewCertTemplate.json",
|
| 525 | + "name_postDeploymentUAMIRolesTemplate" : "postDeploymentUAMIRolesTemplate.json", |
| 526 | + "name_postDeploymentTemplate": "postDeploymentTemplate.json", |
520 | 527 | "name_networkSecurityGroup": "[concat(parameters('dnsLabelPrefix'), '-nsg-', variables('const_globalResourceNameSuffix'))]",
|
521 | 528 | "name_nsgLinkedTemplateName": "nsgNestedTemplate.json",
|
522 | 529 | "name_managedVMNamePrefix": "[concat(parameters('managedServerPrefix'), variables('const_globalResourceNameSuffix'))]",
|
523 | 530 | "clusterTemplateRef": "[concat('cluster',if(parameters('enableCustomSSL'),'CustomSSL',''),'LinkedTemplate')]",
|
524 | 531 | "name_clusterTemplate": "clusterLinkedTemplate",
|
525 | 532 | "name_clusterCustomSSLTemplate": "clusterCustomSSLLinkedTemplate",
|
| 533 | + "name_uamiForPostDeploymentScript" : "uamiForPostDeploymentScript", |
526 | 534 | "name_keyVaultName": "[concat('wls-kv-', variables('const_globalResourceNameSuffix'))]",
|
527 | 535 | "name_secretName": "mySelfSignedCertificate",
|
528 | 536 | // If adding a new resource, add the resource identifier to the array below
|
|
607 | 615 | "_globalResourceNameSuffix": {
|
608 | 616 | "value": "[variables('const_globalResourceNameSuffix')]"
|
609 | 617 | },
|
| 618 | + "const_guidTag":{ |
| 619 | + "value": "[variables('const_guidTag')]" |
| 620 | + }, |
610 | 621 | "adminPasswordOrKey": {
|
611 | 622 | "value": "[parameters('adminPasswordOrKey')]"
|
612 | 623 | },
|
|
728 | 739 | "_globalResourceNameSuffix": {
|
729 | 740 | "value": "[variables('const_globalResourceNameSuffix')]"
|
730 | 741 | },
|
| 742 | + "const_guidTag":{ |
| 743 | + "value": "[variables('const_guidTag')]" |
| 744 | + }, |
731 | 745 | "adminPasswordOrKey": {
|
732 | 746 | "value": "[parameters('adminPasswordOrKey')]"
|
733 | 747 | },
|
|
1391 | 1405 | }
|
1392 | 1406 | }
|
1393 | 1407 | },
|
| 1408 | + { |
| 1409 | + "type": "Microsoft.Resources/deployments", |
| 1410 | + "apiVersion": "${azure.apiVersionForDeployment}", |
| 1411 | + "name": "[variables('name_uamiForPostDeploymentScript')]", |
| 1412 | + "condition": "[equals(parameters('virtualNetworkNewOrExisting'), 'existing')]", |
| 1413 | + "tags": "[variables('obj_tagsByResources')['${identifier.resourcesDeployment}']]", |
| 1414 | + "dependsOn": [ |
| 1415 | + "[resourceId('Microsoft.Resources/deployments', variables('clusterTemplateRef'))]", |
| 1416 | + "[resourceId('Microsoft.Resources/deployments', 'keyVaultwithSelfSignedAppGatewaySSLCert')]", |
| 1417 | + "[resourceId('Microsoft.Resources/deployments', 'appGatewayLinkedTemplate')]", |
| 1418 | + "[resourceId('Microsoft.Resources/deployments', 'dnszonesLinkedTemplate')]", |
| 1419 | + "[resourceId('Microsoft.Resources/deployments', 'dbLinkedTemplate')]", |
| 1420 | + "[resourceId('Microsoft.Resources/deployments', 'coherenceTemplate')]", |
| 1421 | + "[resourceId('Microsoft.Resources/deployments', 'coherenceTemplateWithCustomSSL')]" |
| 1422 | + ], |
| 1423 | + "properties": { |
| 1424 | + "mode": "Incremental", |
| 1425 | + "templateLink": { |
| 1426 | + "uri": "[uri(parameters('_artifactsLocation'), concat('nestedtemplates/', variables('name_postDeploymentUAMIRolesTemplate')))]", |
| 1427 | + "contentVersion": "1.0.0.0" |
| 1428 | + }, |
| 1429 | + "parameters": { |
| 1430 | + "location": { |
| 1431 | + "value": "[parameters('location')]" |
| 1432 | + }, |
| 1433 | + "_globalResourceNameSuffix": { |
| 1434 | + "value": "[variables('const_globalResourceNameSuffix')]" |
| 1435 | + }, |
| 1436 | + "tagsByResource": { |
| 1437 | + "value": "[variables('obj_tagsByResources')]" |
| 1438 | + } |
| 1439 | + } |
| 1440 | + } |
| 1441 | + }, |
| 1442 | + { |
| 1443 | + "type": "Microsoft.Resources/deployments", |
| 1444 | + "apiVersion": "${azure.apiVersionForDeployment}", |
| 1445 | + "name": "postDeplyment", |
| 1446 | + "condition": "[equals(parameters('virtualNetworkNewOrExisting'), 'existing')]", |
| 1447 | + "tags": "[variables('obj_tagsByResources')['${identifier.resourcesDeployment}']]", |
| 1448 | + "dependsOn": [ |
| 1449 | + "[resourceId('Microsoft.Resources/deployments', variables('clusterTemplateRef'))]", |
| 1450 | + "[resourceId('Microsoft.Resources/deployments', 'keyVaultwithSelfSignedAppGatewaySSLCert')]", |
| 1451 | + "[resourceId('Microsoft.Resources/deployments', 'appGatewayLinkedTemplate')]", |
| 1452 | + "[resourceId('Microsoft.Resources/deployments', 'dnszonesLinkedTemplate')]", |
| 1453 | + "[resourceId('Microsoft.Resources/deployments', 'dbLinkedTemplate')]", |
| 1454 | + "[resourceId('Microsoft.Resources/deployments', 'coherenceTemplate')]", |
| 1455 | + "[resourceId('Microsoft.Resources/deployments', 'coherenceTemplateWithCustomSSL')]", |
| 1456 | + "[resourceId('Microsoft.Resources/deployments', variables('name_uamiForPostDeploymentScript'))]" |
| 1457 | + |
| 1458 | + ], |
| 1459 | + "properties": { |
| 1460 | + "mode": "Incremental", |
| 1461 | + "templateLink": { |
| 1462 | + "uri": "[uri(parameters('_artifactsLocation'), concat('nestedtemplates/', variables('name_postDeploymentTemplate')))]", |
| 1463 | + "contentVersion": "1.0.0.0" |
| 1464 | + }, |
| 1465 | + "parameters": { |
| 1466 | + "location": { |
| 1467 | + "value": "[parameters('location')]" |
| 1468 | + }, |
| 1469 | + "_globalResourceNameSuffix": { |
| 1470 | + "value": "[variables('const_globalResourceNameSuffix')]" |
| 1471 | + }, |
| 1472 | + "tagsByResource": { |
| 1473 | + "value": "[variables('obj_tagsByResources')]" |
| 1474 | + }, |
| 1475 | + "const_guidTag":{ |
| 1476 | + "value": "[variables('const_guidTag')]" |
| 1477 | + }, |
| 1478 | + "_artifactsLocation": { |
| 1479 | + "value": "[parameters('_artifactsLocation')]" |
| 1480 | + }, |
| 1481 | + "_artifactsLocationSasToken": { |
| 1482 | + "value": "[parameters('_artifactsLocationSasToken')]" |
| 1483 | + }, |
| 1484 | + "userAssignedIdentityResourceId":{ |
| 1485 | + "value": "[reference(variables('name_uamiForPostDeploymentScript'),'${azure.apiVersionForDeployment}').outputs.uamidForPostDeployment.value]" |
| 1486 | + } |
| 1487 | + } |
| 1488 | + } |
| 1489 | + }, |
1394 | 1490 | {
|
1395 | 1491 | "apiVersion": "${azure.apiVersionForDeployment}",
|
1396 | 1492 | "name": "${cluster.end}",
|
|
0 commit comments