Skip to content

Commit

Permalink
align rsv deployments (#715)
Browse files Browse the repository at this point in the history
Co-authored-by: Erika Gressi <erikag.microsoft.com>
  • Loading branch information
eriqua committed Dec 4, 2021
1 parent 5f169a6 commit e50c9e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arm/Microsoft.RecoveryServices/vaults/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ resource rsv 'Microsoft.RecoveryServices/vaults@2021-08-01' = {
}

module rsv_backupStorageConfiguration 'backupStorageConfig/deploy.bicep' = {
name: '${uniqueString(deployment().name, location)}-BackupStorageConfig'
name: '${uniqueString(deployment().name, location)}-RSV-BackupStorageConfig'
params: {
recoveryVaultName: rsv.name
storageModelType: backupStorageConfig.storageModelType
Expand All @@ -150,7 +150,7 @@ module rsv_backupStorageConfiguration 'backupStorageConfig/deploy.bicep' = {
}

module rsv_protectionContainers 'protectionContainers/deploy.bicep' = [for (protectionContainer, index) in protectionContainers: {
name: '${uniqueString(deployment().name, location)}-ProtectionContainers-${index}'
name: '${uniqueString(deployment().name, location)}-RSV-ProtectionContainers-${index}'
params: {
recoveryVaultName: rsv.name
name: protectionContainer.name
Expand All @@ -162,7 +162,7 @@ module rsv_protectionContainers 'protectionContainers/deploy.bicep' = [for (prot
}]

module rsv_backupPolicies 'backupPolicies/deploy.bicep' = [for (backupPolicy, index) in backupPolicies: {
name: '${uniqueString(deployment().name, location)}-BackupPolicy-${index}'
name: '${uniqueString(deployment().name, location)}-RSV-BackupPolicy-${index}'
params: {
recoveryVaultName: rsv.name
name: backupPolicy.name
Expand Down Expand Up @@ -193,7 +193,7 @@ resource rsv_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-0
}

module rsv_rbac '.bicep/nested_rbac.bicep' = [for (roleAssignment, index) in roleAssignments: {
name: '${deployment().name}-rbac-${index}'
name: '${uniqueString(deployment().name, location)}-RSV-Rbac-${index}'
params: {
principalIds: roleAssignment.principalIds
roleDefinitionIdOrName: roleAssignment.roleDefinitionIdOrName
Expand Down

0 comments on commit e50c9e7

Please sign in to comment.