This repository contains skeleton code for Azure PowerShell Functions in the V2 programming model.
- Install the Azure Functions Core Tools private build for your corresponding OS and architecture:
Build version | OS | Architecture | Download Link |
---|---|---|---|
Core Tools V4 | Windows | x64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.win-x64.4.0.5228.zip |
Core Tools V4 | Linux | x64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.linux-x64.4.0.5228.zip |
Core Tools V4 | OSX | ARM64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.osx-arm64.4.0.5228.zip |
Core Tools V4 | OSX | x64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.osx-x64.4.0.5228.zip |
Core Tools V4 | Windows | ARM64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.win-arm64.4.0.5228.zip |
Core Tools V4 | Windows | x86 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/Azure.Functions.Cli.win-x86.4.0.5228.zip |
Build version | OS | Architecture | Download Link |
---|---|---|---|
Core Tools V4 | Windows | x64 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/func-cli-4.0.5228-x64.msi |
Core Tools V4 | Windows | x86 | https://functionsintegclibuilds.blob.core.windows.net/ps-npm-insider-preview/func-cli-4.0.5228-x86.msi |
- (Optional) Install Azurite for storage emulation:
- Example:
npm install -g azurite
- Example:
- Clone this repository and cd into the function app root directory:
git clone https://github.com/michaelpeng36/ps-functions-v2-programming-model-bundles.git cd ps-functions-v2-programming-model-bundles
- If you are using storage emulation, run the below command in a separate PowerShell window to start storage emulation:
Otherwise, ensure that the appropriate KeyVault reference or connection string is set in the
azurite
AzureWebJobsStorage
property ofhost.json
. - Start Core Tools to begin local development:
There should be one HTTP function pre-written for you called
func start
HttpTrigger1
. - Continue writing your other functions in the V2 programming model!