Catching Non-Terminating Errors in PowerShell
Hello! I’m sure I’ve learnt this before somewhere, but now I’m writing it down to make sure I don’t forget: PowerShell will not catch non-terminating errors. This means you cannot use try/catch when attempting some retry logic. This caught me out today in some Azure RM PowerShell scripts I’ve been working on: I create an ADF, and because I’m going to add a shared self-hosted Integration Runtime to it I need to assign the ADF contributor permissions.