Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

az devops service-endpoint - Share Service Endpoint #27157

Open defenestration opened 1 year ago

defenestration commented 1 year ago

Related command

az devops service-endpoint

Is your feature request related to a problem? Please describe.

Looking to share Service Connections/endpoints across mulitple azdo projects Describe the solution you'd like

The API seems to support this https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/share-service-endpoint?view=azure-devops-rest-7.0&tabs=HTTP

but the azure cli does not yet.

Describe alternatives you've considered

Currently writing a script to interact with the API endpoint above.

Additional context

yonzhan commented 1 year ago

Thank you for opening this issue, we will look into it.

wangzelin007 commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist @V-hmusukula

lukas-pfeifhofer commented 1 year ago

When I add the project name to the request URL, then it works for me:

https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints/{endpointId}?api-version=7.0