-
Notifications
You must be signed in to change notification settings - Fork 142
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
log activities from subscriptions used in an MLZ deployment into the Operations log analytics workspace #412
Merged
glennmusa
merged 15 commits into
bicep
from
shawngib/sg-add-bicep-activity-logging-again
Sep 16, 2021
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2f121ed
adding activity logging and fixing assignments
shawngib 11a8810
adding module file
shawngib f895c7f
Update src/bicep/modules/centralLogging.bicep
shawngib 3491797
Update src/bicep/mlz.bicep
shawngib 42868c3
Update src/bicep/modules/policyAssignment.bicep
shawngib ed55433
Update src/bicep/mlz.bicep
shawngib 372e60b
updated per comments in PR
shawngib 2992e83
correct object declarations
shawngib 7e194df
Update src/bicep/mlz.bicep
shawngib 89404bc
Update src/bicep/mlz.bicep
shawngib 917cf83
Update src/bicep/mlz.bicep
shawngib 3ecac1f
Update src/bicep/mlz.bicep
shawngib c57608d
Update src/bicep/mlz.bicep
shawngib c7ab6c7
Update src/bicep/mlz.bicep
shawngib 0b5e4b3
diagnostic name with log analytics workspace name (#414)
glennmusa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// scope | ||
targetScope = 'subscription' | ||
|
||
param diagnosticSettingName string | ||
param logAnalyticsWorkspaceId string | ||
|
||
//// Central activity logging to LAWS | ||
resource centralLoggingDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = { | ||
name: diagnosticSettingName | ||
properties: { | ||
workspaceId: logAnalyticsWorkspaceId | ||
logs: [ | ||
{ | ||
category: 'Administrative' | ||
enabled: true | ||
} | ||
{ | ||
category: 'Security' | ||
enabled: true | ||
} | ||
{ | ||
category: 'ServiceHealth' | ||
enabled: true | ||
} | ||
{ | ||
category: 'Alert' | ||
enabled: true | ||
} | ||
{ | ||
category: 'Recommendation' | ||
enabled: true | ||
} | ||
{ | ||
category: 'Policy' | ||
enabled: true | ||
} | ||
{ | ||
category: 'Autoscale' | ||
enabled: true | ||
} | ||
{ | ||
category: 'ResourceHealth' | ||
enabled: true | ||
} | ||
] | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's be consistent with the module names "<hub/identity/operations/sharedServices>Thing"