Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Adding recommendationId to Traffic Manager queries (#98)
Browse files Browse the repository at this point in the history
Co-authored-by: Rodrigo Santos <[email protected]>
  • Loading branch information
rodrigosantosms and Rodrigo Santos authored Sep 25, 2023
1 parent 5c1578e commit fd5406f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Resources
| extend d = parse_json(properties)
| mv-expand endpoint = d.endpoints
| extend endpointMonitorStatus = endpoint.properties.endpointMonitorStatus
| project name, endpointMonitorStatus, properties.trafficRoutingMethod
| project recommendationId="traf-1", name, id, endpointMonitorStatus, properties.trafficRoutingMethod
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Resources
| extend endpoints = properties.endpoints
| mv-expand endpoint = endpoints
| extend endpointName = endpoint.name
| project name,endpointName, properties.trafficRoutingMethod
| project recommendationId="traf-2", name, id, endpointName, properties.trafficRoutingMethod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
| mv-expand endpoint = endpoints
| extend endpointName = endpoint.name
| extend endpointLocation = endpoint.properties.endpointLocation
| project name,endpointName, endpointLocation, properties.trafficRoutingMethod
| project recommendationId="traf-3", name, id, endpointName, endpointLocation, properties.trafficRoutingMethod
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Resources
| extend endpointName = endpoint.name
| extend endpointLocation = endpoint.properties.endpointLocation
| extend ttl = toint(properties.dnsConfig.ttl)
| project name,endpointName, properties.trafficRoutingMethod, endpointLocation,ttl
| project recommendationId="traf-4", name, id, endpointName, properties.trafficRoutingMethod, endpointLocation,ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Resources
| extend endpointName = endpoint.name
| extend endpointLocation = endpoint.properties.endpointLocation
| extend ttl = toint(properties.dnsConfig.ttl)
| project name,endpointName, properties.trafficRoutingMethod, endpointLocation,ttl,GeoMapping = tostring(endpoint.properties.geoMapping)
| project recommendationId="traf-5", name, id, endpointName, properties.trafficRoutingMethod, endpointLocation,ttl,GeoMapping = tostring(endpoint.properties.geoMapping)

0 comments on commit fd5406f

Please sign in to comment.