Application Insights: receive email from alert only on failure - azure-application-insights

When I set up an alert in AI on metric "Server Exceptions" I also get emails notifying me of "Success". I don't want my inbox flooded with this type of messages. Is there a way to disable this feature?

Yes. At the bottom of the email there is an unsubscribe link. If you click that it will unsubscribe for this type of message.

Related

Prevent Firebase from sending "Email address change" when linkWithCredential get called

When my app calls linkWithCredential Firebase sends an email titled "Your sign-in email was changed" automatically.
This happens when an user enters the email address different from the current one.
Is there any way to prevent Firebase from sending such email?
I'm trying with firebase v9.10.0 npm package.
The message is sent to the user's current email address to alert them to the change of their sign-in method/credentials. There is no way to control whether Firebase sends this email on calling the linkWithCredential API.
I recommend looking at the flow of your code, as wanting to suppress this message typically means that you're doing something unexpected. For example, if you know the user's current email address, it's probably better to detect when they enter a different value before calling the Firebase API, and ask them to confirm the value.

Application insight alerts with notification configurable for email recipient and email body?

I'm creating an alert on AI. This is the message I received when the alert is triggered. how to make the email body configurable or make and specific message?
There is no way to customize the email template for Azure alerts. As a workaround, you can configure a webhook by creating a custom payload so that you can process the alert signal with your custom code
https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log-webhook

MFP 8 Push Notification to Particular USER ID

Trying to send Push Notification based on DEVICE_ID, In MFP 8 Console, My device ID is showing under DEVICES section but if i try to send notification, Console throws error as "An error occurred while the notification was sent. Internal server error. No devices found."
Scope - push.mobileclient
Initialize, isPushSupported and then RegisterDevice is triggered and in logs, it shown the token as well. how to resolve ?
Device registration showing up in the Devices console does not mean that push registration is successful. Even if push registration is complete, it will depend entirely on the application logic that there is a user identity associated with the subscription.
When you attempt to send notification by userid and it says "No devices found", this means that there are no subscriptions against this userid. It is possible there is no subscription at all , or the subscriptions have been made against a different user - or even anonymous user.
Use get push registrations and get push subscriptions REST calls to verify your current registration and subscription. If these are with anonymous user identity verify your scope -> security check mapping and your application logic.

Sending message to the user with the custom properties like people who have registered through email

Now I need to send the message to the people:
That we custom their properties.For example whether the email is activated after they register,if they have activated the email then they can receive the notification but the inactivated one cant,we set the properties when the user login their account ,if the first one who has already activated their Email ,then if we send the notification that with that receiver who activated email tab ,then the phone can receive notification .and then we changed the account that haven't activated the email,then send the same notification ,and then the phone still can receive the notification ,and also if we send the message in a not activated email tab ,the phone cant receive the notification.
I want to the the reason of this problem and the ways of solve it .
Thank you for your help.
Edit:
if someone have registered through some specific key like email which will be stored in my database...i could send notifications to them..!

As a telegram bot, what is the best way to authenticate the owner of a telegram channel?

Is there a way for a telegram bot to know who is the administrator of a channel?
One way to do this is to send a verification code to channel admin and ask the admin to confirm the code. I couldnt find any API that allows sending a message to channel admin, though.
I can authenticate a user account just by asking user to send a message to my bot, but is there a way to have a channel sending a message to a bot?
i think this is not required!
when you have a1255412542_bot and ask the user to add this bot as administrator, is it possible to a channel admin to add this bot as admin?!!
you can:
ask the channel name,
send a message to the channel to ensure that the bot is not the admin of the channel,
ask the user to add your bot as admin immediately! then press ok button on your bot,
then you send a text message (or sendChatAction for hidden test) to the channel and if successful, finished!
You can get the list of admins of any channel using this method:
https://core.telegram.org/bots/api#getchatadministrators
Check the permissions of that user since it returns a json array of username of the admins and their permissions

Resources