Skip to content

Commit

Permalink
refactor: clean up unused parameters and comments in storage CMK conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
JCoreMS committed Dec 3, 2024
1 parent 189df5c commit 2bf1b13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
2 changes: 1 addition & 1 deletion workload/arm/deploy-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -41276,4 +41276,4 @@
]
}
]
}
}
2 changes: 0 additions & 2 deletions workload/bicep/deploy-baseline.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,6 @@ module fslogixCmk './modules/zeroTrust/.bicep/storageCmkConfig.bicep' = if (stor
location: avdSessionHostLocation
managedIdentityStorageResourceId: identity.outputs.managedIdentityStorageResourceId
keyVaultUri: strgKeyVault.outputs.uri
// keyVaultResId: strgKeyVault.outputs.resourceId
storageSkuName: varFslogixStorageSku
}
dependsOn: [
Expand All @@ -1633,7 +1632,6 @@ module msixCmk './modules/zeroTrust/.bicep/storageCmkConfig.bicep' = if (storage
location: avdSessionHostLocation
managedIdentityStorageResourceId: identity.outputs.managedIdentityStorageResourceId
keyVaultUri: strgKeyVault.outputs.uri
// keyVaultResId: strgKeyVault.outputs.resourceId
storageSkuName: varMsixStorageSku
}
dependsOn: [
Expand Down
27 changes: 2 additions & 25 deletions workload/bicep/modules/zeroTrust/.bicep/StorageCmkConfig.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ param location string = resourceGroup().location
@sys.description('Key Vault URI associated with Storage Account.')
param keyVaultUri string

// @sys.description('Key Vault Resource ID associated with Storage Acccount.')
// param keyVaultResId string

@sys.description('Managed Identity Resource ID associated with Storage Account and used for Zero Trust.')
param managedIdentityStorageResourceId string

Expand All @@ -32,7 +29,7 @@ var keyName = 'key-${storageAccountName}'
// =========== //
// Deployments //
// =========== //

// Using AVM - the key rotation is not enabled on the Storage Account.
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: storageAccountName
location: location
Expand Down Expand Up @@ -66,24 +63,4 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
}
}

// Using AVM - the key rotation is not enabled on the Storage Account.
/* module storageAccountAVM '../../../../../avm/1.0.0/res/storage/storage-account/main.bicep' = {
name: 'storageAccountAVM'
params: {
name:storageAccountName
location:location
kind:((storageSkuName == 'Premium_LRS') || (storageSkuName == 'Premium_ZRS')) ? 'FileStorage' : 'StorageV2'
skuName:storageSkuName
managedIdentities: {
userAssignedResourceIds: [
managedIdentityStorageResourceId
]
}
customerManagedKey: {
userAssignedIdentityResourceId: managedIdentityStorageResourceId
keyName: keyName
keyVaultResourceId: keyVaultResId
keyVersion: ''
}
}
} */

0 comments on commit 2bf1b13

Please sign in to comment.