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] az devops service-endpoint does not accept secrets

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently az devops service-endpoint does only accept certificates using parameter --azure-rm-service-principal-certificate-path there’s no parameter to configure a service-endpoint in Azure DevOps using a Service Principal with a secret.

Describe the solution you’d like I’d like to have the possibility to create a service endpoint in Azure DevOps not only with a Service Principal with a certificate but also with a secret.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
atbaggacommented, Dec 13, 2019

@heoelri Secrets are supported to create an AzureRM service-endpoint.

Here is a sample command signature -

D:\GithubRepos\Work\MS\az_ms_repo\azure-devops-cli-extension> az devops service-endpoint azurerm create --azure-rm-service-principal-id 123 --azure-rm-subscription-id 123 --azure-rm-subscription-name 123 --azure-rm-tenant-id 123 --name 123
Azure RM service principal key:

In interactive mode you will be prompted for the secret since in Azure-Devops extension we try to avoid that the user enters any form of secret/password in command prompt as command params which becomes prone to leaks in the Cmd/bash history.

In non interactive mode you can specify it using a ENV variable which is provided in the command help text.

Refer this documentation for more details - https://docs.microsoft.com/en-us/azure/devops/cli/service_endpoint?view=azure-devops#creating-azure-rm-service-endpoint

0reactions
pwouavrecommented, Jun 11, 2021

Hi @HermenOtter, I’m using a certificate now in order to correctly register a service connection : https://docs.microsoft.com/fr-fr/azure/devops/cli/service-endpoint?view=azure-devops#use-a-client-certificate

Have a nice day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create service endpoint using Azure DevOps CLI
With the az devops service-endpoint command, you can create and manage different types of service connections. A service connection allows Azure ...
Read more >
Problem creating a kubernetes service endpoint via API
I`ve looked all over the docs for the accepted parameters, but I could not find it. The request that I`m sending is this...
Read more >
Azure DevOps service endpoint automation - Evgeny Borzenin
Service principal secret is only accessible right after spn is created (you can re-create a new secret later), but you can't retrieve existing ......
Read more >
Exam AZ-400 topic 2 question 31 discussion - ExamTopics
[All AZ-400 Questions] ... Ensure that the secrets are retrieved by Azure DevOps. ... How should you configure the service endpoint?
Read more >
Azure DevOps: Update service connection expired secret
It's a weird that UI and devops cli don't allow us to quickly change ... [Postman] Using the following GET request, get a...
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