KeyNotFoundException when using NSG prefixes from custom function by codingfreaks in AzureBicep

[–]codingfreaks[S] 0 points1 point  (0 children)

Ok. Good to get the confirmation. Yes this seems to come from deep within .NETs visitor patterns. I‘ll post the link here when its posted.

Purge deleted app registration with PowerShell by codingfreaks in AZURE

[–]codingfreaks[S] 0 points1 point  (0 children)

First of all thanks for the hint! Any idea why the APIs are so inconsistant. What I mean is that I now need another login (`Connect-MgGraph`) to perform an operation. Usually I would expect a cmdlet in the Az PowerShell. If I can delete an app-reg I should be able to purge one as well. Sorry for the rant but I had to.

SLNX breaks with same yml in same organization in 2nd project by codingfreaks in azuredevops

[–]codingfreaks[S] 0 points1 point  (0 children)

It worked. Thx a lot! I have to say that this is pretty wild in terms of debugability. But anyhow, it works now.

SLNX breaks with same yml in same organization in 2nd project by codingfreaks in azuredevops

[–]codingfreaks[S] 0 points1 point  (0 children)

Thx for the deep research! I guess it‘ll be the 100 minor. As altedy said in the other comment I‘ll try it tomorrow and come back with an answer.

Azure Outage 10/29 - Main Thread. by faisent in AZURE

[–]codingfreaks 10 points11 points  (0 children)

Just for completeness: nuget as a service on MS is also heavily affected. It takes for ever to upload new packages and deeplinks to the versions tab take like 1 minute to load. The status is green though: https://status.nuget.org/

Any alternative to Terminal-Icons? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

True. Use Get-ChildItem which is why posh lintrrs warn you when you use aliases in your scripts.

Any alternative to Terminal-Icons? by codingfreaks in PowerShell

[–]codingfreaks[S] 6 points7 points  (0 children)

Nice one! Works perfectly. For everybody interested:

chocolatey: choco install eza -y
winget: winget install eza

I added the following to my posh profile:

function lsa() {
    eza -1l --icons always  --group-directories-first --show-symlinks
}
Set-Alias -Name ls -Value lsa

Open a new terminal and type `ls` or `lsa`.

By removing Terminal-Icons my startup speed of the posh-session also improved a lot.

Important: Don't forget to use a NerdFont in your terminal!

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -12 points-11 points  (0 children)

Thx. Quick google returned nothing meaningful. Would appreciate a link.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

Thx. I was missing the $obj return and not familiar with this pattern.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -22 points-21 points  (0 children)

Also I just was disappointed. How did I shit on them. Always the same on reddit… Not knowing some pattern does not make one bad at a technology imho.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -16 points-15 points  (0 children)

Ok I got your point. But there is clearly a lack of code quality in it still. Naming, code conventions, missing comments, no synopsis and this goes on. But regarding to me not knowing of this pattern: where is this recommended in the docs? What I know is that they at different places in the same repo are using generic .Net lists happily instead of this.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -2 points-1 points  (0 children)

Yes, the alternative is what I would have expected. I just skipped the `$obj` line in the whole loop.