azure-powershell
azure-powershell copied to clipboard
ErrorAction does not work with Get-AzureRmResourceGroup
Hi,
I am trying to suppress error from Get-AzureRmResourceGroup however it is not taking effect with ErrorActionPreference.
Get-AzureRmResourceGroup -Name "howareyou" -Location "East US" -ErrorAction SilentlyContinue
Get-AzureRmResourceGroup : Provided resource group does not exist. At line:1 char:1
- Get-AzureRmResourceGroup -ErrorAction SilentlyContinue -Name "howareyou" ...
-
- CategoryInfo : NotSpecified: (:) [Get-AzureRmResourceGroup], ArgumentException - FullyQualifiedErrorId : System.ArgumentException,Microsoft.Azure.Commands.Resources.GetAzureResourceGroupCommand
Thanks, Pradebban Raja
This have been fixed in the latest release. I am using v1.0.4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17