Skip to content
Demo code for the Pluralsight Azure Functions Fundamentals course
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
.gitignore
Dockerfile
DurableWorkflow.cs
EmailLicenseFile.cs
GenerateLicenseFile.cs
OnPaymentReceived.cs
README.md
arm-deploy-function-app.ps1
azuredeploy.json
cli-create-function-app.ps1
cli-publish.ps1
docker.ps1
function-keys-demo.ps1
host.json
pluralsightfuncs.csproj
pluralsightfuncs.sln

README.md

To test locally

Set up a local.settings.json file:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "EmailSender": "your@email.address",
    "SendGridApiKey": "your SendGrid API key"
  }
}

You can then submit orders via powershell:

iwr -Method POST `
    -Uri http://localhost:7071/api/OnPaymentReceived `
    -Body '{ "OrderId":"123", "Email":"pluralsight@mailinator.com", "ProductId":"X101" }' `
    -Headers @{ "Content-Type"="application/json" }
You can’t perform that action at this time.