Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Pulumi.yaml
README.md
azureFunction.ts
index.ts
package.json
sas.ts
tsconfig.json

README.md

Deploy

Azure Functions

An example Pulumi component that deploys a TypeScript function to Azure Functions.

Running the App

  1. Create a new stack:

    $ pulumi stack init azure-fn
    
  2. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):

    $ az login
    
  3. Restore NPM dependencies:

    $ npm install
    
  4. Run pulumi up to preview and deploy changes:

    $ pulumi up
    Previewing changes:
    ...
    
    Performing changes:
    ...
    info: 9 changes performed:
        + 9 resources created
    Update duration: 1m20.493392283s
    
  5. Check the deployed function endpoint:

    $ pulumi stack output endpoint
    https://fn-app051a4f8b.azurewebsites.net/api/fn
    $ curl "$(pulumi stack output endpoint)"
    Greetings from Azure Functions!
    ...