Should we use the Azure CLI for things that aren't normally supported via PS commands? #213
Replies: 2 comments 4 replies
-
My first thought would be: yes. The Azure CLI is really straightforward and easy to use. (I like it more then the Azure Powershell commands :) ). But, I think there's a caveat: when creating a Powershell function that uses Azure CLI commands internally, and you want to use your Powershell command in an Azure DevOps pipeline, you'll need to make sure that you're calling the Powershell command in an AzureCLI task. (Offcourse, this is no big deal, but I think it needs to be documented so that ppl are aware of it when they want to use that Powershell command). |
Beta Was this translation helpful? Give feedback.
-
I personally ran into an issue a while ago where I was mixing up Azure CLI and Azure Powershell tasks inside one I personally would say that we should not use Azure CLI commands in our Arcus scripts. |
Beta Was this translation helpful? Give feedback.
-
For some things, we use the Azure REST API to get or change behavior that isn't directly supported as PowerShell commands. Should we consider using the Azure CLI for this? As some of these things are supported there (for example: the setting of variables in variable groups).
Beta Was this translation helpful? Give feedback.
All reactions