Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
379 stars 1.19k forks source link

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

Open AlexeyDP opened 3 years ago

AlexeyDP commented 3 years ago

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.

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.

Issue Details
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**
Author: AlexeyDP
Assignees: -
Labels: `DevOps`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

devops