Azure Functions
An example Pulumi program that deploys a TypeScript function to Azure Functions.
Running the App
Create a new stack:
$ pulumi stack init azure-fnLogin to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az loginRestore NPM dependencies:
$ npm installConfigure the location to deploy the example to:
$ pulumi config set azure:location <location>Run
pulumi upto preview and deploy changes:$ pulumi up Previewing changes: ... Performing changes: ... info: 9 changes performed: + 9 resources created Update duration: 1m20.493392283sCheck the deployed function endpoint:
$ pulumi stack output endpoint https://fn-app051a4f8b.azurewebsites.net/api/fn $ curl "$(pulumi stack output endpoint)" Greetings from Azure Functions! ...