-
Notifications
You must be signed in to change notification settings - Fork 154
Update permissions details for log alert rules #210
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
Open
didiergbenou-ms
wants to merge
1
commit into
MicrosoftDocs:main
Choose a base branch
from
didiergbenou-ms:patch-13
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+13
−2
Open
Changes from all commits
Commits
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 hidden or 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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -191,12 +191,23 @@ Alerts triggered by these alert rules contain a payload that uses the [common al | |||||||||||||
|
|
||||||||||||||
| * A managed identity is required if you're sending a query to Azure Data Explorer or Resource Graph. | ||||||||||||||
| * Use a managed identity if you want to be able to view or edit the permissions associated with the alert rule. | ||||||||||||||
| * If you don't use a managed identity, the alert rule permissions are based on the permissions of the last user to edit the rule, at the time that the rule was last edited. | ||||||||||||||
| * If you don’t use a managed identity, the alert rule will inherit the permissions of the last user or service principal who edited it, based on their permissions at the time of that edit. | ||||||||||||||
| * Use a managed identity to help you avoid a case where the rule doesn't work as expected because the user who last edited the rule didn't have permissions for all the resources added to the scope of the rule. | ||||||||||||||
|
|
||||||||||||||
| The identity associated with the rule must have these roles: | ||||||||||||||
|
|
||||||||||||||
| * If the query is accessing a Log Analytics workspace, the identity must be assigned a *reader* role for all workspaces that the query accesses. If you're creating resource-centric log search alerts, the alert rule might access multiple workspaces, and the identity must have a reader role on all of them. | ||||||||||||||
| * If the query is accessing a Log Analytics workspace, the identity must be assigned a *reader* role for all workspaces that the query accesses. If you're creating resource-centric log search alerts (scoped to a subscription or resource group), if the alert rule is scoped to a subscription for example, the identity must have reader access to all Log Analytics workspaces containing data for any resource within that subscription, even if those workspaces are in different subscriptions. This requirement also applies when a managed identity is not used and the alert is relying on the permissions of the user or service principal that last edited it. | ||||||||||||||
|
|
||||||||||||||
| **Example:**<br> | ||||||||||||||
| Suppose you have a subscription called *Subscription-A*. Within *Subscription-A*, there are resources (such as virtual machines) that send their logs to different Log Analytics workspaces: | ||||||||||||||
|
|
||||||||||||||
| Workspace-1 (located in Subscription-A) | ||||||||||||||
| Workspace-2 (located in Subscription-B) | ||||||||||||||
| Workspace-3 (located in Subscription-C) | ||||||||||||||
|
Comment on lines
+204
to
+206
|
||||||||||||||
| Workspace-1 (located in Subscription-A) | |
| Workspace-2 (located in Subscription-B) | |
| Workspace-3 (located in Subscription-C) | |
| * Workspace-1 (located in Subscription-A) | |
| * Workspace-2 (located in Subscription-B) | |
| * Workspace-3 (located in Subscription-C) |
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.
The
<br>HTML tag is unnecessary here. Markdown formatting with a blank line before the example content will provide proper spacing without requiring HTML.