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:
- (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-extensions.git cd ps-functions-v2-programming-model-bundles
- Run the verification script: if it runs without issue, you should be all set to start local development. Otherwise, it should indicate what component of your setup is incorrect.
- 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
. - Install the extensions specified in the
extensions.csproj
file:func extensions install
- 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!