Azure / Azure/azure-cli

Updating expired certificate for existing service connection

Open
#20,948 3 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad customer-reported DevOps Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I use **az devops service-endpoint azurerm create** with **--azure-rm-service-principal-certificate-path** to create a new service connection using certificates. But certificates expire after a few years and we want to keep service connections alive by creating new certificates.

There doesn't seem to be an "update" command for **service-endpoint azurerm**?

Is there a way to update certificate on existing service connection? Deleting and recreating isn't really an option because it would lead to manually fixing all the related pipelines.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: fa18e6e0-743a-1e6f-23a7-26460e2f9f27
* Version Independent ID: f05be940-a104-7cc4-1cd8-88046d3eac49
* Content: [az devops service-endpoint azurerm](https://docs.microsoft.com/en-us/cli/azure/devops/service-endpoint/azurerm?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/devops/service-endpoint/azurerm.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/devops/service-endpoint/azurerm.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.