Reputation: 35953
I am adding extension azure-devops
to Azure CLI using the following command:
az extension add --name azure-devops
Because this extension is in preview it gives me a red warning when I run it from my installation scripts:
WARNING: The installed extension 'azure-devops' is in preview. + CategoryInfo : NotSpecified: (WARNING: The in... is in preview.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : mycomputer.westeurope.cloudapp.azure.com
Is there any way to prevent this warning?
Upvotes: 1
Views: 1533
Reputation: 1473
You can add --only-show-errors
to your command to suppress any warning messages.
It is also possible to suppress the messages by configuring Azure CLI with this command:
az config set core.only_show_errors=True
Here is a link for the documentation of Azure CLI configuration.
Upvotes: 0