azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
[Feature Request] Add option for managed/automatic service principal during service connection / service endpoint creation
Is your feature request related to a problem? Please describe.
When creating a service connection through devops, there's an option to have the service principal be managed by devops.

When deleting the service connection, it also cleans up the service connection if it was configured to be "Automatic".
Describe the solution you'd like
There should be a command line flag that can be used instead of --azurerm-service-principal-id (e.g., --automatic--service-principal) that will have a similar behaviour to the web interface. It will create the service principal using the same name as the connection, and will cause devops to delete it when the service connection is deleted.