A: Get notified of changes to the azure devops service - azure

I've been looking around for a while now but I can't seem to find a way to get push messages from the azure devops team for their release notes regarding the azure devops service. I would like to be able to incorporate the changes/release notes into a teams channel (the app). I was surprised by a change to the GET git repo list api url. Which broke some stuff.
I can't really find any way to subscribe to changes to their service, other then to watch the ms-documentation github repo.
What are the ways in which you make sure you are not surprised by breaking changes?

Testing this API: Repositories - List, we can still retrieve git repositories under this project.
In addition, sprint-184-update for Azure DevOps service brings new feature: Disable a repository.
And by reference to this doc: Build Azure Repos Git or TFS Git repositories, Azure DevOps enables some limitation to Azure Pipelines regarding to Azure Repos Git repository like Limit job authorization scope to referenced Azure DevOps repositories. Please check it.
Update>>This API: GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories?api-version=6.1-preview.1 does the same thing to retrieve git repositories.
And Azure DevOps service doesn't provide notifications about repositories changes(Add, Delete), see: Supported subscriptions for details. Also currently official released APIs list here: Azure DevOps Services REST API Reference.
BTW, you can create a new suggestion ticket here. The product group will review these tickets regularly, and consider take it as roadmap.

Related

Is there a way to integrate the contributions/commits from Azure DevOps to GitHub?

In the past 6 months I've been working with Azure DevOps. Due to that, my GitHub contributions chart looks a bit empty.
I would like to integrate all of my contributions from Azure DevOps to Github's contributions chart.
I did some research, browsed for different extensions/APis. Though there are plenty out there, it didn't seem like they covered what I wanted to achieve.
Is this possible? Any suggestions?
First of all, you should understand that GitHub and Azure DevOps are independent systems. Azure DevOps has provided some functions e.g REST API, extensions to get repository from GitHub. But It’s a one-way data transfer from GitHub to Azure DevOps.
There is no supported REST API or extensions that can sync commits from Azure DevOps to your GitHub according DevOps documents at present.
I'm afraid that you could only sync contributions/commits manually.
If you want GitHub contributions chart logged your activity, you should make commits in GitHub.

How to backup online Azure DevOps source control and restore to an instance of on-premises Azure DevOps Server

I am trying to determine how to backup the online ADO account that I created on Microsoft's servers so that I can restore it on my own physical server. I have a few projects already started along with work items, repositories, pipeline jobs and NuGet artifacts already in place. It would take quite a while to rebuild the projects manually, not impossible, just not desirable.
I have looked and have not found any resource as to how to perform this or if it is even possible. Any help from someone who knows would be greatly appreciated!
Currently there is available extension: Azure DevOps Migration Tools, which allow you to migrate Teams, Work Items, Plans & Suits, and Shared Queries, & Pipelines from one Project to another in Azure DevOps/TFS both within the same Organization, and between Organizations. See: https://nkdagility.github.io/azure-devops-migration-tools/ for latest guidance.
In addition, for repositories, there is no such extensions, you could try to clone an existing Git repo and then push it to a new remote repo server.
BTW, you could use Rest APIs: Artifact Details to get artifacts and then publish them to new feed on Azure DevOps Server.

How to use Azure DevOps Git Repository with Azure Static Web App?

Azure have a new(ish) static hosting product which would be very useful. The idea is you can check your static site code into Git, and have it deploy to your site. You can even view branches as a sort of preview workflow.
The problem is Azure Static Web service only seems to work with Github.
Our organisation has all its repos in Azure DevOps, which is a seamless unified environment for our repos, build pipelines, and Azure web services. All our Devs are setup with Azure Dev ops git accounts, they dont have (non private) github accounts.
We dont want to have to go out and setup a duplicate git hosting outside of Azure - along with the pain of security, authorization, or linking with Active directory.
We want to use Azure Git with Azure Static web.
To a large extent, git is git.
Does anyone have any workarounds, hacks or tutorials to make these two Microsoft Azure products talk to each other?
Azure Static Website now supports Azure DevOps Git Repo and continuous deployment from Azure DevOps pipeline. Please follow the bellow steps:
Step 1: In the create resource page use Other as deployment source
Step 2: Once the resource is created, get the deployment token
Once you commit your code in Azure DevOps Git repo
Step 3: Create a starter pipeline and use the below code snippet (use the deployment token grabbed above)
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
submodules: true
- task: AzureStaticWebApp#0
inputs:
app_location: '/WebSite'
api_location: '/api'
output_location: 'dist/WebSite'
env:
azure_static_web_apps_api_token: $(deployment_token)
The above code snippet is for the following Azure DevOps git repo structure
I have written a step by step guide to do the same. Please refer if you need further information.
The ETA for Azure DevOps support is February.
What you'll be able to do is:
Create a Static Web App without linking it to GitHub
Add an Azure Pipelines YAML to your repo with the task (we'll provide
an example YAML that you can copy/paste). The task looks a lot like
the GitHub Action in terms of input and capabilities. You'll need to
set a pipeline variable for the deployment token (retrieved from the
portal).
No support for PRs/environments yet. We don't have the same hooks as
GitHub to act on PR open/close. We'll continue to investigate.
Please refer to this ticket. If you have any questions or suggestions, please also share it in the ticket.
Azure Devops support with Azure static web apps is announced and available in public preview.
You can read the documentation to publish an App with Azure Devops.
Also i published a video and a blog to publish an angular application, you can refer the same.

Azure and GitHub Connections are not well synced

While creating a project in Azure DevOps , the repository connection to the GitHub has been pointed.
But if you push any code the GitHub repository, this update is not seen from the Azure DevOps Reps view.
Even the creation of the new branches at GitHub site are not shown in Azure DevOps.
This is because it doesn't do what you think it does. Connection is not supposed to sync content across repositories. Its "just" being used to connect to the repository on the build agent and pull the sources. If you want to sync repos in Github and Azure Repos you'd need to implement a custom solution. Nothing built-in exists in Azure Repos or Github.
https://learn.microsoft.com/en-us/azure/devops/boards/github/connect-to-github?view=azure-devops

DevOPS with Azure Data Factory

I have created Azure Data Factory with Copy Activity using C# and Azure SDK.
How can deploy it using CI/CD ?
Any URL or link will help
Data Factory continuous integration and delivery is now possible with directly through the web user interface using ARM Templates or even Git (Github or Azure DevOps).
Just click on "Set up Code Repository" and follow the steps.
Check the following link for more information, including a video demostration: https://aka.ms/azfr/401/02
One idea that I got from Microsoft was that using the same Azure SDK you could deserialize the objects and save down the JSON files following the official directory structure into your local GitHub/Git working directory
In other words you would have to mimic what the UI Save All/Save button does from the portal.
Then using Git bash, you can just commit and push to your working branch (i.e. develop) and from the UI you can just publish (this will create an adf_publish release branch with the ARM objects)
Official reference for CI using VSTS and the UI Publish feature: https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment
Unfortunately, CI/CD for ADF is not very intuitive at first glance.
Check out this blog post where I'm describing what/how/why step by step:
Deployment of Azure Data Factory with Azure DevOps
Let me know if you have any questions or concerns and finally - if that works for you.
Good luck!
My resources on how to enable CI/CD using Azure DevOps and Data Factory comes from the Microsoft site below:
Continuous integration and delivery (CI/CD) in Azure Data Factory
I am still new to DevOps and CI/CD, but I do know that other departments had this set up and it looks to be working for them.

Resources