azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
[Feature Request] Create service connection with "az devops service-endpoint create" for other Environments like AzureUSGovernment and AzureGermanCloud
Is your feature request related to a problem? Please describe. Not able to specify creation of service endpoint (connection) for Environments other than "AzureCloud," such as "AzureUSGovernment."
Describe the solution you'd like If the --service-endpoint-type is azurerm we should also be able to specify the Environment, similar to "az cloud set" command.
Additional context Within the browser interface, the full version of the New Service Connection dialog box for Azure Resource Manager allows specifying 4 environments:
- AzureCloud
- AzureUSGovernment
- AzureChinaCloud
- AzureGermanCloud
The CLI should expose these options as well.
Is this for automation or interactive use? The reason why I am asking is that if it is for pure automation, with version 12, the extension supports a generic create where you can provide the details as a json file. You can refer the documentation here for more information. Let me know if this helps.
It's for automation. I ended up calling the REST API via PowerShell instead but I still think support for national clouds should be added natively. The json file workaround is a good temporary solution.
This is an issue for our project as well. We have to craft this as a rest call which is quite painful.
Hi! AzureUSGovernment user here echoing the same issue. We were using a tool that relied on the azure-devops-cli-extension and it took quite a bit of investigating to determine this was our core issue. While it's good to know there is an option for providing a json file for configuration, it would be great to have an option to set a specific sovereign cloud.