@@ -317,21 +317,15 @@ var const_appGatewaySSLCertOptionHaveCert = 'haveCert'
317
317
var const_appGatewaySSLCertOptionHaveKeyVault = 'haveKeyVault'
318
318
var const_azcliVersion = '2.53.0'
319
319
var const_azureSubjectName = format ('{0}.{1}.{2}' , name_domainLabelforApplicationGateway , location , 'cloudapp.azure.com' )
320
- var const_hasTags = contains (resourceGroup (), 'tags' )
321
- // If there is not tag 'wlsKeyVault' and key vault is created for the following usage:
322
- // * upload custom TLS/SSL certificates for WLS trust and identity.
323
- // * upload custom certificate for gateway frontend TLS/SSL.
324
- // * generate selfsigned certificate for gateway frontend TLS/SSL.
325
- var const_bCreateNewKeyVault = (!const_hasTags || !contains (resourceGroup ().tags , name_tagNameForKeyVault ) || empty (resourceGroup ().tags .wlsKeyVault )) && ((enableCustomSSL && sslConfigurationAccessOption != const_wlsSSLCertOptionKeyVault ) || (enableAppGWIngress && (appGatewayCertificateOption != const_appGatewaySSLCertOptionHaveKeyVault )))
326
320
var const_bCreateStorageAccount = (createAKSCluster || !const_hasStorageAccount ) && const_enablePV
327
321
var const_bValidateApplications = validateApplications && (length (appPackageUrls ) > 0 )
328
322
var const_createNewAcr = useOracleImage && createACR
329
323
var const_defaultKeystoreType = 'PKCS12'
330
324
var const_enableNetworking = (length (lbSvcValues ) > 0 ) || enableAppGWIngress
331
325
var const_enablePV = enableCustomSSL || enableAzureFileShare
326
+ var const_fileShareName = 'weblogic-${uniqueString (utcValue )}'
332
327
var const_hasStorageAccount = !createAKSCluster && queryStorageAccount .outputs .storageAccount != 'null'
333
328
var const_identityKeyStoreType = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultCustomIdentityKeyStoreType : sslUploadedCustomIdentityKeyStoreType
334
- var const_keyvaultNameFromTag = const_hasTags && contains (resourceGroup ().tags , name_tagNameForKeyVault ) ? resourceGroup ().tags .wlsKeyVault : ''
335
329
var const_showAdminConsoleExUrl = (length (lbSvcValues ) > 0 ) || (enableAppGWIngress && appgwForAdminServer )
336
330
var const_showRemoteAdminConsoleExUrl = ((length (lbSvcValues ) > 0 ) || (enableAppGWIngress && appgwForRemoteConsole )) && !enableCustomSSL
337
331
var const_showRemoteAdminConsoleSecuredExUrl = ((length (lbSvcValues ) > 0 ) || (enableAppGWIngress && appgwForRemoteConsole )) && enableCustomSSL
@@ -346,14 +340,12 @@ var name_dnsNameforApplicationGateway = '${dnsNameforApplicationGateway}${take(u
346
340
var name_domainLabelforApplicationGateway = take ('${name_dnsNameforApplicationGateway }-${toLower (name_rgNameWithoutSpecialCharacter )}-${toLower (wlsDomainName )}' , 63 )
347
341
var name_identityKeyStoreDataSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultCustomIdentityKeyStoreDataSecretName : 'myIdentityKeyStoreData'
348
342
var name_identityKeyStorePswSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultCustomIdentityKeyStorePassPhraseSecretName : 'myIdentityKeyStorePsw'
349
- var name_keyVaultName = empty ( const_keyvaultNameFromTag ) ? '${take ('wls-kv${uniqueString (utcValue )}' , 24 )}' : resourceGroup (). tags . wlsKeyVault
343
+ var name_keyVaultName = '${take ('wls-kv${uniqueString (utcValue )}' , 24 )}'
350
344
var name_privateKeyAliasSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultPrivateKeyAliasSecretName : 'privateKeyAlias'
351
345
var name_privateKeyPswSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultPrivateKeyPassPhraseSecretName : 'privateKeyPsw'
352
346
var name_rgNameWithoutSpecialCharacter = replace (replace (replace (replace (resourceGroup ().name , '.' , '' ), '(' , '' ), ')' , '' ), '_' , '' ) // remove . () _ from resource group name
353
347
var name_rgKeyvaultForWLSSSL = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultResourceGroup : resourceGroup ().name
354
348
var name_storageAccountName = const_hasStorageAccount ? queryStorageAccount .outputs .storageAccount : 'wls${uniqueString (utcValue )}'
355
- var name_tagNameForKeyVault = 'wlsKeyVault'
356
- var name_tagNameForStorageAccount = 'wlsStorageAccount'
357
349
var name_trustKeyStoreDataSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultCustomTrustKeyStoreDataSecretName : 'myTrustKeyStoreData'
358
350
var name_trustKeyStorePswSecret = (sslConfigurationAccessOption == const_wlsSSLCertOptionKeyVault ) ? sslKeyVaultCustomTrustKeyStorePassPhraseSecretName : 'myTrustKeyStorePsw'
359
351
var ref_wlsDomainDeployment = _enableCustomSSL ? wlsDomainWithCustomSSLDeployment : wlsDomainDeployment
@@ -589,6 +581,7 @@ module wlsDomainDeployment 'modules/setupWebLogicCluster.bicep' = if (!enableCus
589
581
enableClusterT3Tunneling : enableClusterT3Tunneling
590
582
enablePswlessConnection : enablePswlessConnection
591
583
enablePV : const_enablePV
584
+ fileShareName : const_fileShareName
592
585
identity : obj_uamiForDeploymentScript
593
586
isSSOSupportEntitled : isSSOSupportEntitled
594
587
location : location
@@ -660,6 +653,7 @@ module wlsDomainWithCustomSSLDeployment 'modules/setupWebLogicCluster.bicep' = i
660
653
enableClusterT3Tunneling : enableClusterT3Tunneling
661
654
enablePswlessConnection : enablePswlessConnection
662
655
enablePV : const_enablePV
656
+ fileShareName : const_fileShareName
663
657
identity : obj_uamiForDeploymentScript
664
658
isSSOSupportEntitled : isSSOSupportEntitled
665
659
location : location
@@ -698,22 +692,6 @@ module wlsDomainWithCustomSSLDeployment 'modules/setupWebLogicCluster.bicep' = i
698
692
]
699
693
}
700
694
701
- /*
702
- * Update tags to save key vault name and storage account name that are used for current configuration
703
- */
704
- resource applyTags 'Microsoft.Resources/tags@${azure .apiVersionForTags }' = {
705
- name : 'default'
706
- properties : {
707
- tags : {
708
- '${name_tagNameForKeyVault }' : const_bCreateNewKeyVault ? name_keyVaultName : const_keyvaultNameFromTag
709
- '${name_tagNameForStorageAccount }' : (const_bCreateStorageAccount || const_hasStorageAccount ) ? name_storageAccountName : ''
710
- }
711
- }
712
- dependsOn : [
713
- appgwSecretDeployment
714
- ]
715
- }
716
-
717
695
module networkingDeployment 'modules/networking.bicep' = if (const_enableNetworking ) {
718
696
name : 'networking-deployment'
719
697
params : {
0 commit comments