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

Inconsistent parameter usage in Set-AzureRmCurrentStorageAccount cmdlet

Open wibblemonkey opened this issue 10 years ago • 2 comments

The storage account name parameter in Set-AzureRmCurrentStorageAccount is different from the other storage cmdlets. Get-AzureRmStorageAccount, Remove-AzureRmStorageAccount etc. define the parameter as -Name and accept -StorageAccountName and -AccountName as aliases - Set-AzureRmCurrentStorageAccount defines the parameter as StorageAccountName with no aliases.

$StorageAccountDetails = @{ ResourceGroupName = 'Foo'; Name = 'Bar'}

# Returns the storage account
Get-AzureRmStorageAccount @StorageAccountDetails

# Fails to bind parameter -Name
Set-AzureRmCurrentStorageAccount @StorageAccountDetails

wibblemonkey avatar Jan 21 '16 09:01 wibblemonkey

Thanks @bd4hjimp for bringing this to us. We've got it fixed and it will be included in the next release.

EmmaZhu avatar Mar 24 '16 02:03 EmmaZhu

Feel free to try the newly released version and let us know if you have further questions.

vinjiang avatar May 06 '16 07:05 vinjiang