I understand that you are looking for a way to programmatically poll the service health of B2C service and generate automatic alerts from it . At this point its not possible to get health status of the B2C programmatically using an api call . You would have to rely on the alerts from the service Health dashboard within the azure portal or create manual alert from the portal form the Service Heath blade. Please follow the video doc link on how to create the manual alert and you should see the following options form service health blade.
Here you can see the option for selecting B2C service and select relevant event type as needed.
This is how you can create the service health alert for B2C for now. This will incur some cost as it leverages Azure monitor but it will be minimalistic just for one service. For now , I have created a feature request on the Azure Feedback Portal and would request you to upvote the same.
Please see another answer of mine which provides more details on this. Hope this helps . In case the information provided is helpful , please accept the post as answer which can help in improving the relevancy of this question and help other community members searching for similar answers. Should you still need any further help , please do let us know and we will be happy to help further.
Thank you.
----------------------------------------------------------------------------------------------------------------------------------------------------------
- Please don't forget to click on whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators