Using Azure DevOps Pipeline Variables in PowerShell Script Files

Using Azure DevOps Pipeline Variables in PowerShell Script Files

Azure Pipelines inherently provides the ability for PowerShell scripts to be defined and executed inline.

1- task: AzureCLI@2
2  displayName: Bicep apply
3  inputs:
4    azureSubscription: MyAzureDevOpsConnectionName
5    scriptType: pscore
6    scriptLocation: inlineScript
7    inlineScript: az deployment group create --resource-group $(AZ_PLATFORM_RESOURCE_GROUP_NAME) --name $(AZ_DEPLOYMENT_NAME)-$(AZ_ENV_NAME) 

Unfortunately, this can become very confusing in many situations and also repetitive, since, for example, an Azure Bicep deployment task is required in several stages, so that the task is repeated accordingly.

Read Blog Post
A struct with an interface is inefficient in .NET

A struct with an interface is inefficient in .NET

Structs have their advantages in .NET: they are especially efficient in the runtime if used correctly.

But if you use structs with an interface, the massive advantages unfortunately turn into disadvantages:
As soon as an interface is attached to a struct, Boxing comes into effect; the values are thus copied over and over again, which is usually not what you want - but it also shows up in the benchmarks.

Read Blog Post
Create Symbolic Links on Windows with .NET

Create Symbolic Links on Windows with .NET

Symbolic Links (often abbreviated as symlinks) are a type of file or folder shortcut in Windows that reference another file or folder in the file system, rather than copying its contents. Unlike a normal shortcut, a symlink acts as if it were the original file or folder, so any changes to the symlink will affect the original file and vice versa.

Read Blog Post
Web performance tests with k6

Web performance tests with k6

Performance testing is a crucial step in ensuring that your website can handle high levels of traffic and provide a smooth user experience. One tool that can help you perform performance tests on your website is k6. In this blog post, we’ll go over how to use k6 to test the performance of your website.

Read Blog Post