Seeking your assistance in how to trigger azure devops pipeline CI CD using powershell
Thanks
There are a few PowerShell modules out there but I don't know a module that provides a cmdlet to trigger a pipeline. However, Azure DevOps has an API including a Run Pipeline endpoint. Before you use it you have to Choose the right authentication mechanism. I usually use a Personal access token (PAT) for authentication in my scripts.
Related
I am working on setting up Azure DevOps CI CD pipeline for a project. In this case the git code repo for ASP.NET based application is hosted in Organization B and CI and CD is planned to be executed from Organization A. Both Organization A and Organization B has two separate Azure DevOps Urls. Now in this I am looking to setup CI and CD from Organization A with code repo hosted in Organization B.
Can anyone help me to know what is the best way to deal with this scenario
According to the documentation, it depends on whether you use a self hosted Azure DevOps Server, or Azure DevOps services.
Using Azure DevOps server 2020, you can only checkout repositories from the same organization.
In case you are using Azure DevOps services, the documentation provides you with the necessary information, how to implement the checkout from another Azure DevOps organization.
I have a timer triggered function that I'm looking to deploy in two different regions in an active-passive pattern. In disaster recovery scenario, I want to disable the active instance, then activate the passive instance in such a way that I can also keep record of this activity.
I know this can be done via powershell/Azure CLI, but I think doing this via Azure release pipelines should be better for auditing purposes. Does anyone know if this is doable?
I donot know much about Azure funtions. But there are azure powershell task and azure CLI task that you can use to run the scripts in azure release pipeline, Since it can be done via powershell/Azure CLI.
In order to run the powershell/Azure CLI scripts in azure release pipeline. You need first connect your azure devops to your Microsoft Azure subscription via service connection. Check here to create a service connection in azure devops. This service connection is needed for azureSubscription parameter of azure powershell task/azure cli task
Then you can create a release pipeline and add azure powershell task or azure cli task to run the scripts.
No idea what all from Azure databricks can be based on Azure DevOps pipeline. We are planning to use github as repository.
Like can Azure databricks be coded in file and then that file i can manage in git repo?
Can we use Azure DevOps CD pipeline for deployment in Azure Databricks?
Can we use Azure DevOps CD pipeline for deployment in Azure Databricks?
The short answer is yes.
We could configure Azure Databricks workspace to use Azure DevOps and there is a task Databricks Script Deployment Task by Data Thirst, which will give you the option of deploying scripts, secrets and notebooks to Databricks.
For the details info, you can refer to following document:
CI/CD with Databricks and Azure DevOps
Hope this helps.
I am working on Azure Analysis service directly from portal.azure.com. Instead i want AAS be save as some file in git repo and deployed is managed through Azure DevOps. Not sure if this possible? How to proceed further on this
Currently, Azure Analysis Service don’t support implementing using Azure Devops.
I would request you to provide the feedback here:
https://feedback.azure.com/forums/556165-azure-analysis-services
All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
You could have a script task make a REST call to Azure from Azure DevOps, building the URL and payload from code, say passing in parameters, or by utilising a variable group.
Anyone know if it's possible to upload custom policies via an Azure DevOps task?
The release pipeline might look like this:
Staging Environment - Deploy from Git to IEF, add suffix _staging
Block pipeline for manual testing
Prod Environment - Deploy to IEF
without the staging suffix
It is possible through MS Graph API for Programmatic access to Custom Policies and Keysets.
You can use Graph API requests to create, update and delete custom policies. These are Graph API requests so you can integrate these in your pipeline but you need to manage the access token.
The MS Graph API is indeed the way to go. For a complete solution look here.
Details on integrating with a DevOps pipeline are here.
Reference 1. Check this blogpost on Custom Policies release automation with Azure DevOps
Reference 2. this extension is available in Azure DevOps marketplace, do the work somewhat similar
Reference 3. Here is Documentation from Azure, Deploy custom policies with Azure Pipelines