Skip to content

Instantly share code, notes, and snippets.

View bejo73's full-sized avatar

Jörgen Bergström bejo73

View GitHub Profile
@bejo73
bejo73 / search_for_runs_in_logic_apps_with_powershell.html
Created January 28, 2018 15:21
Search for runs in Logic Apps with PowerShell
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"
@bejo73
bejo73 / Get-ServersFromApiConnections.ps1
Created March 18, 2018 20:57
Get-ServersFromApiConnections.ps1
<#
# 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 = @{}