[Feature Request] Idempotent az devops service-endpoint create
See original GitHub issueIs your feature request related to a problem? Please describe. If you run the below twice, then you get two service connections
az devops service-endpoint create --name timj-testing --service-endpoint-type azurerm --authorization-scheme ServicePrincipal --azure-rm-tenant-id <tenant> --azure-rm-service-principal-id <sp> --azure-rm-service-principal-key <key> --azure-rm-subscription-id <sub> --project CNP --organization https://dev.azure.com/org/ --azure-rm-subscription-name <sub-name>
Describe the solution you’d like If a service connection exists then update it
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Create service endpoint using Azure DevOps CLI
Azure DevOps Services. With the az devops service-endpoint command, you can create and manage different types of service connections.
Read more >[FEATURE REQUEST] support for idempotent API requests
First I have to check if it exists with a GET request, register the response, and then based on the answer, I have...
Read more >azure-cli 2.16.0 - PyPI
The following block creates a new resource group in the 'westus' region, then creates a new Ubuntu VM. We automatically provide a series...
Read more >Azure DevOps service endpoint automation - Evgeny Borzenin
Since Azure DevOps portal app uses Azure DevOps rest API behind the scene, you can manually create service endpoint, analyse request ...
Read more >Development | SharePoint and other geeky stuff
To apply to a different level management group would require modification ... $ServiceEndpoint = az devops service–endpoint create —project ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Valid feedback. Right now CLI is completely dependent on api design so we can not support this at this point. We will percolate the feedback with respective team.
As a workaround, a combination of other commands like SHOW/LIST and DELETE can be used if required to achieve idempotency in this case. Show and list commands are already available whereas delete service-endpoint will be release in upcoming version by next week.
Automating the creation of a service endpoint. It’s run in a script
Yes update and delete commands would also solve my usecase
But idempotency would be a great feature imo, given that the azure cli in general is idempotent.