Mats E.'s Avatar

Mats E.

@matsest.mxe.no

Coding cloud architect from Norway Working mostly with Azure ☁️ Interested in modern platforms, improving developer experiences, engaging in open source, and automating everything. πŸ§‘β€πŸ’» https://github.com/matsest | 🏠 https://mxe.no | @matsest elsewhere

311
Followers
426
Following
61
Posts
24.10.2024
Joined
Posts Following

Latest posts by Mats E. @matsest.mxe.no

The writing style in AI generated text is unmistakably non-personal and boring. With more content (posts, blogs, code) being made by AI I fear more people will attempt to mimic the same style.

Let's not forget to have room for personality, flair, linguistic diversity and typos.

09.06.2025 21:21 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Already tired of seeing AI written summaries in pull requests descriptions. Just feels so non-personal and bloated.

I would (almost) rather see "fix stuff" than to see a no-context summary of the diffs with endless file and line references.

09.06.2025 21:14 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - matsest/bicep-deploy-whatif-without-write-demo: Demo of running Bicep What-If deploy without write permissions Demo of running Bicep What-If deploy without write permissions - matsest/bicep-deploy-whatif-without-write-demo

Ever wanted to do a @biceplang.bsky.social What-If Deployment without Write permissions? πŸ’ͺ

Now you finally can! Using the newly released ValidationLevel deployment option you can e.g. more securely run a what-if to validate change from a PR:

#azure #biceplang

github.com/matsest/bice...

01.06.2025 19:23 πŸ‘ 5 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Post image Post image

On the left, the lie.
On the right, reality.

28.05.2025 20:52 πŸ‘ 28 πŸ” 2 πŸ’¬ 5 πŸ“Œ 0

1 year ago ~to the day~

14.05.2025 18:32 πŸ‘ 13829 πŸ” 2561 πŸ’¬ 187 πŸ“Œ 59
Preview
Release v2.1 Β· matsest/gh-runner-az-private-network-demo This release adds support for specifying default outbound access and NAT Gateway deploy to prepare for the requirement of explicit outbound access: On September 30, 2025, default outbound access f...

Just released an update to my demo repo for @github.com hosted runners with #Azure Private Networking to now support explicit outbound access using a NAT Gateway (default outbound access will be retired September 30th 2025).

#githubactions #biceplang #powershell

13.05.2025 17:53 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Everyone so excited about MCP as the latest AI awesome sauce

Me: looks like an API gateway

@monkchips.com: SOAP for AI tools cool cool

Time to answer all the same questions again

04.04.2025 07:30 πŸ‘ 11 πŸ” 4 πŸ’¬ 3 πŸ“Œ 1
Preview
Harden-Runner detection: tj-actions/changed-files action is compromised - StepSecurity tj-actions/changed-files

This is an particularly ugly example of a GitHub Actions supply-chain attack.

All tags updated to point to malicious version. Commit introduced via false renovate commit.

www.stepsecurity.io/blog/harden-...

More info in repo issue: github.com/tj-actions/c...

15.03.2025 08:12 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 1

Thanks! Feel free to create an issue or a PR if you come across anything that doesn't work or should be improved πŸ˜‰

10.03.2025 13:45 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

and I managed to sneak in a fun little excercise in subnet math πŸ€“

Link to the PowerShell function here: github.com/matsest/gh-r...

10.03.2025 09:07 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

..and I've added some nicely formatted output with URLs to #Azure and #GitHub πŸͺ„

10.03.2025 09:05 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - matsest/gh-runner-az-private-network-demo: Demo for Azure private networking for GitHub-hosted Runners Demo for Azure private networking for GitHub-hosted Runners - matsest/gh-runner-az-private-network-demo

Want to try out Azure Private Networking for GitHub-hosted Runners?

With the use of @biceplang.bsky.social, @github.com APIs and some PowerShell I made a end-to-end deployment of both the required Azure and GitHub configurations.

Up and running in less than 1 minute! ⚑
github.com/matsest/gh-r...

10.03.2025 09:02 πŸ‘ 2 πŸ” 1 πŸ’¬ 2 πŸ“Œ 0
Post image

come on dude we’re running out of cards

05.03.2025 00:34 πŸ‘ 42 πŸ” 6 πŸ’¬ 2 πŸ“Œ 0

Billing is more or less static since it does not scale to zero. So not much different from a small VM in my experience.

Depending on your usecase I would consider Container Apps. More batteries included, better scaling up and down and with a more usage based billing.

06.02.2025 06:26 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

Oh boy, working in "serious IT" sounds like a miserable place to be 🀦

03.02.2025 15:29 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Oh no they've invented a much cheaper Bluetooth radio before any of us figured out how to make a product as useful as AirPods with our expensive Bluetooth radios

27.01.2025 19:18 πŸ‘ 588 πŸ” 38 πŸ’¬ 15 πŸ“Œ 1

...and there's the end credits. Still holds up as a fantastic game, even in 2025.

25.01.2025 13:35 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
The Importance Of Investing In Soft Skills In The Age Of AI | CSS-Tricks I am still an AI skeptic. The biggest risk I foresee is thatΒ if your sole responsibility is to write code, your job is at risk. It’s not time to panic, but I do see a lot of value in evolving your sof...

As I'm sharing some of the skepticism on current state of AI, this was a positive take to read.

Invest in core skills. Build transferable knowledge. Both soft skills, and a solid understanding of fundamentals within your field will make you resilient to current fads.

css-tricks.com/the-importan...

15.01.2025 23:07 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
a cartoon worm with a nick logo on the bottom right ALT: a cartoon worm with a nick logo on the bottom right
10.01.2025 14:42 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

I partly understand it, coming from a Linux background myself, but in total I agree with you, especially on cmdlet names. Super useful!

Personally I see it in a CLI setting. Would love to have more use of long+short-form parameter names for cmdlets, similar to --name/-n, --silent/-s etc.

09.01.2025 21:33 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

That's also a good tip! Variable validations are great!

A feature too rarely used in a lot of PowerShell code i see around.

09.01.2025 21:25 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

...and third maybe due to the very verbose syntax, especially for those utilizing it mostly for interactive command line shells.

(although aliases is underutilized in PowerShell as well! - bsky.app/profile/jsno...)

09.01.2025 21:02 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

A quite good summary of PowerShell.

I think it's underrated as a powerful cross-platform, high-lvl scripting language w/lots of advanced features under the hood. But many devs and engineers shy away from it.

Maybe due to the (outdated) Windows-only association. Others maybe due to things like this

09.01.2025 20:34 πŸ‘ 4 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

That's a good point - it's a much better check to use that method in this case.

I often tend to use typed variables, as PowerShell can be a bit too relaxed with implicit type conversions, but it's too bad that script analyzer don't pick cases like this stuff up, and no runtime warnings is printed.

09.01.2025 20:20 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

From the docs: "But PowerShell is very generous and allows for variables to be any type. If you decide to strongly type a value type, it cannot be $null. PowerShell converts $null to a default value for many types."

IMO PowerShell is too generous in these cases! 😁

09.01.2025 20:16 πŸ‘ 0 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

I agree! The lack of consistency in these type of language features is not very nice.

09.01.2025 20:13 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

The example code is based off an actual code I debugged where some logic where built around a [string] type and where assignment of $null was used. Took some time to figure out it the first time.

09.01.2025 20:12 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Correct! It will also work "as expected", i.e. evaluating to $null, if the parameter has no type cast.

It's described specifically in the Value Types section here learn.microsoft.com/en-us/powers...

Would be more clear if assigning $null to a typed variable/param would cast a explicit error 🫠

09.01.2025 20:11 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Powershell code:

[CmdletBinding()]
param (
  [string]$MyParam = "foo"
)

if ($MyParam -eq "foo"){
    $MyParam = $null
}

if($null -eq $MyParam){
    Write-Host "The value is null" -ForegroundColor "Green"
} else {
  Write-Host "The value is NOT null" -ForegroundColor "Red"
}

Powershell code: [CmdletBinding()] param ( [string]$MyParam = "foo" ) if ($MyParam -eq "foo"){ $MyParam = $null } if($null -eq $MyParam){ Write-Host "The value is null" -ForegroundColor "Green" } else { Write-Host "The value is NOT null" -ForegroundColor "Red" }

A #powershell thing that's confused me several times (and I was reminded of today)...

What do you think the output of this script will be? And why? Is it as expected? πŸ˜‰

(PowerShell 7.4, code is in alt-text)

@jdhitsolutions.com @mrpowershell.bsky.social @steviecoaster.dev #pwsh

09.01.2025 19:42 πŸ‘ 8 πŸ” 0 πŸ’¬ 3 πŸ“Œ 0
Myself holding my new-born child

Myself holding my new-born child

Happy New Year!

The greatest gift of last year came just a few days before Christmas, and I'm grateful I got the chance to have a total of 3 weeks of time off to take care of our little one and spend time with the family.

Now reading myself for getting back to work again 😴

06.01.2025 07:31 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0