Had a problem when trying to remove the VM’s associated Storage Account when typed following command.
Remove-AzVM –name=[name] –resource-group=[name]
Is this valid that storageaccount and disk , security group will still not be removed?
Yes, that is correct. The cmdlet Remove-AzVM only removes the VM, and no other resources.