question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Idempotent az devops service-endpoint create

See original GitHub issue

Is 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>

image

Describe the solution you’d like If a service connection exists then update it

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
snankanicommented, May 23, 2019

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.

0reactions
timjacommented, May 21, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found