About 1,340,000 results
Open links in new tab
  1. 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.

  2. 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 functions: A function is a block of code that can be called by name. It can take input and return output. Functions are defined using the function keyword.

  3. 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 …

  4. 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. The most common use is to run the function or cmdlet as an elevated user account.

  5. 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 where the script is saved. Saving a script with the .psm1 extension means that you can use the module cmdlets, such as Import-Module.

  6. 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 …

  7. about_Prompts - PowerShell | Microsoft Learn

    Mar 24, 2025 · Describes the `prompt` function and demonstrates how to create a custom `prompt` function.

  8. 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.

  9. 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 modules Create PowerShell drives Run arbitrary commands Change preference settings

  10. 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.

Refresh