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

Remove-AzureRMDisk doesnt validate DiskName exists

Open andyjballgit opened this issue 9 years ago • 4 comments

Cmdlet(s)

Remove-AzureRMDisk

PowerShell Version

Instructions: to get PowerShell version, type $PSVersionTable and look for the value associated with PSVersion 5.1.15042

Module Version

2.7.0

OS Version

Instructions: to get OS version, type $PSversionTable and look for value associated with BuildVersion 10.0.15042.0

Description

If an invalid DiskName is passed as a param , no warning is given

Debug Output

Instructions: to get Debug Output, set $DebugPreference="Continue" and then execute the cmdlet or script causing the issue Omitted for security reasons

Script/Steps for Reproduction

  1. Create a ResourceGroup called Bob
  2. Run below Remove-AzureRMDisk -DiskName "Somethingrandom" -ResourceGroupName "Bob"

andyjballgit avatar Mar 01 '17 20:03 andyjballgit

@singhkays @hyonholee would you mind taking a look?

cormacpayne avatar Mar 02 '17 22:03 cormacpayne

@hyonholee @singhkays Could you please triage this?

vladimir-shcherbakov avatar Jun 26 '18 22:06 vladimir-shcherbakov

@hyonholee Can you check? This looks like a bug. Remove should show an error if the disk does not exist

singhkays avatar Jun 26 '18 22:06 singhkays

Cleaning up old issues from 2016 - 2018. Please let us know if this issue is still a concern.

Drewm3 avatar Sep 20 '19 00:09 Drewm3