From 7e467c27101fdf97d885b58e6fc6a1109c503a6e Mon Sep 17 00:00:00 2001 From: Asir Vedamuthu Selvasingh Date: Fri, 17 Jun 2016 14:54:35 -0700 Subject: [PATCH] Fixed storage account delete issue --- .../azure/management/storage/samples/ManageStorageAccount.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {