azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

ErrorAction switch does not work with Get-AzureStorageContainer

Open Vijayaraghavanl opened this issue 11 years ago • 2 comments

Until I used the newer version the below command used to work as expected:

If(!(Get-AzureStorageContainer -Name $DestinationContainer -Context $desContext -ErrorAction SilentlyContinue)){New-AzureStorageContainer -Name $DestinationContainer -Context $desContext}

But with the newer version ErrorAction switch does not work.

Vijayaraghavanl avatar Nov 23 '15 08:11 Vijayaraghavanl

@Vijayaraghavanl Slated to be fixed in the next release [#108479296] . You can follow progress here: https://www.pivotaltracker.com/story/show/108479296

markcowl avatar Nov 30 '15 21:11 markcowl

This has been fixed in the latest release. All set now!! Closing this issue.

Vijayaraghavanl avatar Dec 23 '15 07:12 Vijayaraghavanl