2.2 KiB
Read this on the main serverless docs site
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.ymlconfiguration 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.