File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ var aiSearchName = '${abbrs.ai.aiSearch}${solutionName}'
3131var workspaceName = '${abbrs .managementGovernance .logAnalyticsWorkspace }${solutionName }'
3232
3333var useExisting = !empty (existingLogAnalyticsWorkspaceId )
34+ var existingLawSubscription = useExisting ? split (existingLogAnalyticsWorkspaceId , '/' )[2 ] : ''
3435var existingLawResourceGroup = useExisting ? split (existingLogAnalyticsWorkspaceId , '/' )[4 ] : ''
3536var existingLawName = useExisting ? split (existingLogAnalyticsWorkspaceId , '/' )[8 ] : ''
3637
@@ -65,7 +66,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = {
6566
6667resource existingLogAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-08-01' existing = if (useExisting ) {
6768 name : existingLawName
68- scope : resourceGroup (existingLawResourceGroup )
69+ scope : resourceGroup (existingLawSubscription , existingLawResourceGroup )
6970}
7071
7172resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = if (!useExisting ) {
You can’t perform that action at this time.
0 commit comments