You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the commandlet against a non existent policy assignment with ErrorAction set to SilentlyContinue
get-AzureRmPolicyAssignment -Name "BogusPolicyAssignment" -Scope "/subscriptions/$SubscriptionId/resourceGroups/$resourceGroup" -ErrorAction SilentlyContinue
Module Version
Get-Module -Name AzureRM.Resources -ListAvailable
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.0.2 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignment...}
Reopening, It is AZURESTACK specific version. The issue is fixed in the latest az module, AZURESTACK version still has this issue. I will see what we could do here in the next release
Description
Get-AzureRmRoleAssignment (AzureRM.Resources 6.0.2) doesn't respect -ErrorAction
Script/Steps for Reproduction
Note: Commands are being run against AzureStack
Run the commandlet against a non existent policy assignment with ErrorAction set to SilentlyContinue
get-AzureRmPolicyAssignment -Name "BogusPolicyAssignment" -Scope "/subscriptions/$SubscriptionId/resourceGroups/$resourceGroup" -ErrorAction SilentlyContinue
Module Version
Environment Data
Debug Output
The text was updated successfully, but these errors were encountered: