Casper's adventures

Blog posts About Casper

Looping over complex objects in Azure Pipelines

The benefit of loops in Azure Pipelines

A common situation I run into when creating pipelines is that similar steps should take place for different enviroments. In software development we are all great fans of the DRY principle. What we sometimes forget is that it can be applied to IaC and pipeline configuration too. In Azure pipelines we can easily prevent repeating ourselves by looping over object parameters!

Tags: DevOps Pipelines

Read more

Restoring Azure SQL DBs using Private Link

Two non-trivial situations occur when using a private link to restore a SQL database using a private link; (1) the export gets stuck on 1% and (2) the SQL credentials are modified after restoring. Let’s find out how to solve those issues.

Tags: Azure Aql Pipelines Privatelink

Read more

Creating a scheduled pipeline for noteworthy notifications

Cronjob pipeline

Releases for critical Azure components have occurred, and you were not aware of them. Ay! Wouldn’t you like to get an automatically notified (on Slack, Outlook or using another webhook) whenever a new version gets supported?

Tags: Pipelines DevOps

Read more

Mastering JMESPath queries in the Azure CLI

Mastering JMESPath queries in the Azure CLI

Both the Azure CLI and pwsh commandlet interacts with the Azure REST API and allows us to retrieve information about deployed resources in the terminal. For instance, we can find out which Azure Kubernetes upgrades are available through
az aks get-upgrades --resource-group <rg-name> --name <aks-name>
but it may not be easy to filter the relevant information out of the returned info. I will show you how to do that in this blog.

Tags: DevOps Azure jq jmespath

Read more

Find me here