|
112 | 112 | }, |
113 | 113 | "variables": { |
114 | 114 | "const_addressPrefix": "10.0.0.0/16", |
| 115 | + "const_globalResourceNameSuffix": "[uniqueString(parameters('guidValue'))]", |
115 | 116 | "const_hyphen": "-", |
116 | 117 | "const_imageOffer": "[concat('weblogic',variables('const_hyphen'), split(variables('name_linuxImageOfferSKU'),variables('const_hyphen'))[1],variables('const_hyphen'),split(variables('name_linuxImageOfferSKU'),variables('const_hyphen'))[2],variables('const_hyphen'),split(variables('name_linuxImageOfferSKU'),variables('const_hyphen'))[3],if(parameters('usePreviewImage'),'-preview',''))]", |
117 | 118 | "const_imagePublisher": "oracle", |
|
133 | 134 | "const_vmSize": "[parameters('vmSize')]", |
134 | 135 | "name_linuxImageOfferSKU": "[first(split(parameters('skuUrnVersion'), ';'))]", |
135 | 136 | "name_linuxImageVersion": "[last(split(parameters('skuUrnVersion'),';'))]", |
136 | | - "name_networkSecurityGroup": "[concat(parameters('dnsLabelPrefix'), '-nsg')]", |
137 | | - "name_nic": "olvm_NIC", |
138 | | - "name_publicIPAddress": "olvm_PublicIP", |
139 | | - "name_storageAccount": "[concat(take(replace(parameters('guidValue'),'-',''),6),'olvm')]", |
| 137 | + "name_networkSecurityGroup": "[concat(parameters('dnsLabelPrefix'), '-nsg_', variables('const_globalResourceNameSuffix'))]", |
| 138 | + "name_nic": "[concat('olvm_NIC_', variables('const_globalResourceNameSuffix'))]", |
| 139 | + "name_publicIPAddress": "[concat('olvm_PublicIP_', variables('const_globalResourceNameSuffix'))]", |
| 140 | + "name_storageAccount": "[concat('olvmstg', variables('const_globalResourceNameSuffix'))]", |
140 | 141 | "name_subnet": "Subnet", |
141 | | - "name_virtualNetwork": "olvm_VNET", |
| 142 | + "name_virtualNetwork": "[concat('olvm_VNET_', variables('const_globalResourceNameSuffix'))]", |
| 143 | + "name_vmName": "[concat(parameters('vmName'), variables('const_globalResourceNameSuffix'))]", |
142 | 144 | "ref_networkSecurityGroup": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('name_networkSecurityGroup'))]", |
143 | 145 | "ref_subnet": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('name_virtualNetwork'), variables('name_subnet'))]" |
144 | 146 | }, |
|
285 | 287 | } |
286 | 288 | ], |
287 | 289 | "dnsSettings": { |
288 | | - "internalDnsNameLabel": "[parameters('vmName')]" |
| 290 | + "internalDnsNameLabel": "[variables('name_vmName')]" |
289 | 291 | } |
290 | 292 | } |
291 | 293 | }, |
292 | 294 | { |
293 | 295 | "apiVersion": "${azure.apiVersionForVirtualMachines}", |
294 | 296 | "type": "Microsoft.Compute/virtualMachines", |
295 | 297 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'), '${identifier.virtualMachines}')]", |
296 | | - "name": "[parameters('vmName')]", |
| 298 | + "name": "[variables('name_vmName')]", |
297 | 299 | "location": "[parameters('location')]", |
298 | 300 | "dependsOn": [ |
299 | 301 | "[resourceId('Microsoft.Storage/storageAccounts/', variables('name_storageAccount'))]", |
|
305 | 307 | "vmSize": "[variables('const_vmSize')]" |
306 | 308 | }, |
307 | 309 | "osProfile": { |
308 | | - "computerName": "[parameters('vmName')]", |
| 310 | + "computerName": "[variables('name_vmName')]", |
309 | 311 | "adminUsername": "[parameters('adminUsername')]", |
310 | 312 | "adminPassword": "[parameters('adminPasswordOrKey')]", |
311 | 313 | "linuxConfiguration": "[if(equals(parameters('authenticationType'), 'password'), json('null'), variables('const_linuxConfiguration'))]" |
|
350 | 352 | "type": "Microsoft.Resources/deployments", |
351 | 353 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
352 | 354 | "dependsOn": [ |
353 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 355 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
354 | 356 | ], |
355 | 357 | "properties": { |
356 | 358 | "mode": "Incremental", |
|
368 | 370 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
369 | 371 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk11-ol91'), bool('true'), bool('false'))]", |
370 | 372 | "dependsOn": [ |
371 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 373 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
372 | 374 | ], |
373 | 375 | "properties": { |
374 | 376 | "mode": "Incremental", |
|
387 | 389 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
388 | 390 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk11-ol87'), bool('true'), bool('false'))]", |
389 | 391 | "dependsOn": [ |
390 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 392 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
391 | 393 | ], |
392 | 394 | "properties": { |
393 | 395 | "mode": "Incremental", |
|
406 | 408 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
407 | 409 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk8-ol91'), bool('true'), bool('false'))]", |
408 | 410 | "dependsOn": [ |
409 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 411 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
410 | 412 | ], |
411 | 413 | "properties": { |
412 | 414 | "mode": "Incremental", |
|
425 | 427 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
426 | 428 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk8-ol87'), bool('true'), bool('false'))]", |
427 | 429 | "dependsOn": [ |
428 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 430 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
429 | 431 | ], |
430 | 432 | "properties": { |
431 | 433 | "mode": "Incremental", |
|
444 | 446 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
445 | 447 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-122140-jdk8-ol91'), bool('true'), bool('false'))]", |
446 | 448 | "dependsOn": [ |
447 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 449 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
448 | 450 | ], |
449 | 451 | "properties": { |
450 | 452 | "mode": "Incremental", |
|
463 | 465 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
464 | 466 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-122140-jdk8-ol87'), bool('true'), bool('false'))]", |
465 | 467 | "dependsOn": [ |
466 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 468 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
467 | 469 | ], |
468 | 470 | "properties": { |
469 | 471 | "mode": "Incremental", |
|
482 | 484 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
483 | 485 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'from.owls-122140-jdk8-ol76'), bool('true'), bool('false'))]", |
484 | 486 | "dependsOn": [ |
485 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 487 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
486 | 488 | ], |
487 | 489 | "properties": { |
488 | 490 | "mode": "Incremental", |
|
501 | 503 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
502 | 504 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk8-ol76'), bool('true'), bool('false'))]", |
503 | 505 | "dependsOn": [ |
504 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 506 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
505 | 507 | ], |
506 | 508 | "properties": { |
507 | 509 | "mode": "Incremental", |
|
520 | 522 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
521 | 523 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk11-ol76'), bool('true'), bool('false'))]", |
522 | 524 | "dependsOn": [ |
523 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 525 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
524 | 526 | ], |
525 | 527 | "properties": { |
526 | 528 | "mode": "Incremental", |
|
539 | 541 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
540 | 542 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-122140-jdk8-rhel87'), bool('true'), bool('false'))]", |
541 | 543 | "dependsOn": [ |
542 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 544 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
543 | 545 | ], |
544 | 546 | "properties": { |
545 | 547 | "mode": "Incremental", |
|
558 | 560 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
559 | 561 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk8-rhel87'), bool('true'), bool('false'))]", |
560 | 562 | "dependsOn": [ |
561 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 563 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
562 | 564 | ], |
563 | 565 | "properties": { |
564 | 566 | "mode": "Incremental", |
|
577 | 579 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
578 | 580 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk11-rhel87'), bool('true'), bool('false'))]", |
579 | 581 | "dependsOn": [ |
580 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 582 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
581 | 583 | ], |
582 | 584 | "properties": { |
583 | 585 | "mode": "Incremental", |
|
596 | 598 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
597 | 599 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-122140-jdk8-rhel76'), bool('true'), bool('false'))]", |
598 | 600 | "dependsOn": [ |
599 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 601 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
600 | 602 | ], |
601 | 603 | "properties": { |
602 | 604 | "mode": "Incremental", |
|
615 | 617 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
616 | 618 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk8-rhel76'), bool('true'), bool('false'))]", |
617 | 619 | "dependsOn": [ |
618 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 620 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
619 | 621 | ], |
620 | 622 | "properties": { |
621 | 623 | "mode": "Incremental", |
|
634 | 636 | "tags": "[funcTags.tagsFilter(parameters('tagsByResource'),'${identifier.resourcesDeployment}')]", |
635 | 637 | "condition": "[if(contains(variables('name_linuxImageOfferSKU'), 'owls-141100-jdk11-rhel76'), bool('true'), bool('false'))]", |
636 | 638 | "dependsOn": [ |
637 | | - "[resourceId('Microsoft.Compute/virtualMachines/', parameters('vmName'))]" |
| 639 | + "[resourceId('Microsoft.Compute/virtualMachines/', variables('name_vmName'))]" |
638 | 640 | ], |
639 | 641 | "properties": { |
640 | 642 | "mode": "Incremental", |
|
0 commit comments