Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions arm/Microsoft.OperationalInsights/workspaces/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-08
}

module logAnalyticsWorkspace_storageInsightConfigs 'storageInsightConfigs/deploy.bicep' = [for (storageInsightsConfig, index) in storageInsightsConfigs: {
name: '${deployment().name}-storageInsightsConfig-${index}'
name: '${uniqueString(deployment().name, location)}-LAW-StorageInsightsConfig-${index}'
params: {
logAnalyticsWorkspaceName: logAnalyticsWorkspace.name
containers: contains(storageInsightsConfig, 'containers') ? storageInsightsConfig.containers : []
Expand All @@ -110,7 +110,7 @@ module logAnalyticsWorkspace_storageInsightConfigs 'storageInsightConfigs/deploy
}]

module logAnalyticsWorkspace_linkedServices 'linkedServices/deploy.bicep' = [for (linkedService, index) in linkedServices: {
name: '${deployment().name}-linkedService-${index}'
name: '${uniqueString(deployment().name, location)}-LAW-LinkedService-${index}'
params: {
logAnalyticsWorkspaceName: logAnalyticsWorkspace.name
name: linkedService.name
Expand All @@ -120,7 +120,7 @@ module logAnalyticsWorkspace_linkedServices 'linkedServices/deploy.bicep' = [for
}]

module logAnalyticsWorkspace_savedSearches 'savedSearches/deploy.bicep' = [for (savedSearch, index) in savedSearches: {
name: '${deployment().name}-savedSearch-${index}'
name: '${uniqueString(deployment().name, location)}-LAW-SavedSearch-${index}'
params: {
logAnalyticsWorkspaceName: logAnalyticsWorkspace.name
name: '${savedSearch.name}${uniqueString(deployment().name)}'
Expand All @@ -134,7 +134,7 @@ module logAnalyticsWorkspace_savedSearches 'savedSearches/deploy.bicep' = [for (
}]

module logAnalyticsWorkspace_dataSources 'dataSources/deploy.bicep' = [for (dataSource, index) in dataSources: {
name: '${deployment().name}-datasource-${index}'
name: '${uniqueString(deployment().name, location)}-LAW-DataSource-${index}'
params: {
logAnalyticsWorkspaceName: logAnalyticsWorkspace.name
name: dataSource.name
Expand All @@ -155,7 +155,7 @@ module logAnalyticsWorkspace_dataSources 'dataSources/deploy.bicep' = [for (data

@batchSize(1) // Serial loop deployment
module logAnalyticsWorkspace_solutions '.bicep/nested_solutions.bicep' = [for (gallerySolution, index) in gallerySolutions: if (!empty(gallerySolutions)) {
name: '${deployment().name}-solution-${index}'
name: '${uniqueString(deployment().name, location)}-LAW-Solution-${index}'
params: {
gallerySolution: gallerySolution.name
location: location
Expand All @@ -175,7 +175,7 @@ resource logAnalyticsWorkspace_lock 'Microsoft.Authorization/locks@2016-09-01' =
}

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