The post answers the following questions: Can you create SAS Viya CI/CD pipelines with Azure DevOps? What use cases can be covered? How to approach the set-up of a CI/CD pipeline? Read this post to find out more.
The goal is to share a series of recent experience with SAS Viya with Azure DevOps. The post series will cover:
A CI/CD pipeline is a sequence of events or jobs that can be executed. CI stands for continuous integration. CD means either continuous delivery or continuous deployment.
My CI/CD interpretation is to get “something developed in SAS Viya” (SAS program, SAS Studio flow, decision, model) into the hands of the end-users.
Azure DevOps is a Software as a service (SaaS) DevOps toolchain and orchestration platform from Microsoft. Azure DevOps is language, platform and cloud provider agnostic.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
Several services define Azure DevOps:
The focus of the post series is on Azure Repos and Azure Pipelines.
Azure DevOps also includes Azure Boards. These are agile tools to plan, track, and discuss work across your teams. Afterward, in Azure Artifacts you can create, host, and share packages with your team. Subsequently, Azure Test Plans help you test and ship with confidence using manual and exploratory testing tools. Lastly, through the Extensions Marketplace you can access hundreds of community-built extensions from Teams and Slack to SonarCloud and other apps and services.
Source: Microsoft Azure DevOps Overview.
Microsoft Azure DevOps is ranked by Peerspot.com:
With Azure DevOps, you can create pipelines operating outside or inside SAS Viya.
Outside SAS Viya, you could use Azure DevOps to:
Inside SAS Viya, you can use Azure DevOps to:
You are only limited by your imagination (and the amount of code you are willing to add to your Git repository and run inside the pipeline).
The post series will focus on the "inside SAS Viya" CI/CD pipelines.
You can resume the SAS Viya and Azure DevOps interaction in four steps:
The key idea is to store “the whole lot” ready for delivery or deployment in a Git repository.
“The whole lot” includes:
“The whole lot” excludes: data, secrets, keys, certificates. We will see in a next post how to use SAS Viya with an Azure Key Vault in an Azure Pipeline.
Version control is handled by a Git repository. In Azure DevOps, the default Git repository is stored in Azure Repos. You can choose GitHub, GitLab, Bitbucket instead of Azure Repos. GitHub, being a Microsoft company, is very well integrated with Azure DevOps.
The Azure pipeline definition, a YAML file, is stored in the same Git repository.
The Azure pipeline clones the Git repository on an agent and executes the steps in the pipeline script.
Pipeline agents are virtual machines (VM). The agent interacts with a SAS Viya deployment through:
The agents can be Microsoft hosted or self-hosted.
Microsoft hosted: At execution time, the pipeline will fetch, from the Azure cloud, a VM fulfilling certain requirements.
Self-Hosted: You can use a VM you have already deployed. You will have to register it as an agent, in Azure DevOps, before you can use it in a pipeline. Then you must install the software and the packages you need, copy the necessary files, etc.
For Azure DevOps to interact with SAS Viya, a key element is to use and configure a self-hosted agent. We will develop this topic in a future post.
The post briefly explained that you can create SAS Viya CI/CD pipelines with Azure DevOps (Pipelines and Repos). Next, the post looked at possible CI/CD pipelines within SAS Viya. Finally, it provided a four-step approach to set-up a CI/CD pipeline.
In a next post, we will look closer at a SAS Viya with Azure DevOps Data Pipeline.
Thank you for your time reading this post. If you liked the post, give it a thumbs up! Please comment and tell us what you think about the post content. If you wish to get more information, please write me an email.
Find more articles from SAS Global Enablement and Learning here.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.