DEV Community

Discussion on: Magic with Azure DevOps PowerShell Module

Collapse
 
vivekanandrapaka profile image
Vivekanand Rapaka • Edited

Hello Kishore,

I'm able to run 'Get-VSTeamUser cmdlet and get the output with the list of users. By using below command.

Set-VSTeamAccount -Account https:// dev.azure.com/yourorganizationname/ -PersonalAccessToken $PAT

and then run 'Get-VSTeamuser' cmdlet. I made sure that the generated PAT has full access to the ADO account

dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
kishoredevops profile image
kishoreoptum • Edited

Hi Vivek,

Thanks for your reply!!

Actually I got some Admin access but still seeing error and its attached, this means I don't have full access in AzureDevOps, could you please confirm?

If I set apiVersion using Set-VSTeamAPIVersion cmdlet then seeing different message that's also I've attached. Could you please go through it and suggest me.

Screen shot1: dev-to-uploads.s3.amazonaws.com/up...
Screen shot2: dev-to-uploads.s3.amazonaws.com/up...

Thanks,
Kishore

Thread Thread
 
vivekanandrapaka profile image
Vivekanand Rapaka

I ran "help Set-VSTeamAPIVersion" to see the list of accepted parameters for Set-VSTeamAPIVersion, found that it only accepts following values. Looks like 'graph' is not supported.

-Service
Specifies the service to change. The acceptable values for this parameter are:

    - Build

    - Release

    - Core

    - Git

    - DistributedTask

    - Tfvc

    - Packaging

    - MemberEntitlementManagement

    - ExtensionsManagement

    - ServiceEndpoints

    Required?                    true
    Position?                    named
    Default value                None
    Accept pipeline input?       false
    Accept wildcard characters?  false
Enter fullscreen mode Exit fullscreen mode

dev-to-uploads.s3.amazonaws.com/up...

dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
kishoredevops profile image
kishoreoptum • Edited

Just checked help and Graph is not available.

But before I've followed git source code and I tried to work on the set apiversion. Please check code from below link that says graph is supported. Am I missing anything here.

github.com/MethodsAndPractices/vst...

Thanks
Kishore.

Thread Thread
 
vivekanandrapaka profile image
Vivekanand Rapaka

Please check with the maintainers, but looks like its not supported.

Thread Thread
 
kishoredevops profile image
kishoreoptum

Ok.. sure, thank you