azure-devops-cli-extension icon indicating copy to clipboard operation
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

Open wahidsaleemi opened this issue 4 years ago • 4 comments

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.

wahidsaleemi avatar Jul 22 '19 21:07 wahidsaleemi

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.

geverghe avatar Aug 28 '19 06:08 geverghe

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.

wahidsaleemi avatar Aug 28 '19 15:08 wahidsaleemi

This is an issue for our project as well. We have to craft this as a rest call which is quite painful.

rguthriemsft avatar Jun 12 '20 23:06 rguthriemsft

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.

gavination avatar Oct 06 '21 21:10 gavination