зеркало из https://github.com/Azure/missionlz.git
updates to activity logs (#959)
* updates to activity logs * GitHub Action: Build Bicep to JSON --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Родитель
fb5233b017
Коммит
a4da32d3b0
|
@ -5,7 +5,7 @@
|
|||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.26.54.24096",
|
||||
"templateHash": "11949976318508029089"
|
||||
"templateHash": "7783918794036563591"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -7355,7 +7355,7 @@
|
|||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.26.54.24096",
|
||||
"templateHash": "49100111797787087"
|
||||
"templateHash": "13989055129357073540"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
|
@ -7435,9 +7435,6 @@
|
|||
"parameters": {
|
||||
"logAnalyticsWorkspaceId": {
|
||||
"value": "[parameters('logAnalyticsWorkspaceResourceId')]"
|
||||
},
|
||||
"supportedClouds": {
|
||||
"value": "[parameters('supportedClouds')]"
|
||||
}
|
||||
},
|
||||
"template": {
|
||||
|
@ -7447,20 +7444,16 @@
|
|||
"_generator": {
|
||||
"name": "bicep",
|
||||
"version": "0.26.54.24096",
|
||||
"templateHash": "14852926421482749735"
|
||||
"templateHash": "2758250668679366524"
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"logAnalyticsWorkspaceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"supportedClouds": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"condition": "[contains(parameters('supportedClouds'), environment().name)]",
|
||||
"type": "Microsoft.Insights/diagnosticSettings",
|
||||
"apiVersion": "2017-05-01-preview",
|
||||
"name": "[format('diag-activity-log-{0}', subscription().subscriptionId)]",
|
||||
|
|
|
@ -5,10 +5,9 @@ Licensed under the MIT License.
|
|||
targetScope = 'subscription'
|
||||
|
||||
param logAnalyticsWorkspaceId string
|
||||
param supportedClouds array
|
||||
|
||||
// Export Activity Log to LAW
|
||||
resource diagnosticSetting 'Microsoft.Insights/diagnosticSettings@2017-05-01-preview' = if ( contains(supportedClouds, environment().name) ) {
|
||||
resource diagnosticSetting 'Microsoft.Insights/diagnosticSettings@2017-05-01-preview' = {
|
||||
name: 'diag-activity-log-${subscription().subscriptionId}'
|
||||
properties: {
|
||||
workspaceId: logAnalyticsWorkspaceId
|
||||
|
|
|
@ -30,7 +30,6 @@ module activityLogDiagnosticSettings 'activity-log-diagnostic-settings.bicep' =
|
|||
scope: subscription(network.subscriptionId)
|
||||
params: {
|
||||
logAnalyticsWorkspaceId: logAnalyticsWorkspaceResourceId
|
||||
supportedClouds: supportedClouds
|
||||
}
|
||||
}]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче