I created an alert on activity log as described in this link
There is an option to set Event initiated by filter to any email id or "All users and services". Is there a way to set it to "All users only" (and not any service/service principal). Basically I want to trigger alert if any user changes a setting and not a service principal.
Unfortunately, this isn't supported in Activity Log Alerts.
Activity log Alerts does string compare on the values of the rule and the event,
so it needs explicit (or no) values.
Possible workaround:
If you have the list of all users emails-
you can create an Alert rule with containsAny via ARM Template.
otherwise, Log Search Alerts should work.
Related
When I try to add a new email address to an existing action group (to receive notifications), I can't get the status 'Subscribed':
I believe this is the reason why the M user is receiving the alerts while the R and L users aren't.
I read in the following link that when the status is 'Unsubscribed', we should remove the email and then re-add it:
Troubleshooting the Azure Monitor
I did this, but it didn't fix it. That's probably because my status was never "Unsubscribed" in the first place, but instead "-".
Any ideas on what I should try next?
I Tried to reproduce the same in my environment to delete the existing email from Action Group, As I got below.
Note: Subscribed status in action group ,you will get only for the first time, later if you modify emails in Action Group, you will get Same "-" status ,but mail will trigger.
I have created one alert rule with action group like below.
Azure Portal > Monitor > Create Alert Rule
Once modify the email and save the configuration.
The movement you modify the settings, you will get the test mail from Microsoft Notification.
Today my scheduled backup failed and I had to go to the portal to know the reason or monitor the status.
Instead is there a way to configure Backup alerts that notify me the status?
There is no direct option to select backup failed alerts in Alerts blade as of now however as an alternative you can follow below options to achieve Backup Alerts.
To create the rule, navigate to App Service --> Monitoring --> Alerts.
Click on New alert rule
Resource will be automatically selected and can edit too.
Next step click on select condition. This will take you to configure signal logic.
Signal Type β All , Monitor Service β All, Select βAll Administrative operations" signal name.
Select Chart period, Select Alert Logic, Event Level β Error, Status - Failed.
This rule gives all the administrative failed alerts including backup failed alerts with a detailed email.
Then select Action Group if you already have one otherwise click on create action group and create one.
After adding action group edit click on Email Alert to enter Email or Phone number. Click ok and save changes.
Then add alert rule name and select resource group in Alert rule details
Once you create alert rule you will receive and email like below
Activity log rules take 5 minutes to activate.
You can manage the alert rules by going to Monitoring --> Alerts --> Manage alert rules.
Once the action is triggered you will receive an email notification with detailed description. The below screenshot is an informational level email but as you have enabled for failed operations you will receive an email once an operation is failed.
We added the pre-existing field "Subject Matter Expert 1" to the User Story work item type. The field is of type Identity. Is it possible to add an alert so that the person in that field will get an email in certain conditions, such as when the work item is in a Board Column called "Specification".
By default with the current subscription model
you can subscribe an alert to any work item fields that changed. But while sending the alerts dynamically to the person(role) specific to "Subject Matter Expert 1" is not-available (I think).
You can only send alerts to the below roles
Assigned to (new)
Assigned to (previous)
Assigned to (current)
Changed by
Created by
Authorized as
So you can use Service-hooks for your requirement.
Create a Service hook which will hook whenever a work item is updated.
Handle the hooks by creating Azure functions/your own web application to
check for your certain conditions.
Create your own Send mail function if your condition matches.
I am trying to create new alert to send notification at new permission created but i didn't get what i want .
This what i am talking about:
As I understand, I think you are asking for an alert to be generated when an role assignment is made in your subscription. If yes,
You may use Azure Monitor for your use case.
In Azure Monitor blade, you need to create an alert as follows
a. Specify the target resource (in your case, your subscription),
b. Define an alert criteria (when you configure signal, choose administrative activity log > create role assignments / delete role assignments)
c. Create an action group. You can specify an email address to which the alerts will be sent
Once setup, every time a new role is assigned, an email alert will be sent to the email id specified in the Action Group
You may explore Event Grids also for your scenario
I created a list and setup alerts that send to several individuals when a new item is added to the list. However, I have one additional requirement to have an alert email sent to a Public Folder in Exchange.
The folder is setup with an email address, VSrequest#domain.com, but when I try to add that address into the "Send Alerts To" field (when creating a new alert), SharePoint returns an error: "No Exact match was found."
I thought about setting up the alert in a custom workflow through SharePoint designer, but is there a way to easily reuse the existing Alert Email as a template for the body of the custom alert?
Any other ideas or pointers would be greatly appreciated!
You can't send an alert to a regular email address (or mailbox) because it isn't associated with a user/group. If it isn't associated with a user/group then it can't have permissions to any list or list items in SharePoint. Finally, if it doesn't have permissions then it can't receive an alert (or that would be a pretty big security hole).
Probably the easiest method is what you mention: using a custom SharePoint designer workflow. It isn't going to be 100% the same but you can just copy the HTML from a previous alert and then try to fill in the data as much as you can in the workflow. (see here for an article describing almost exactly what you want).
As you've seen you can't setup an alert against a random email address - it has to be against a user (who has an email address).
So one option would be to create a domain user for VSrequest#domain.com - ensure they are in SharePoints user list (Site Settings > Users and Groups > All Users) then you will be able to setup the alert for that user which will go to that email address.
Other options include workflow as Kit mentions, Event Receivers or 3rd party software.