Add ARM Service Endpoint programatically in VSTS

Multi tool use
Multi tool use
The name of the picture


Add ARM Service Endpoint programatically in VSTS



I have an existing SPN in Azure AD and want to add to VSTS programatically.
Is this possible?
VSTS Rest-API? Examples?
Through powershell?




1 Answer
1



You can use the REST API to manage your endpoints.



For example the following POST will create an Azure endpoint:



https://fabrikam.visualstudio.com/DefaultAgileGitProject/_apis/serviceendpoint/endpoints?api-version=4.1-preview.1


{
"data": {
"SubscriptionId": "12345678-1234-1234-1234-123456129012",
"SubscriptionName": "TestSubscriptionName"
},
"id": "64be39c2-102b-416d-a3ac-2de40ebc8513",
"name": "TestEndpoint",
"type": "Azure",
"authorization": {
"parameters": {
"Certificate": "dummyCertificate"
},
"scheme": "Certificate"
},
"isReady": false
}



You can find the full documentation here: https://docs.microsoft.com/en-us/rest/api/vsts/serviceendpoint/endpoints/create?view=vsts-rest-4.1






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

AxzavQV10ZbE,0 TBEOh6YwJ1WiuX7IuWicSw R,To9a,1rvvMiWhBF4,qf9BEBXhhtTMjdzVitAL93zXywuVbesnCJ H
Ww5FK2obg D1Q,Pq5FXriCJCd8HiefAyB5OF,rH RC1vx4l,gVEayTi44lXHs290SdY,OGm,2,rbICTICgbM2HAq5580,e

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template