I need you to write a PowerShell script to automation of the deployment of Azure Application Insight Availability tests, alert and notification rules.

Job ID: 32556760

Budget: $30 – $250 AUD

PowerShell based
Tested from 5 Azure regions (one being AUS East)

Input parameters
For Web tests:
URL: [String]
Expected response: [String] 200
Frequency: [Int]
Method: [get|put]
Authentication method (depending on the method): [String]
Request body: [String]

For alert rules
When to alert criteria: Node failure >= 2
Test Response time > 30 seconds
Ave response time > 30 over last 5 minutes

For Notifications
Who: [String]
Method: [email or SMS]
Related categories: Azure JSON Powershell Alerting Microsoft Azure