Windows Azure now allows to set fixed IP-addresses for virtual machines

UP2V

Untill recently IP-addresses of Azure virtual machines were not static/fixed. A VM which had been shutdown (for example to reduce costs, think test/dev scenario’s) could receive a different IP-address at boot than orginally assigned at creation. This leads to all kinds of issues. A new Powershell for Azure version solves this issue.

Introduction
Windows Azure once started as a Platform as a Service (Paas) offer. It is also a best effort cloud, which means the availability should be provided by the application, not by the platform. This is proven for example by the lack of a Service Level Agreement for single instance virtual machines. Customers are required to have at least two virtual machines serving the same application to get a SLA.

Since April 2013 Azure offers Virtual Machines which provides the ability for customers to have full control over the guest operating system. One of the tricky things in…

View original post 366 more words

How to upload files and folders to Windows Azure?

1. First of all make sure that you have done the steps in this blog post.

2. Create a vhd on the disk management on your local computer and copy whatever files you need to upload on windows azure to the vhd after attaching it to your local computer.

3. Open Azure Power Shell Command prompt with elevated permission and make sure your are pointing towards your subscription by running the following command:

get-azuresubscription

it will return your subscription information.

4. Run the following command to upload the vhd to Windows Azure

Add-AzureVhd -Destination <BlobStorageURL>/<YourImagesFolder>/<VHDName> -LocalFilePath <PathToVHDFile>

Replace <BlobStorageURL>/<YourImagesFolder> with the Azure storage account that you want to store the vhd on.

Replace <VHDNAME> with the name you want to display on Windows Azure.

Replace <PathToVHDFile> with the local path of the vhd on your computer.

5. The command will look like this

Add-AzureVhd -Destination “http://blobname.blob.core.windows.net/vhds/azureday.vhd” -LocalFilePath “c:\azureday.vhd”

the command will start calculating and detecting the empty disk blocks , later on it will start the uploading process which will depend on your bandwidth.

The upload process supports the continuation of the failed uploads , you don’t have to start the upload process from the beginning.

6. After the upload process is completed, you will find the vhd under the storage account container you have specified in your vhd-Destination, check the screenshot below.

azurescreenshot

7. Navigate on Windows Azure management portal to Virtual machine pane on the left pane and click on Disks on the right pane, check screenshot below.

Untitled

8. Click on the create button on the lower toolbar, check the screenshot below.

Untitled2

9. Click Ok to create the disk from the VHD.

10. Navigate on Windows Azure management portal to the VM you want to copy the files to and click attach in the lower toolbar,see screenshot.

azurescreenshot2

11. Click on Attach disk and navigate to the storage account/container where you have stored the vhd in step 6.

12. Click Ok to attach the disk to the virtual machine.

13. After the disk is attached successfully, connect to the virtual machine and navigate to the computer management –> Disk management, check attached screenshot.

Untitled3

14. Once you open the disk management, the disk initialization will pop up for you to initialize the disk, continue following the screen instruction to initialize the disk without changing anything.

15. Give the disk drive a letter to be able to access it from the Virtual machine.

Enjoy 🙂

How to add an existing virtual machine to a new Virtual Network on Windows Azure?

Sometimes you create a virtual machine without any intention of putting it on a Virtual Network (Vnet) , and suddenly you want to make this machine Join your Vnet on you windows Azure subscription.

This is a step by step guide on how to do this:

1. First you delete the Virtual Machine by clicking on Delete in the lower task bar in the Azure management portal

Image

2. A warning message will be displayed as the screenshot informing you that the VHD won’t be deleted and that we are only deleting the VM itself, click Yes

s2

3. Go ahead and create a new VM and choose from Gallery and click on My disks where you will find you the disk of the machine that you have deleted residing their, choose and click next and complete the  until you reach the Virtual network page where you will be able to add you machine to a virtual network if it is in the same region as the storage account hosting your VM.

s3

4. After this finishes, you will get your VM with an internal IP form your Vnet.

 

Enjoy!.