mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
1.8 KiB
1.8 KiB
Read this on the main serverless docs site
Azure - Deploy
The serverless deploy command deploys your infrastructure and app code via the Azure Resource Manager API.
serverless deploy
The sls deploy apim command will deploy API management as configured within serverless.yml. If you have it configured, it will automatically deploy as a lifecycle event of sls deploy. However, if you make changes to your configuration or just want to deploy APIM, this will do the job
Options
--resourceGroupor-g- Specify the resource group name--stageor-s- Specify stage name--regionor-r- Specify region name--subscriptionIdor-i- Specify subscription ID--configor-cName of your configuration file, if other thanserverless.yml|.yaml|.js|.json.--noDeployor-nSkips the deployment steps and leaves artifacts in the.serverlessdirectory--verboseor-vShows all stack events during deployment, and display any Stack Output.
Artifacts
After the serverless deploy command runs, all created deployment artifacts are placed in the .serverless folder of the service.
Examples
Deployment
serverless deploy
# Deploy APIM
sls deploy apim
This is the simplest deployment usage possible. With this command, Serverless will deploy your service to the defined Azure platform endpoints.
Provided lifecycle events
deploy:deploydeploy:list:listdeploy:apim:apim