Skip to content
Merged
Show file tree
Hide file tree
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

This file was deleted.

3 changes: 2 additions & 1 deletion arm/Microsoft.Automation/automationAccounts/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,12 @@ module automationAccount_variables 'variables/deploy.bicep' = [for (variable, in
}
}]

module automationAccount_linkedService '.bicep/nested_linkedService.bicep' = if (!empty(linkedWorkspaceResourceId)) {
module automationAccount_linkedService '../../Microsoft.OperationalInsights/workspaces/linkedServices/deploy.bicep' = if (!empty(linkedWorkspaceResourceId)) {
name: '${uniqueString(deployment().name, location)}-AutoAccount-LinkedService'
params: {
name: 'automation'
logAnalyticsWorkspaceName: last(split(linkedWorkspaceResourceId, '/'))
enableDefaultTelemetry: enableDefaultTelemetry
resourceId: automationAccount.id
tags: tags
}
Expand Down
2 changes: 1 addition & 1 deletion arm/Microsoft.Automation/automationAccounts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This module deploys an Azure Automation Account.
| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings) |
| `Microsoft.Network/privateEndpoints` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-05-01/privateEndpoints) |
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | [2021-05-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-05-01/privateEndpoints/privateDnsZoneGroups) |
| `Microsoft.OperationalInsights/workspaces/linkedServices` | [2020-03-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.OperationalInsights/2020-03-01-preview/workspaces/linkedServices) |
| `Microsoft.OperationalInsights/workspaces/linkedServices` | [2020-08-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.OperationalInsights/2020-08-01/workspaces/linkedServices) |
| `Microsoft.OperationsManagement/solutions` | [2015-11-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.OperationsManagement/2015-11-01-preview/solutions) |

## Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ resource linkedService 'Microsoft.OperationalInsights/workspaces/linkedServices@
}
}

@description('The name of the deployed linked service.')
output name string = linkedService.name

@description('The resource ID of the deployed linked service.')
output resourceId string = linkedService.id

@description('The resource group where the linked service is deployed.')
output resourceGroupName string = resourceGroup().name

@description('The name of the deployed linked service.')
output name string = linkedService.name