Tag: PowerShell

.NET Action, Func, Delegate, Lambda expression in PowerShell

In this post I’ll explain what is the equivalent of C# Lambda expression in PowerShell and how you can define and use lambda expressions, Func or Action in PowerShell. Lambda Expression ↔ ScriptBlock We can consider PowerShell ScriptBlock…

Read More »

Export SSL Certificate from Azure Web App

You can upload a pfx certificate into your Azure Web App. After you uploaded the certificate, if you open the context menu of the imported certificate, you will see the only available option is Delete. But how you…

Read More »

How to determine if a parameter is passed to a Powershell Cmdlet

Sometimes in a PowerShell function you need to know which parameters are passed to the method. For example you may have an optional parameter and you want to know if the optional parameter is passed to method or…

Read More »