Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Graph and Azure Server 2019 #294

Open
szwalkowski opened this issue Aug 4, 2020 · 0 comments
Open

Graph and Azure Server 2019 #294

szwalkowski opened this issue Aug 4, 2020 · 0 comments

Comments

@szwalkowski
Copy link

szwalkowski commented Aug 4, 2020

Hey there,

is it actually possible to call https://github.com/microsoft/azure-devops-dotnet-samples/blob/main/ClientLibrary/Samples/Graph/UsersSample.cs this on Azure Server 2019?
As far as I can see: https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/users?view=azure-devops-rest-5.1&viewFallbackFrom=azure-devops-server-rest-5.0
it's fallback me to 5.1 when I want to check azure devops server.
And using graphClient it throws me:

Microsoft.VisualStudio.Services.WebApi.VssResourceNotFoundException: API resource location 005e26ec-6b77-4e4f-a986-b3827bf241f5 is not registered on http://localhost:81/DefaultCollection.

var vssConnection = new VssConnection(uriToServer, vssBasicCredential); var graphHttpClient = vssConnection.GetClient<GraphHttpClient>(); var listUsersAsync = graphHttpClient.ListUsersAsync().Result; Console.WriteLine(listUsersAsync);
Wrongly used result, but that's fastest way to reproduce it.

server version:
Version 17.143.28621.4

tried library in versions:
16.153
16.143.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant