Azure / Azure/azure-cli-extensions

Flag "enable-for-all" omitted for updating service connection

Open
#2,770 2 comments 0 reactions 0 assignees View on GitHub
DevOps Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

I am trying to grant access for all pipelines to Azure Docker registry service connection in AzureDevops usin az cli.
Using command below:
```
`az devops service-endpoint update --id _serviceEndpointId_ `
**--enable-for-all true** `
--organization "https://dev.azure.com/_organization name_/" `
--project _AzureDevopsProjectName_`
```

Script executed without any exceptions but "--enable-for-all true" omitted. As a result, no pipelines have access to the connection. Previously it worked fine. Also, it is possible to grant access through UI

```
az version

{
"azure-cli": "2.5.1",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.5.1",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {
"azure-devops": "0.18.0"
}
}
```
---
#### Document Details

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

* ID: 6ecb62a2-f74c-a539-d3a8-c8fde7c2de06
* Version Independent ID: 5760936e-90a1-4129-6f6f-6dd4194bb73c
* Content: [az devops service-endpoint](https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/devops/service-endpoint?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/ext/azure-devops/devops/service-endpoint.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/ext/azure-devops/devops/service-endpoint.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.