Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployment code for Diagnostic Settings #811

Merged
merged 3 commits into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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.AnalysisServices/servers/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ resource server_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock != 'N
resource server_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${server.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: server
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.ApiManagement/service/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ resource apiManagementService_lock 'Microsoft.Authorization/locks@2016-09-01' =
resource apiManagementService_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = if (!empty(diagnosticStorageAccountId) || !empty(workspaceId) || !empty(eventHubAuthorizationRuleId) || !empty(eventHubName)) {
name: '${apiManagementService.name}-diagnosticSettings'
properties: {
storageAccountId: empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId
workspaceId: empty(workspaceId) ? null : workspaceId
eventHubAuthorizationRuleId: empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId
eventHubName: empty(eventHubName) ? null : eventHubName
metrics: empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName) ? null : diagnosticsMetrics
logs: empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName) ? null : diagnosticsLogs
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: apiManagementService
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.Automation/automationAccounts/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ resource automationAccount_lock 'Microsoft.Authorization/locks@2016-09-01' = if
resource automationAccount_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${automationAccount.name}-AutoAccount-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: automationAccount
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.Batch/batchAccounts/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ resource batchAccount_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock
resource batchAccount_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${batchAccount.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: batchAccount
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.CognitiveServices/accounts/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ resource cognitiveServices_lock 'Microsoft.Authorization/locks@2016-09-01' = if
resource cognitiveServices_diagnosticSettingName 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = {
name: '${cognitiveServices.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: cognitiveServices
}
Expand Down
10 changes: 5 additions & 5 deletions arm/Microsoft.Compute/virtualMachineScaleSets/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,11 @@ resource vmss_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock != 'Not
resource vmss_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${vmss.name}-diagnosticSettings'
properties: {
storageAccountId: empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId
workspaceId: empty(workspaceId) ? null : workspaceId
eventHubAuthorizationRuleId: empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId
eventHubName: empty(eventHubName) ? null : eventHubName
metrics: empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName) ? null : diagnosticsMetrics
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
}
scope: vmss
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ resource networkInterface_diagnosticSettings 'Microsoft.Insights/diagnosticsetti
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: !empty(diagnosticStorageAccountId) || !empty(workspaceId) || !empty(eventHubAuthorizationRuleId) || !empty(eventHubName) ? diagnosticsMetrics : null
metrics: diagnosticsMetrics
}
scope: networkInterface
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ resource publicIpAddress_lock 'Microsoft.Authorization/locks@2017-04-01' = if (l
resource publicIpAddress_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${publicIpAddress.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: publicIpAddress
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.ContainerRegistry/registries/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ resource registry_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock !=
resource registry_diagnosticSettingName 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${registry.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: registry
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.ContainerService/managedClusters/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,12 @@ resource managedCluster_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lo
resource managedCluster_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${managedCluster.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: managedCluster
}
Expand Down
12 changes: 6 additions & 6 deletions arm/Microsoft.DataFactory/factories/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ resource dataFactory_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock
resource dataFactory_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId))) {
name: '${dataFactory.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
metrics: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsMetrics)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
scope: dataFactory
}
Expand Down
10 changes: 5 additions & 5 deletions arm/Microsoft.Databricks/workspaces/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ resource workspace_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock !=
resource workspace_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${workspace.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
logs: diagnosticsLogs
}
scope: workspace
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ resource appGroup_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock !=
resource appGroup_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${appGroup.name}-diagnosticSettings'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
logs: diagnosticsLogs
}
scope: appGroup
}
Expand Down
10 changes: 5 additions & 5 deletions arm/Microsoft.DesktopVirtualization/hostpools/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ resource hostPool_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock !=
resource hostPool_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${hostPool.name}-diagnosticsetting'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
logs: diagnosticsLogs
}
scope: hostPool
}
Expand Down
10 changes: 5 additions & 5 deletions arm/Microsoft.DesktopVirtualization/workspaces/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ resource workspace_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock !=
resource workspace_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
name: '${workspace.name}-diagnosticsetting'
properties: {
storageAccountId: (empty(diagnosticStorageAccountId) ? null : diagnosticStorageAccountId)
workspaceId: (empty(workspaceId) ? null : workspaceId)
eventHubAuthorizationRuleId: (empty(eventHubAuthorizationRuleId) ? null : eventHubAuthorizationRuleId)
eventHubName: (empty(eventHubName) ? null : eventHubName)
logs: ((empty(diagnosticStorageAccountId) && empty(workspaceId) && empty(eventHubAuthorizationRuleId) && empty(eventHubName)) ? null : diagnosticsLogs)
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
logs: diagnosticsLogs
}
scope: workspace
}
Expand Down
Loading