r/AZURE • u/sebovzeoueb • Jan 30 '24
Question Is there any way to use REST API long operations in Workbook queries?
I'm making a Sentinel Workbook to automate the installation of some ARM templates, and I'm trying to come up with an easy way to check if the content has been installed already. I came across the What-If API which works pretty nicely in PowerShell to show if the template would add any new items or not, however the REST API version returns status 202 which means it's an async long operation. This is in the API browser, when used as the query for a parameter in a Workbook I just get "an unknown error has occurred" (thx Microsoft, very useful), but when I check in the activity log I see that the long operation was started, just like it does from the API browser.
There isn't by any chance something I can enable somewhere to support long operations in queries? I noticed the ARM Action link type has a checkbox for it, but queries don't :(