
Functions - PowerShell | Microsoft Learn
Jan 23, 2025 · Learn how to create reusable PowerShell functions, implement best practices, and avoid common pitfalls in function design, error handling, and parameter validation.
about_Functions - PowerShell | Microsoft Learn
Apr 17, 2025 · A function is a list of PowerShell statements that has a name that you assign. When you run a function, you type the function name. PowerShell defines two kinds of …
Create a PowerShell function from the command line - Azure …
Aug 24, 2023 · In this article, you use command-line tools to create a PowerShell function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless …
Add Credential support to PowerShell functions - PowerShell
This article shows you how to add credential parameters to PowerShell functions and why you'd want to. A credential parameter is to allow you to run the function or cmdlet as a different user. …
How to Write a PowerShell Script Module - PowerShell
Jun 9, 2022 · The following steps describe how to create a PowerShell module. Save a PowerShell script with a .psm1 extension. Use the same name for the script and the directory …
Create function app resources in Azure using PowerShell
May 2, 2023 · The Azure PowerShell example scripts in this article create function apps and other resources required to host your functions in Azure. A function app provides an execution …
about_Prompts - PowerShell | Microsoft Learn
Mar 24, 2025 · Describes the `prompt` function and demonstrates how to create a custom `prompt` function.
Set-Alias (Microsoft.PowerShell.Utility) - PowerShell
The Set-Alias cmdlet creates or changes an alias for a cmdlet or a command, such as a function, script, file, or other executable. An alias is an alternate name that refers to a cmdlet or command.
Customizing your shell environment - PowerShell | Microsoft Learn
Feb 26, 2025 · A PowerShell profile is a script that runs when PowerShell starts. You can use the profile to customize the environment. You can: Add aliases, functions, and variables Load …
Create a PowerShell function using Visual Studio Code - Azure …
Jul 18, 2024 · Learn how to create a PowerShell function, then publish the local project to serverless hosting in Azure Functions using the Azure Functions extension in Visual Studio Code.