Rollback the Serverless service to a specific deployment.
serverless rollback --timestamp timestamp
-tThe deployment you want to rollback to.
-vShows any Stack Output.
At first you want to run
serverless deploy list to show your existing deployments. This will provide you with a list of the ARM deployments from Azure. You can then use the timestamp of one of these deployments to set your infrastructure stack and app code to this specific deployment.
$ sls deploy list Serverless: Listing deployments for resource group 'sls-myapp-rg': Serverless: Deployments ----------- Name: sls-myapp-rg-deployment-t1562970576430 Timestamp: 1562970576430 Datetime: 2019-07-12T22:29:36.430Z ----------- Name: sls-myapp-rg-deployment-t1562970293429 Timestamp: 1562970293429 Datetime: 2019-07-12T22:24:53.429Z ----------- $ serverless rollback -t 1562970293429