This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
# Get-ServersFromApiConnections.ps1 | |
# | |
# This script prints out a list of the servers from the API Connecitons in the acutal Azure Subscription. | |
# | |
# Usage: .\Get-ServersFromApiConnections.ps1 | |
# | |
#> | |
$uniqueEndpoints = @{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ([Parameter(Mandatory=$true)][string] $ResourceGroup, | |
[Parameter(Mandatory=$true)][string] $Workspace, | |
[Parameter(Mandatory=$true)][string] $Workflow, | |
[Parameter(Mandatory=$true)][string] $Action, | |
[Parameter()][int] $Top = 1000, | |
[Parameter()][int] $To = 0, | |
[Parameter()][int] $From = -31 | |
) | |
$query = "Type=AzureDiagnostics And resource_workflowName_s=$Workflow And resource_actionName_s=$Action And status_s=Succeeded" |