Warning: this post contains unsupported API calls, so use at your own risk Similar to the situation in Part 2 for onboarding a project into SonarCloud, onboarding a user into an organization is also not supported via the public API. In the API documentation there is no entry for api/organizations This was confirmed by a community posting and unfortunately did not appear on the roadmap: Back to Chrome Developer Tools So in the same way as in Part 2 I used Chrome Developer Tools to monitor what happens in the SonarCloud UI when adding a member to an organization:
Warning: this post contains unsupported API calls, so use at your own risk One of the main reasons I started looking at the SonarCloud api was to be able to automate the onboarding of new GitLab projects into SonarCloud. We didn’t want to have to do that manually via the UI, rather via a pipeline job. In part 1 of this series I demonstrated the basics of the API and the PSSonarCloud PowerShell module, in part 2 we’ll look at how to onboard a project into SonarCloud.
SonarCloud is the SaaS version of SonarQube, a tool to detect and fix issues in your code by examining code quality and security vulnerabilities. I needed to automate the onboarding of both users and code projects into SonarCloud to take away the need to manually provision these items into the system. SonarCloud has a Web API which facilitated a lot of what I needed to achieve, however with some significant gaps which initially appeared to mean some of the onboarding would need to still be manual.
While following this guide to migrate to using multiple GitHub HTTPS accounts on Windows from a single user account I have used for years, I had to remove my existing GitHub.com credentials from Windows Credential Manager. When re-authenticating via the prompted login window: to existing repos on GitHub.com using an existing Personal Access Token or authenticating to a new repo using a different account on an instance of GitHub Enterprise using a new Personal Access Token, I would receive a combination of the following errors:
The most common question I get asked about the PowerShell Brickset Module is how to use it to download the online PDF instructions Lego produce to accompany each set. The Get-BricksetSetInstructions function is what you need for this task. A variation on this question is around Lego sets which contain multiple instruction booklets, since Get-BricksetSetInstructions will return a link to each of the PDFs for that set. There are some examples in a previous article which may cover what you are looking for.
Brickset recently updated their API to v3 and stopped supporting the previous API v2. After receiving a number of requests to update my PowerShell module for Brickset , (which was developed against v2 and consequently had stopped working), both via a GitHub issue and some direct contact (including, surprisingly to me, internal email at work) I decided I’d better put some effort into updating it. I’d had a quick look at the v3 API not long after it had been made available, and as far as I remember it was still only SOAP based.
A few weeks ago I took the HashiCorp Certified: Terraform Associate Exam. As part of a learning exercise to get more experience with this technology, having had some basic hands-on experience I booked the exam a short while in advance to have a target to focus the learning. I used a combination of the online certification guide at Hashicorp and a few courses available from Pluralsight by Ned Bellavance: Terraform - Getting Started Terraform Deep Dive Implementing Terraform on Microsoft Azure The guide at Hashicorp was excellent for covering the basics with a particular focus on the exam topics.
Over the years I’ve used a few different methods to combine two JSON files using PowerShell, but today I found a neat way to do it, so thought I would document it here for easy recall next time I need to do it. Consider two basic JSON files to use for an example: It’s easy to start working with them as objects in PowerShell, but I always forget that you can’t then just concatenate them together since they are PSCustomObjects:
I passed the AZ-400 Azure DevOps exam last week, so thought I would share a few thoughts for anyone else considering it. I mostly used the AZ-400 course on Linux Academy by Tim Lawless to study for it and found it an excellent resource. I thought Tim did a great job of not just covering the topics as per the published curriculum, but also went further into illustrating many of the third-party integrations with Azure DevOps.
Intro Today, we have released a new version of PowervRA, 4.0.0 with support for vRA Cloud and vRA on-premises version 8.0. The observant among you will notice that we’ve incremented the PowervRA version from 3.7.0 to 4.0.0. We’ve done this since there is a significant breaking change. The API for vRA Cloud / 8.0 is completely different to that which exists for vRA 7.x and earlier. If you’ve been with the product for a while you’ll be aware of the pain challenge it has been to work with since inception due to the split brain nature of the product, more info here and here.