< Back

Add-AzureDevOpsPatToken

Sat Jan 11, 2020 10:22 am

NAME Add-AzureDevOpsPatToken



SYNOPSIS

Adds your PAT token to the windows credential manager and stores the tokens GUID, generated by the module, and its

friendly name in the configuration repository.





SYNTAX

Add-AzureDevOpsPatToken [-FriendlyName <String>] [-UserName <String>] [-PatToken <String>] [<CommonParameters>]





DESCRIPTION







PARAMETERS

-FriendlyName <String>

This is the easy to remember name you assign to this token.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserName <String>

This is the user name that you use to login to azure dev ops, usualy in the form of a UPN. Example:

`ExampleUser@contoso.com`.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PatToken <String>

This is the pat token given to you by Azure Dev Ops at your request in the security section of your profile.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.string







OUTPUTS

void







NOTES





The actual token is stored by Windows and the module uses a GUID it generates as it's way of retrieving that

credential value from the operating system.



Additionally this value, and other pat tokens are not loaded in to memory by the module until you make the

first call to the Azure Dev Ops Rest API.



-------------------------- Default usage --------------------------



Add-AzureDevOpsPatToken -FriendlyName MainToken -UserName ExampleUser@contoso.com -PatToken

"abcdefghijklmnopqrstuvwxyz0123456789"



Adding a pat token for user ExampleUser@contoso.com









RELATED LINKS

Online Documentation http://devopsmodule.utmonline.net/docs/ ... dpattoken/