Display List of Uploaded Azure VM Role vhd images in a list
I just posted a sample on MSDN for displaying the list of base vhd images uploaded to Azure Portal, for Virtual Machine (VM) Role.
You can get the list of uploaded vhds simply by running the following command in command prompt
Thus making use of Get-VMImage switch of csupload you can get the complete details but the output is not presentable. It looks like something as below:
To make this presentable we just simple call this process form our c# code, parse the output, save properties to a list of object and bind it to a gridview, to make it look like as follow:
Follow this link for details on how to achieve the same: http://code.msdn.microsoft.com/Displaying-list-of-upload-4957b5c8
You can get the list of uploaded vhds simply by running the following command in command prompt
csupload.exe Get-VMImage -Connection "SubscriptionId=xxxxxx-xxxxxx-xxxxxx-xxxxxx;CertificateThumbprint=xxxxxxxxxxxxxxxxxxx"
Thus making use of Get-VMImage switch of csupload you can get the complete details but the output is not presentable. It looks like something as below:
To make this presentable we just simple call this process form our c# code, parse the output, save properties to a list of object and bind it to a gridview, to make it look like as follow:
Follow this link for details on how to achieve the same: http://code.msdn.microsoft.com/Displaying-list-of-upload-4957b5c8
No comments: