Skip to content

Commit

Permalink
update condition for storage key vault module to use storageZeroTrust…
Browse files Browse the repository at this point in the history
… variable
  • Loading branch information
JCoreMS committed Nov 15, 2024
1 parent 4becf64 commit 1cf82e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion workload/bicep/deploy-baseline.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ module managementVm './modules/storageAzureFiles/.bicep/managementVm.bicep' = if
]
}
// Key vault for Storage Account(s) with key for each, 1y expiry and rotation policy for FSLogix and MSIX (CMK)
module strgKeyVault '../../avm/1.0.0/res/key-vault/vault/main.bicep' = if ((varCreateStorageDeployment) && (diskZeroTrust)) {
module strgKeyVault '../../avm/1.0.0/res/key-vault/vault/main.bicep' = if ((varCreateStorageDeployment) && (storageZeroTrust)) {
scope: resourceGroup('${avdWorkloadSubsId}', '${varStorageObjectsRgName}')
name: 'Storage-KeyVault-${time}'
params: {
Expand Down
4 changes: 2 additions & 2 deletions workload/bicep/deploy-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.31.34.60546",
"templateHash": "9121813628569754715"
"templateHash": "9384301259839648600"
},
"name": "AVD Accelerator - Baseline Deployment",
"description": "AVD Accelerator - Deployment Baseline",
Expand Down Expand Up @@ -26625,7 +26625,7 @@
]
},
{
"condition": "[and(variables('varCreateStorageDeployment'), parameters('diskZeroTrust'))]",
"condition": "[and(variables('varCreateStorageDeployment'), parameters('storageZeroTrust'))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"name": "[format('Storage-KeyVault-{0}', parameters('time'))]",
Expand Down

0 comments on commit 1cf82e0

Please sign in to comment.