Automating SonarCloud with PowerShell – Part 3 Onboarding a User
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
1y ago
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: We can see that a URL of  ..read more
Visit website
Automating SonarCloud with PowerShell – Part 2 Onboarding a Project
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
1y ago
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. False Start Initially this looked like it would be a very straightforward job, the SonarCloud Web Api has documentation for creat ..read more
Visit website
Automating SonarCloud with PowerShell – Part 1 Introduction
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
1y ago
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. Coming up in Part 2 and later of this tale will feature how I reverse engineered the Web API to f ..read more
Visit website
Authenticating to GitHub using Git for Windows and a Personal Access Token fails
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
2y ago
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: repository not found login failed use ctrl+c to cancel basic crede ..read more
Visit website
PowerShell Brickset Module version 2.0.1+: Downloading Lego Instructions
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
2y ago
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. However, in this article I’m providing a better example for the more complex scenario where ..read more
Visit website
PowerShell Brickset Module: Updated for API v3 and PS 7.1
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
2y ago
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. This had put me off updating the PowerShell module, since I had want ..read more
Visit website
HashiCorp Certified: Terraform Associate – Exam Experience
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
2y ago
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 topi ..read more
Visit website
Combine Two JSON Files With PowerShell
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
3y ago
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: The solution is to use an array instead. Today I found a neat solution in this StackOverflow post which uses the Array subexpression operator, rather than more long wind ..read more
Visit website
AZ-400 Azure DevOps Exam Experience
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
3y ago
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. To be fair it made a lot of sense to do this, since at a minimum at least an awareness of these integrations for common software build and deploy tools such as Jenkins, So ..read more
Visit website
PowervRA 4.0.0 released with support for vRA Cloud and 8.0
Jonathan Medd's Blog | Automating anything that moves
by Jonathan Medd
3y ago
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. Thankfully that ..read more
Visit website

Follow Jonathan Medd's Blog | Automating anything that moves on Feedspot

Continue with Google
OR