Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
617 stars 239 forks source link

[Feature Request] service-endpoint update should accept configuration file #1337

Open rpatchwork opened 1 year ago

rpatchwork commented 1 year ago

The service-endpoint update command appears to only have one updateable field via the CLI: --enable-for-all

Would like to have the command accept --service-endpoint-configuration parameter so administrators can update/rotate endpoint values

Additional context The target API commands for create and update both accept the same schema in request body:

https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/create?view=azure-devops-rest-6.0&tabs=HTTP

https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/update-service-endpoint?view=azure-devops-rest-6.0&tabs=HTTP

Would like to see the CLI reflect the same capabilities as the REST API.

lane-jacobs commented 1 year ago

Hey there.

I don't know what information I can provide to escalate this "feature", but I hope it can be addressed in a somewhat timely manner.

The command is essentially non-functional. You cannot use it to update a service-endpoint.

Additionally, though it wouldn't be consistent, it would be great to update specific parameters from the command line rather than being required to submit a whole JSON file/object.

picpromusic commented 7 months ago

Also you cannot update important parameters via the ui. please document how to update parameters. Like authorization.serviceprincipalkey