Followers

Azure Monitor Alert - Azure Function App

  1. Create a Windows Virtual Machine 2. Search for Function App and create a function by clicking on Create button. 3. Select the appropria...

 1. Create a Windows Virtual Machine

2. Search for Function App and create a function by clicking on Create button.

3. Select the appropriate subscription, unique name of function and resource group, and RunTime stack as PowerShell Core and click on Review and Create.

4. Once the function is created then select Function from the left panel and select HTTP Trigger. Provide the name of the Function and click on Create button

5. Once the function is created then click on Code and Test, it will have some PowerShell Script so let's replace the existing script with the below code and click on the Save button.

  1. using namespace System.Net
  2.  
  3. param($Request, $TriggerMetadata)
  4.  
  5. $Request | ConvertTo-Json | Write-Output

6. Search for Monitor service and select Alert and create an alert rule for the virtual machine( assuming that you already have a virtual machine) resource.

7. Select the condition for the Metrics signal type and select Network Out Total. Select the threshold value as per your choice( I am selecting 1KB and granularity as 1 min and frequency as 1 min).

8. Create an action group with the valid subscription and resource group.No need to select the Notification as of now.

9. Select the action as Azure function and select your azure function and also select Yes for  Enable the common alert schema option and click on the Review + Create button. It will ask for the alert rule name so provide the name and click on Create button.

10. Once the Alert rule is created then you can notice in the Azure function something gets triggered.



11.


COMMENTS

Name

Ansible,6,AWS,1,Azure DevOps,1,Containerization with docker,2,DevOps,2,Docker Quiz,1,Docker Swarm,1,DockerCompose,1,ELK,2,git,2,git quiz,1,Git Worksheet,1,ITIL,1,ITSM,1,Jira,3,Kubernetes,1,Kubernetes Quiz,5,SAST DAST Security Testing,1,SDLC Quiz,5,SonarQube,3,Splunk,2,vagrant kubernetes,1,YAML Basics,1,
ltr
item
DevOpsWorld: Azure Monitor Alert - Azure Function App
Azure Monitor Alert - Azure Function App
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZqROgyzUHjsisORKTJB2nKPUrox1GQwHotavixvhAbU6Wm1NTkFmxrEvrcDLEq-Lz0MBFoWl4eyhaQRipMggLM5W4l9mpOJkGRZLkPKeSCeMzWoIBwdWMDUnOp8zLq0p5uZENEiLAl0c_050KzQDlTdweOTOpQyCAWMbs1x-s5C5nGIbv5WIGlbw8/w547-h239/ImportAzureRepos-2.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZqROgyzUHjsisORKTJB2nKPUrox1GQwHotavixvhAbU6Wm1NTkFmxrEvrcDLEq-Lz0MBFoWl4eyhaQRipMggLM5W4l9mpOJkGRZLkPKeSCeMzWoIBwdWMDUnOp8zLq0p5uZENEiLAl0c_050KzQDlTdweOTOpQyCAWMbs1x-s5C5nGIbv5WIGlbw8/s72-w547-c-h239/ImportAzureRepos-2.jpg
DevOpsWorld
https://www.devopsworld.co.in/2022/06/azure-monitor-alert-azure-function-app.html
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/2022/06/azure-monitor-alert-azure-function-app.html
true
5997357714110665304
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content