PSDeploy icon indicating copy to clipboard operation
PSDeploy copied to clipboard

New Deployment Type: Azure Automation runbook

Open FISHMANPET opened this issue 6 years ago • 2 comments

I'd like to use PSDeploy to deploy runbooks to Azure Automation so I'm going to write a new deployment type for that

FISHMANPET avatar May 22 '19 14:05 FISHMANPET

Awesome! Hit me up if you have any questions or run into any issues creating this!

RamblingCookieMonster avatar May 22 '19 16:05 RamblingCookieMonster

So I've been taking myself down a path where I'm writing runbooks and then also a bunch of functions that go specifically with that runbook. So I can pester test them, I've put the functions into another file so they can be tested without executing the whole runbook. I don't want to make them a module because they're too closely coupled with the code to be useful anywhere else.

To keep our Azure space clean my plan was to concatenate the runbook and it's functions into one file instead of deploying two runbooks, one of which will never be executed, only dot sourced.

Is this something that would be useful in PSDeploy? I haven't looked at the PSDeploy framework enough to know if it's something the module would support. I can just as easily put the files together in a script and then pass a single script to PSDeploy, but I'm thinking if it's valuable to me it might be valuable to others?

FISHMANPET avatar May 22 '19 22:05 FISHMANPET