+ Start a Discussion

Azure DevOps and SFDX

Is it possible to run Azure DevOps pipelines using Salesforce DX? Presumably the sfdx cli needs to be installed, but unsure of a starting point.

I've seen a video leveraging ANT scripts, but nothing so far with sfdx.

Ajay K DubediAjay K Dubedi
Hi AndrewTaylor

You can use Azure directly from Visual Studio Code through extensions.
Using either the Azure CLI or the Azure App Service extension, you can have your application running in Azure in minutes.

Visual Studio Code Marketplace:
There are many VS Code extensions on the Marketplace that make it easy to build and host applications on Azure.

- Azure CLI tools
- Azure app service
- Azure cosmos DB
- Azure Storage
- Azure function 
- Azure Account 
- Docker
- Azure Resource Manager Tools

There is also a Node Pack for Azure extension pack which bundles useful Azure extensions for Node.js developers into a single installation.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Ajay Dubedi
Hanh LuuHanh Luu
Hi all, 
Does anyone know where can I find a sample of YAML file for Salesforce depoyment pipeline on Azure DevOps? thanks in advace. 
Please look into https://www.sfpowerscripts.com/ for Azure Pipelines extension for Salesforce DX and Sample pipelines
Leanbridge TechnologiesLeanbridge Technologies
Azure DevOps and SFDX
See : Azure DevOps (http://leanbridgetech.com/devops-as-a-service/) with Salesforce - YouTube (https://www.youtube.com/watch?v=KPGaVO72I1s)
We have 3 CI/CDs going to SF. Each first has a Build box that runs unit test, and then a manual Azure task deploys to a Test box with no unit tests run. Then, we have a few Azure tasks that execute other types of tests.
DevOps Training 9DevOps Training 9
@Ajay K Dubedi Bro Thanks for Sharing The Inforamtion 

Regards : https://devopstraininginpune.com/
Amol Bhalerao 7Amol Bhalerao 7
Hello Guys,

Here is a step by step guide to setup the automated deployment process using SFDX and Azure devops.
Turn your autopilot mode on !!
Hamas JamdasHamas Jamdas
Hi, this is an interesting topic, I also want to note that Ergonized is now very popular in using their services for Salesforce. So you can also learn about them https://clutch.co/profile/ergonized. Since this industry is now very popular.
Rohit RadhakrishnanRohit Radhakrishnan
Hi, I've this blog for getting started with Azure and Salesforce.

For the requirement in the ask here, include the "trigger" function in your pipeline (yml file). 
For Eg:
- master

The above two lines could trigger you pipeline if there is a push to you repo's master branch. There are various comnbinations of triggers with branches include & exclude options available.
https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#ci-triggers  (https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#ci-triggers)

Now using sfdx if you have a push to the repo where the pipeline (yml file) exists, you can trigger the pipeline.

Mark as best answer if this helps.

Himanshu Mishra 2Himanshu Mishra 2
Thank you for the solution!

Jirong HuJirong Hu
We are starting Salesforce Devops. Is there a DevOps subforum here? To start with, my first question is if all Salesforce orgs/repos are on cloud, how can they connect to our on premise Enterprise GitHub? Based on my experience with Azure pipeline, it will be petty hard to get connection back into our inhouse GitHub for our organization.