Azure Repo Git Integration With Atlassian Jira - azure

At work we are using Azure repositories as version control and Jira for our project management needs and issue management. We wanted to integrate both of these platform, so I sucsseffully installed Azure Pipeline For Jira and tested it out with a demo repo on Github with Github for Jira and it worked, it integrated my git actions on issue pannels. But somehow it does not support the Azure repos (at least there is no free version).
Let me know if any one has a work around for this. (Obviously not paid)
My main Question is, now I am trying to use Azure webhooks to receive information regarding my git activity on Jira issue pannel. In order to receive this information I am trying to create a web trigger URL in Jira's Forge App but couldn't really make it work. Maybe the URL generated by Jira is too big or something it gives 424 error when GET request is sent to the URL. Can anyone help in this regard?

Related

Azure LinkedAuthorizationFailed on Active Directory Account / Key Vault Authentication when running DevOps Server Deployment Template

I am trying to deploy an on-prem instance of Azure DevOps Server to a VM in an Azure Government subscription (which by nature, seems it does not support standard DevOps).
This template is referenced within support material directly from Microsoft:
https://github.com/usri/deploy_DevOps_Server_AzureSQL
All the referenced resources were created from scratch for the purpose of getting this server running.
This requires an AAD account with the associated password stored in a Key Vault. However, every attempt I make to run the template returns the following error on the 'Write VirtualMachines' step (when all other components pass):
The client has permission to perform action 'Microsoft.Compute/images/read' on scope '(MY_SUBSCRIPTION)\(MY_RESOURCEGROUP)\(VM)', however the current tenant '(MY_KEYVAULT)' is not authorized to access linked subscription '(ID in the template with the deployment files)'
This seems to me like the password cannot be retrieved from Key Vault- is it a formatting issue with the Secret? An access control issue somewhere? I've tried many various combinations of both. Hopefully this is just a trivial issue..
I am the original author of the code in that repo. I went ahead and merged a pull request into that repo which should address your issue. I did the following:
Updated the ReadMe file to include information on creating the image
Updated the azuredeploy.json with parameters for Key Vault & image references
Updated the ps1 file to eliminate hard links for KV (a particularly bad oversight on my part, my apologies).
Updated and tested everything for the latest version of Azure DevOps Server 2020
This should fix your issue and several other related ones. I retested the entire deployment from scratch and it worked as designed. A couple of other quick notes:
The USRI and all of it's repositories including the one being utilized here are not Microsoft official repositories. They represent an open-source Azure community dedicated to regulated entity customers. The members which contribute there are mostly Microsoft employees and the repos themselves just represent interesting and sometime niche templates that might be of interest.
This particular repo shows a manner in which Azure templates could be used to deploy services when no internet connection is available or permitted. I just used Azure DevOps Server because it was interesting and regulated industry customers use it.
All the best

How to enable/disable project services through API

I am migrating from TFS 2015 to Azure DevOps. The process of creating the target project and importing the old git repository can easily be done through the Azure DevOps API.
But each new project, either created manually or by API has always all services (Boards, Pipelines, Test Lab, ...) enabled. Is there a way to change the default setting of which services should be enabled on new projects? Or even better an API method to switch certain services on / off?
We have hunderets of projects and therefor it's not feasible to open each project in the browser, change to the project settings page and adjust the services.
I haven't found anything in the docs: https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.0
This guy wrote a blog post on how to do this
This is an excerpt pulled from his post:
PATCH https://{account}.visualstudio.com/_apis/FeatureManagement/FeatureStates/host/project/{project-id}/{feature-id}?api-version='4.1-preview.1'
content-type: application/json
{"featureId":"{feature-id}","scope":{"settingScope":"project","userScoped":false},"state":0}
Replace account,project-id and feature-id as appropriate. Here are the feature id’s I know of.
ms.vss-build.pipelines [Azure Pipelines]
ms.vss-test-web.test [Test Plans]
ms.vss-work.agile [Azure Boards]
ms.vss-code.version-control [Azure Repos]
ms.feed.feed [Azure Artifacts]
It looks like turning a service off really just means hiding it from the UI.
Edit: it looks like the .net SDK has built in support for this as well

How to deploy chatbot (NodeJS) In Azure without Bitbucket connection

I want to display a chatbot on Microsoft Azure. I've looked at the different alternatives and I can't find a way to do what I want. It's the first time I've ever used Azure and it's probably simple.
The code for this bot is in an organization's Bitbucket repository. I mean, I can't use the continuous deployment that Azure offers because I can't access the organization's Bitbucket. Is there an API I can call or a method for displaying my code without Azure needing to connect to my repository? Well, publishing the bot in a Bitbucket on the Internet (outside the organization) is restricted.
The bot is in NodeJS and I have seen the npm run azure-publish command which may be the way.
Thank you very much for your time.
PS1: Ideally, we should push, not Azure pull.
Finally I have solved my problem by using the command:
npm run azure-publish
Which internally makes a node of a publish.js file in which I specify the necessary parameters for the connection, the path to the ZIP, etc.
What I can't do is a callback to let me know if the deployment was successful, but that's already a straightforward question and I'm with it.
I hope I can be of help to other people. Any additional questions, do not hesitate to ask.

How Often Is The Azure Functions Beta Host Updated on the Azure Portal

I'm using the Azure Functions v2 in a project that I've started recently and I'm trying to use a proxy to redirect a request to /.well-known to one of my functions.
Proxies do not work on Azure Functions v2 (as stated here). They have now been fixed in release v2.0.11737-alpha but the Azure Portal is still using v2.0.11651.0
Does anyone know how long it takes after a beta release is created in GitHub for it to be available in the Azure portal?
It normally just takes a few days, but this particular release was cancelled. See https://github.com/Azure/app-service-announcements/issues/105 for details. A new one should start later this week. See https://github.com/Azure/app-service-announcements/issues/106.
For generally, please follow the announcement repo issue tracker for all information and status about upcoming releases.

VS Team Services gives false error on continuous integration 'This version control host is unsupported'

hoping someone has seen this before.
When I try to enable continuous integration in Visual Studio, using Visual Studio Team Services, I get the following error:
"This version control host is unsupported. Repositories must be hosted on VSTS or GigHub." This error gets zero results in google.
As you can see in the screenshot, the solution IS hosted by VSTS.
Explaining the screen shot:
Section 1 in the pic is the pop-up that appears after clicking 'Configure Continuous Integration' in the VS2017 status bar.
Section 2 is my VS team explorer window.
The grey boxes are the company website 'mycompany'.
Additional facts:
The VSTS account is owned by admin#mycompany.com, but my dev account, jason#quantumland.com, has full contributor permissions to the project. I get the same error whether red box 1 above has my personal account selected or admin#mycompany.com
The current loaded solution is the basic starter '.NET Core Web application' in VS2017 Community edition. No authentication selected, no changes to the auto-generated code.
I can build and run the solution locally, check in the solution to VSTS, see the code in the VSTS repository, publish to Azure web app, etc. Everything seems to be working but this.
Appreciate any help. My best guess is that my security permissions are wrong in VSTS, but both accounts are members of the 'admin team' group, and admin#mycompany.com is the creator/owner of the VSTS account and repository, so I don't see how.
You are using TFVC version control, the continuous delivery is used for Git version control, so you need to add a new git repository (can be in TFVC team project: Use Git and TFVC repos in the same team project), and use this git repository as source control.
Article about TFVC and Git: Choosing the right version control for your project
I was able to use TFVC for version control and get CI/CD to work. Following the newer instructions provided by #starain-MSFT:
Continuous Integration
This sets up CI/CD using the VSTS web portal exclusively. It works, but if I click 'configure continuous delivery' in the VS2017 status bar and use that form, I continue to get the error above.
If anyone posts an answer that fixes the exact question asked I'll update and mark that as the answer. Good news is that you can indeed use TFVC with CI/CD. yay, and thanks to #starain-MSFT for the updated link.

Resources