MacroLan Azure cloud tutorial. Create a Virtual Machine running Windows This tutorial shows you how easy it is to create an Azure virtual machine (VM) running Windows, using as an example a Windows Server template from the Template Gallery in the Azure Management Portal. The template Gallery offers a variety of images, including Windows operating systems, Linux-based operating systems. NOTE: You don't need any experience with Azure VMs to finish this tutorial. However, you do need an Azure account. You can create a free trial account in just a couple of minutes. This tutorial shows you: How to create the virtual machine How to create a virtual network adapter How to assign the virtual network adapter to the virtual machine How to log on to the virtual machine after you create it How to attach a data disk to the new virtual machine How to expand a data disk
How to create the virtual machine This section shows you how to use the From Gallery option in the Management Portal to create the virtual machine. This option provides more configuration choices than the Quick Create option. For example, if you want to join a virtual machine to a virtual network, you'll need to use the From Gallery option. NOTE: How many and what kind of images are available in the gallery depends upon the type of subscription you have. This tutorial uses a Windows Server image 1. Sign in to the Azure Management Portal. 2. On the command bar at the bottom of the window, click New. 3. Under NEW, click STANDALONE VIRTUAL MACHINE, and then click From Gallery. 4. The first screen lets you choose a Virtual Machine Configuration from one of the lists in the Gallery. (The available images may differ depending on the subscription you're using.) Once you have selected your image, click the arrow to continue.
5. The second screen lets you pick a computer name, and administrative password. You can ignore the PRODUCT KEY. Once you have entered the details, click the arrow to continue.
6. The third screen lets you choose a network adapter for your Virtual Machine. Once completed, select the tick to complete the wizard. NOTE: If you have not setup a virtual network, don t worry, you can configure this later and add it to your server. For more information, see Azure Virtual Network Overview. - For details about configuring endpoints, see How to Set Up Endpoints to a Virtual Machine.
7. After the virtual machine is created, the Management Portal lists the new virtual machine under Virtual Machines. The virtual machine service is started automatically and the Management Portal shows their status as Running. How to create a Virtual Network Adapter This section shows you how to create a Virtual Network, set your DNS Servers, enable Network Address Translation and configure a site-to-site VPN. NOTE: A virtual network is a network overlay that you can configure in Azure. VMs that are part of the same virtual network can access each other. However, VMs outside the virtual network or in different virtual networks cannot. 1. On the command bar at the bottom of the window, click New 2. Under NEW choose VIRTUAL NETWORK and choose CUSTOM CREATE
3 The second screen lets you add a Virtual Network Name and IP Address Protocol. Once you have entered the details, click the arrow to continue. 4 The third screen allows you to set DNS Servers, Network Address translation and Site to Site Connectivity.. Once you have entered the details, click the arrow to continue. NOTE: The MacroLan DNS servers are 41.222.225.11 and 41.222.225.15
NOTE: DNS Servers You can add DNS servers to your virtual network for name resolution. If you want to have name resolution between this virtual network and you re on premise network, you should specify the DNS server that is used for your onpremises name resolution. You can also specify public DNS servers. Network Address Translation (NAT) This allows you to connect directly to the internet via a gateway Site-to-Site VPN Connection This allows you to define site-to-site connectivity settings between your hosted VMs and those provided through a VPN. 5. LAN IP Address Space The fourth screen allows you to configure the local IP address range for your VMs. The default address space is 10.0.0.0/24 however you can add address space and remove the default range. Once you have entered the details, click the tick to finish the wizard.
6. After the virtual network is created, the Management Portal lists the new virtual network under networks. How to assign the virtual network adapter to the virtual machine Note To assign the virtual network adapter to the virtual machine, you will need to shut down the virtual machine. When adding additional VMs, you can select the virtual network adapter during the installation wizard. 1. To shutdown the Virtual machine, select VIRTUAL MACHINES from the Service Management Portal, your Virtual Machine will be highlighted, then choose Shutdown from the list below, and confirm Shutdown.
2. After the shutdown is completed, select the Virtual Machine
3. Select Configure from the menu to make configuration changes to your VM. 4. From the list at the bottom, choose ATTACH and then NETWORK from the list
5. Choose the network you want to add to your VM from the Available Networks. Once complete, click the tick to finish the wizard.
6. After you have added the network to your VM, you can start up the VM by choosing DASHBOARD from the top menu, and then choose START from the bottom menu, and confirm.
How to log on to the virtual machine after you create it This section shows you how to log on to the virtual machine so you can manage its settings and the applications that you'll run on it. 1. If you have not already done so, sign in to the Azure Management Portal. 2. Click Virtual Machines, and then select the appropriate virtual machine. 3. On the command bar, click Connect. 4. Click Open to use the Remote Desktop Protocol file that was automatically created for the virtual machine. 5. Click Connect to proceed with the connection process.
6. Type the user name and password of the administrative account on the virtual machine, and then click OK. 7. Click Yes to verify the identity of the virtual machine. You can now work with the virtual machine just as you would with any other server.
How to attach a data disk to the new virtual machine This section shows you how to attach an empty data disk to the virtual machine 1. Sign in to the Azure Management Portal. 2. Click Virtual Machines, and then select the MyTestVM virtual machine. 3. You may be taken to the Quick Start page first. If so, select Dashboard from the top 4. First you need to shutdown your VM, so select SHUTDOWN at the bottom. And confirm the ShUTDOWN
5. Once the SHUTDOWN is completed, select CONFIGURE from the top. 6. On the command bar, click Attach, and then click Disk when it pops up 6/ The Virtual Machine Name is already defined for you. All you have to do is enter the NAME and select the size from the available DISK(S). Then click the check mark to attach the empty disk to the virtual machine.
7. Return to the dashboard to verify that the empty data disk was successfully attached to the virtual machine. It will be listed as a second disk in the Disks list along with the OS Disk.
8. Once the additional disk has been confirmed, the server will need to be started up. Choose DASHBOARD from the top and select START from the command bar.
1. After you attach the data disk to the virtual machine, the disk is offline and not initialized. Before you can use it to store data, you'll need to log on to the virtual machine and initialize the disk. 2. Connect to the virtual machine by using the steps in the previous section, How to log on to the virtual machine after you create it. 3. After you log on to the virtual machine, open Server Manager. In the left pane, select File and Storage Services. 4. Select Disks from the expanded menu. 5. In the Disks section, there are two disks in the list: disk 0, disk 1. Disk 0 is the OS disk, disk 1 is the data disk you have attached to the virtual machine. Note that the data disk has a capacity of 256 GB as specified earlier. Right-click disk 1 and then select Bring Online and then Right-click disk 1 and then select Initialize.
6. Click Yes to start the initialization process.
7. Right-click disk 1 again and select New Volume.
8. Complete the wizard using the default values provided. When the wizard is done, a new volume is listed in the Volumes section.
The disk is now online and ready to use with a new drive letter.
How to expand your disk This section shows you how to expand the disk of a virtual machine 9. Sign in to the Azure Management Portal. 10. Click Virtual Machines, and then select the MyTestVM virtual machine. 11. You may be taken to the Quick Start page first. If so, select Dashboard from the top 12. First you need to shutdown your VM, so select SHUTDOWN at the bottom. And confirm the Shutdown 13. Once the SHUTDOWN is completed, select CONFIGURE from the top.
14. Select the OS Disk from the list of devices 15. Then from the Command bar choose Expand 16. And expand your OS Disk by entering the new disk size. Then click the check mark to attach to expand the disk of the Virtual machine
1. Once the additional disk has been confirmed, the server will need to be started up. Choose DASHBOARD from the top and select START from the command bar.
9. After you expand the OS disk to the virtual machine, you are able to create new volume or extend volume. Note: New Volume will create an additional Disk (Disk E) on the existing disk Extend Volume will extend the original OS disk New Volume 10. Connect to the virtual machine by using the steps in the previous section, How to log on to the virtual machine after you create it. 11. After you log on to the virtual machine, open Server Manager. In the left pane, select File and Storage Services. 12. Select Disks from the expanded menu. 13. In the Disks section, Right-click disk 0 and then select Bring Online and then Right-click disk 1 and then select New Volume
14. Complete the wizard using the default values provided. When the wizard is done, a new volume is listed in the Volumes section.. The disk is now online and ready to use with a new drive letter.
Extend Volume 15. Connect to the virtual machine by using the steps in the previous section, How to log on to the virtual machine after you create it. 16. After you log on to the virtual machine, open Server Manager. In the left pane, select File and Storage Services. Select volumes from the menu list
Right Click the C: Drive (OS Volume) and select Extend Volume Enter the new size of the volume, recommended to use the Maximum size and click on OK Your volume is extened