Skip to main content

Using Filters in Azure Automation Graphical Runbooks

Author by Duncan Lindquist

Once you have your output configured we will want to click on the filter link. To apply the filter change the Apply condition to Yes ( you will notice this changes the link to a dotted line). Filters01   Now we can use the Condition expression box to write a PowerShell expression to set the filter. I this example I want the filter to only let the workflow continue if the output from Passing-Parameters is "left". To do this we will use the same command from the last blog post to get the output data:  $ActivityOuptu['Runbookname'] then set the filter: -eq "left"Filter02   Your runbook will now only continue down that path if it meets those requirements. You can set more advanced filters as well!  

Duncan Lindquist

Service Management & Automation Solution Lead