In this week's Dev-Talk Tuesday, we’re diving into a PowerShell function called New-Directory. This function is a simple yet powerful tool that creates a directory at a specified path, while also ...
When you first start writing scripts, modularity, reusability, and best practices may not be top of mind. As your scripts become more complex, however, creating reusable elements becomes essential. By ...
A function is a block of code that performs a specific task. It is a reusable piece of code that can be called from anywhere in your script. Functions help to modularize your code, making it easier to ...
Once you deploy to Azure, you want to grab the Url for the PowerShell Azure Function you created, it looks like this https://powershell-azure-function-return-excel ...
Last week, we introduced our custom New-Directory function. This week, we’re walking you through the process of setting up PowerShell 7 and preparing your system to run the New-Directory function.
Install .NET Core SDK 2.2+ (required by Azure Functions Core Tools and available on all supported platforms). Install version 2.x of the Azure Functions Core Tools.
Create PowerShell functions only for reusable code, not unnecessary script fragmentation. Avoid over-engineering small PowerShell scripts that become difficult to read and maintain. Keep PowerShell ...
Here's how to make the jump from simple lines of code to something that's a lot more useful. After reading countless blogs online, purging through hundreds of pages of books, you feel comfortable ...
For fixing Windows errors, we recommend Fortect: Fortect will identify and deploy the correct fix for your Windows errors. Follow the 3 easy steps to get rid of Windows errors: Learn how to master ...
The next time you need to wait on a step in your script, don't just add a delay. Instead, use a Wait-Action function to wait just the right amount of time. A script is all about defining a set of ...