diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/storage/samples/ManageStorageAccount.java b/azure-samples/src/main/java/com/microsoft/azure/management/storage/samples/ManageStorageAccount.java index 08d7da983e62e..e4722e031beea 100644 --- a/azure-samples/src/main/java/com/microsoft/azure/management/storage/samples/ManageStorageAccount.java +++ b/azure-samples/src/main/java/com/microsoft/azure/management/storage/samples/ManageStorageAccount.java @@ -120,7 +120,7 @@ public static void main(String[] args) { System.out.println("Deleting a storage account - " + storageAccount.name() + " created @ " + storageAccount.creationTime()); - azure.storageAccounts().delete(storageAccountName); + azure.storageAccounts().delete(storageAccount.id()); System.out.println("Deleted storage account"); } catch (Exception f) {