Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 2.2 KB

deploying.md

File metadata and controls

57 lines (36 loc) · 2.2 KB

Azure - Deploying

The serverless-azure-functions plugin can deploy a Function App as well as other resources (storage account, App Insights, API Management, etc.). Here is some guidance on using the deploy command.

How It Works

The Serverless Framework translates all syntax in serverless.yml to an Azure Resource Manager Template and Azure function bindings

  • Provider plugin parses serverless.yml configuration and translates to Azure resources.
  • The code of your Functions is then packaged into a directory and zipped.
  • Resources are deployed in the following order: ARM template, Functions

Deployment Approach #1 - Upload Package to Function App

Note: Recommended for Function Apps running on Windows

Current default behavior. To set explicitly in serverless.yml, add this section:

deploy:
  runFromBlobUrl: false

Deployment Approach #2 - Run from Package in Blob Storage

Note: Not currently recommended for Function Apps running on Windows

To set in serverless.yml, add this section:

deploy:
  runFromBlobUrl: true

Visit the docs for more detail on the two approaches to deployment.

Rollback

By default, the rollback functionality is enabled. This allows for users to revert to a previous deployment should something go wrong with the current release. See our rollback docs for more detail.

Tips

Check out the deploy command docs for all details and options.