项目作者: digitalascension

项目描述 :
Script to monitor the Azure Traffic Manager service.
高级语言: PowerShell
项目地址: git://github.com/digitalascension/azure-tm-monitor.git
创建时间: 2018-12-19T02:07:23Z
项目社区:https://github.com/digitalascension/azure-tm-monitor

开源协议:MIT License

下载


Azure Traffic Manager Monitor

Azure Traffic Manager Monitor is a PowerShell Module that gives you the ability to monitor your
Azure Traffic Manager deployment. You can configure your connection using the azure-tm-config.json file
in the Configuration.

Below is an example of how to use Azure Traffic Manager Monitor:

  1. Import-Module azure-tm-monitor
  2. $profile = Get-TrafficManagerProfile -JSONConfiguration # Add a path to your json configuration
  3. $dns = Get-TrafficManagerCurrentEndpoint -Name # Name of the endpoint that needs to be monitored -PriorityEndpoint # Add the priority endpoint
  4. $endpointObj = New-EndpointObject -ProfileObject $profile -DNSObject $dns
  5. $obj = Test-TrafficManagerEndpoint -EndpointObject $endpointObj
  6. New-TrafficMonitorStatusReport -ResultObject $obj -MailAddress {List of mail addresses} -SmtpServer {SMTPServerName}