Stream or output live deployment status?
I've made an internal mobile app that taps into our PDQ server and can run PowerShell or Python to it. Currently I can deploy packages to our computers via CLI command and get feedback that the deployment started, what the ID is, etc.
pdqdeploy.exe Deploy -Package '{package}' -Targets '{computer}'
Deployment Started
ID : 42312
Package: Packages\Google\Google Chrome Enterprise
Targets: 1
But I don't know how to get feedback on the status as it's moving through deployment steps or when it's finished. So it's basically a Hail Mary at the moment.
Would it be possible via PowerShell (or Python alternatively) to collect or stream data after the deployment has started and output as it goes through steps or when it's finished? My goal really is to just have some feedback on whether the full deployment succeeded or failed. Any more data after that is just a bonus.
Comments
Got my answer from here:
https://help.pdq.com/hc/en-us/community/posts/4407166508059-API-for-remote-Powershell-deployment
Which let me back to Colby Bouma's PowerShell module (I've used it before for a separate case but never looked at all the cmdlets). This should let me get started in the right direction.
cmdlet
I usually have bad luck using anything that accesses our database directly, but I am going to give this a go again.
In my testing so far, SimplySql (what my module uses) is way less prone to locking the database than sqlite3.exe. However, if you run into any problems, please let me know!