Deployment request
The Deployment request feature in Spark lets you submit a deployment request that will initiate a continuous integration / continuous deployment process (CI/CD). The request triggers a downstream application to initiate the process.
Prerequisites
Webhooks must be enabled. See How to: Automate workflows with webhooks.
Downstream web application that is capable of accepting
POSTmethod requests.Use the ImpEx APIs to move Spark services between environments and tenants.
Implement a deployment to production
The diagram and steps below describe how the Deployment request feature can be used with the required functionalities as part of a CI/CD process to deploy a Spark service from the UAT to PROD environment.
Define the user groups who can make a deployment request in Tenant configuration.
In the UAT environment, a user submits an Deployment request by selecting the Folder, Service, and Version.
Spark sends a notification to the downstream application via a
POSTmethod using the webhook.The downstream application receives the notification and conducts the following processing on the
UATenvironment:Check that the notification is a deployment request by inspecting the request body for
"UserAction": "DeploymentRequest".Acquire an access token via the Client credentials grant.
Generate the export package using the Export API, download and store it.
The downstream application then performs the remaining actions on the
PRODenvironment.Acquire an access token via the Client credentials grant.
Publish the previously exported package using the Import API.
Demo video
See an example of how a deployment request copies a service version between environments.
Guides
Here are sample workflows developed in Azure DevOps and GitHub Actions that demonstrate the CI/CD process.
Last updated

