Using Azure DevOps, I'm trying to build an extension with widget that can retrieve any open source API (e.g., weather API for example). This is a step-by-step process that I've come up with to build that extension/widget:
Choose a weather API to use, for example OpenWeatherMap API, and obtain an API key.
Create an Azure DevOps extension project using a code editor, such as Visual Studio Code.
Add the required dependencies to your project, such as "vss-web-extension-sdk" and "axios".
Create an HTML file for the widget layout, and add a placeholder for the weather data.
Write JavaScript code to fetch the weather data using axios and the API key.
Use the VSS SDK to create a widget and bind it to the HTML file.
Test the widget in the Azure DevOps extension host.
Package the extension and publish it to the Azure DevOps Marketplace.
Based on the available ADO extension widgets, I'm certain that ADO can access any API data without any issue, but I'm struggling to find any proper training materials to do this. Does anyone know if Microsoft provides any sort of guideline to access OpenWeatherAPI or other open source APIs?
Related
In below image I can see that there are multiple tabs when we create pull request like Overview, Files, Update, Commits, etc. I want to add a new tab in pull request. I tried searching on internet but was not able to find much. It will be great if someone can help me with it.
Thank you
I agree with #4c74356b41 AFAIK that's not possible without creating a full-blown extension\addon.
Reference taken from :
Azure DevOps-Add extension that adds custom tab to Pipeline / Release Definition page (not the summary page) - Stack Overflow
. I don't know the term I should use to search for it.I am just not sure what to search in google to learn more about it.
you can search for the following terms on Google :
Azure DevOps extension samples
Azure DevOps extension custom tab
Azure Devops Extensions Overview
I am ok with adding addon\extension. I actually want to know some document references that can be useful in this scenario
As you are ok with extension you can refer this MS document Extensions overview.
To create a new tab in a pull request, you need to create an extension that adds the new functionality to Azure DevOps. You can use Visual Studio to create a new Azure DevOps extension project.
Reference for Working with Pull Requests in Visual Studio Code and Azure DevOps
Reference SO thread
I'm building a project in Azure Classic pipeline.
now i have to publish an HTML File to the tab, so i used one or more extensions (Publish HTML Reports, HTML Viewer).
The problem is, it doesn't publish css scripts, so that the published page is not viewing perfectly.
This is what i want 👇👇
This is what i got 👇👇
Source code of both images are not same, used for better understanding
I am afraid Azure devops doesn't support publish custom HTML report yet.
There are user voices having been submitted to Microsoft development team. See user voice Support for generic HTML Publishing inside Build and Release Pipelines.
You can vote up above user voice, Or create a new user voice of your own regarding this issue.
In the Azure APIM, is it possible to manage the content in a programmatic way -let's say the REST API or SDK- when I have some changes in Developer Portal content?
I saw there are some articles mentioned to use the iFrame but it is still required to have manual change in portal. For CI/CD, the requirement is make everything as code. So when writer updated / create / rebuild content in the APIM platform, we can use the Jenkins or another tools to make it change.
Currently it is not possible to natively manage developer's portal content programmatically, with the exception of data generated by API Management (e.g., API descriptions or API operations are fetched live and API Management's API call response is mapped to UI).
However, there are plans to allow for more control and automation with regards to developer portal content, customizations and deployments.
Want to create Virtual machine on azure with Microsoft default images and sizes in C# application using Azure API.
Like while we have Image and Size option here (as in image)
Please guide how can I acheive the same.
Easiest option is to either go after the Azure Management REST API documentation, or to take a look at the open source Azure Powershell Cmdlets (which use C# & the REST API under the covers).
To find a specific image you can make the 'List OS Images' Rest call.
If you make an authenticated call to
https://management.core.windows.net//services/images
Then you will get a response that contains all of the images available to your subscription. This is a very large list that you will then need to parse to find the specific image that you require.
I am creating a little utility app for some of my Azure work and i would love to make it possible to deploy a azure package from within my tool.
I have a package that have been created from Visual studio and i can manual deploy it or deploy it from within VS 2012.
Anyone who know a guide or can tell me how i would deploy it from my own application?
Yes, you can do that. Everything you see as far as deployment is concerned in VS is backed by a REST API. So you could essentially write a WPF application which is a wrapper over these REST API. There're two things you would need to do:
Upload Package files to blob storage: This would be the 1st thing you would need to do. You could make use of storage client library or implement REST API for uploading package files to blob storage.
Implement "Create Deployment" Service Management API function: Take a look at the functionality here: http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx. Once you have uploaded the package file in blob storage (and got the blob URI), you could invoke this functionality.
As far as I know there is no API wrapper / SDK available that covers full functionality on managing Storage Accounts, Deployments etc. yet. You can use the Windows Azure Management REST API though.
In order to use this API you need to have a valid management certificate in the subscription you want to manage and sign all REST calls to the Management API with it. There should be sufficient information about how to do so in the link above.
HTH