Oh boi, a new PowerShell module is born

What it’s name you might ask. And I’d answer “AzureDevops”.

This evening I pushed the develop branch to master on GitHub and gave it the version 0.0.1. A bit of a milestone imho even though it’s not even close to being completed.

But what is it, and what does it do?

Well, it’s a module… duh… You can use it to talk to the API of Azure DevOps. And at the moment of writing still only to a select subset of all the functions the API provides. Basically you can create and remove repositories at this moment and do a bit on controlling of the configuration policies which you can set on those things.

The plan is to extend the module so it’ll eventually include like almost any API call possible.

But next to that I still have to create documentation and tests for the module. Testing each function manually is a bit of a pain in the ass.

The reason why I created is this module is because I couldn’t find an existing one (I might not have searched hard enough). There’s this Azure DevOps CLI thing, but I ran into some issues using that. One of those was that it was difficult to determine from the output if a command actually worked. You don’t get a nice object back, like you do with a lot of commands in PowerShell. And next to that logging in wasn’t a very smooth experience, outside of putting your password plaintext on the CLI which then got logged into the security event log. (This doesn’t happen by default, by yeah, our security like to know what’s executed from the command line. So group policies…)

If you’d like to take a look at it, you can find it on GitHub.


0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *