Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

serverless/serverless-azure-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Functions Plugin

This plugin enables Azure Functions support within the Serverless Framework.

Getting started

Get a Serverless Service with Azure as the Provider

  1. Clone gitrepo: git clone -b dev https://github.com/pragnagopa/boilerplate-azurefunctions.git.
  2. npm install

Get an Azure Subscription

Create Service Principal User for your Azure subscription

  1. Create a Service Principal User with portal or Azure CLI
  2. Get tenant ID
  3. Get Azure subscription ID
  4. Get application ID. Note this is also referred to as the client id.

Set the following environment variables:

  • azureSubId: YourAzureSubscriptionID
  • azureServicePrincipalTenantId: servicePrincipalTenantId
  • azureservicePrincipalClientId: servicePrincipalClientId
  • azureServicePrincipalPassword: servicePrincipalPassword

Note: If you created Service Principal User from Portal, servicePrincipalPassword is the authentication key

Update the config in serverless.yml

Open up your serverless.yml file and update the following information:

service property

service: my-azure-functions-app # Name of the Azure function App you want to create

Quick Start

  1. Deploy a Service:

Use this when you have made changes to your Functions or you simply want to deploy all changes within your Service at the same time.

serverless deploy
  1. Deploy the Function:

Use this to quickly upload and overwrite your Azure function, allowing you to develop faster.

serverless deploy function -f httpjs
  1. Invoke the Function:

Invokes an Azure Function on Azure

serverless invoke --path httpQueryString.json -f httpjs
  1. Stream the Function Logs:

Open up a separate tab in your console and stream all logs for a specific Function using this command.

serverless logs -f httpjs -t
  1. Remove the Service:

Removes all Functions and Resources from your Azure subscription.

serverless remove

About

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 37