Why can’t I remove my storage account ?

You may want to remove a storage account you’ve created and get a message like this one:

Storage account <mystorage> has container(s) which have an active image and/or disk artifacts. Ensure those artifacts are removed from the image repository before deleting this storage account.

Here is what you may want to check. In the management portal http://manage.windowsazure.com, Storage, <mystorage>, Containers, check the content of your containers, especially the “vhds” one which contains virtual hard disks by default. Here is an example of the portal with stockageazure3 instead of <mystorage>

By clicking on the arrow near vhds (or each any other container), you’ll find a list of the blobs inside the container. VHD are good candidates for lock, and we’ll see why in a minute.

Select a .vhd blob and click EDIT at the bottom of the screen

this will show you the lock:

So where do I unlock?

This is related to the way Virtual Machines Work in Windows Azure. The OS disk and data disks live in Windows Azure blob storage. Here is an image of that (here with Windows VMs, but this is very similar with Linux VMs):

So VHD blobs are virtual hard disks that may be used by virtual machines; Windows Azure doesn’t want you to remove a virtual machine disk without knwoing about it! The locks are handled by images, and disks, that you can find here:

for an image or a disk, you can see the referenced blob in the LOCATION column. Here is an example:

in this example, myCentoOSImage references the bueearwy.zbn201304031550350920.vhd blob in the vhds container of the northeurope2affstorage storage account. Thus the URI of http://northeurope2affstorage.blob.core.windows.net/vhds/bueearwy.zbn201304031550350920.vhd.

At the bottom of the screen, you can remove the image and optionally also remove the associated VHD:

Same for DISKS

A disk or an image may itself be locked by a virtual machine instance. In such a case, you may have to stop and remove the virtual machiane first.

For example, in the following screen shot, the benjguinu1 virtual machine holds the benjguinmisc-benjguinu1-0-201310042100440782 disk which locks itself the http://stockageazure2.blob.core.windows.net/vhds/benjguinmisc-benjguinu1-2013-10-04.vhd blob.

So we have

and you cannot remove the referenced blobs without removing the disks, images and VM involved in that chain.

Benjamin (@benjguin)

Blog Post by: Benjamin GUINEBERTIERE

Viasfora v1.6 Released

Today I published a new update to my Viasfora extension for Visual Studio 2010-2013. One of the new features in this build is a text editor margin that could be useful to other fellow developers working on extending the Visual Studio Text Editor. One of the reasons why I implemented this was that I when […]
Blog Post by: Tomas Restrepo

BizTalk360 installation failed: “error status: 1603″

BizTalk360 installation failed: “error status: 1603″

Recently we got a client who was unable to complete the installation of BizTalk360. Although all checks indicated the prerequisites were met, there was an issue on completing the installation wizard for some reason. In the first step they filled all info for creating the IIS virtual directory and application pool. But for some reason, […]
Blog Post by: mitchke

BizTalk SFTP adapter: “Unable write file”

BizTalk SFTP adapter: “Unable write file”

Since recently my SFTP send port for some reason couldn’t write any files to the configured SFTP folder anymore. The error information displayed on the suspended instances was: An unexpected failure occurred while processing a message. The text associated with the exception is “[SftpTransmitterEndpoint] Unable to transmit file sftpfolder/51D8D887-DB21-4675-8EA2-927B86F84CF3. Inner Exception: Unable write file to […]
Blog Post by: mitchke

BizTalk Services Bridges/Operations – Troubleshooting

Windows Azure BizTalk Services (WABS) is general since November 2013 as a service within Windows Azure. Recently it has been enhanced with new features like backup/restore.

This new service in Windows Azure is meant to provide EAI or B2B services through the cloud. The EAI Service enables you to exchange data through different protocols and transform it to and from different formats. Similar to

How to access BizTalk Application Resources programmatically?

One of the interesting things being an ISV (Independent software vendor) building BizTalk360 focused on BizTalk server is, the API’s to access BizTalk Server resources are always limited and you need to go under the cover. In the majority of the cases we will find answer either via ExplorerOM, WMI, direct BizTalk database queries and […]

The post How to access BizTalk Application Resources programmatically? appeared first on BizTalk360 Blog.

Blog Post by: Saravana Kumar