Practical Record Book - Cloud Computing
Practical Record Book - Cloud Computing
ON
VIRTUALISATION AND CLOUD
COMPUTING IN MICROSOFT AZURE
By
Katabalwa John Vianney
Bsc.AIT, Semester IV
012220073
2024
8 Azure Support
Tools used for the Lab activities:
1) Windows Operating System: Default PC operating system for the lab activities.
2) Microsoft Edge: Web / Internet browser (client) to access and interact with the Azure cloud
platform. Internet connection is required here.
3) Microsoft Azure: Cloud computing platform from Microsoft as the Cloud Service Provider
(CSP).
4) Azure user account (ilanjv40@gmail.com): Microsoft Azure account created under the “Start
for Free” subscription.
Screen shot of the Azure welcome page under my user account “ilanjv40@gmail.com”:
Activity 1: Introduction to Azure:
• Exploring the Azure Portal interface, Azure services and Market place
• Understanding Azure resources group
• Managing Subscription and access control
Step 1: Sign into the Azure Portal and explore the interface as below:
1. Open the web browser and go to the Azure Portal at https://portal.azure.com.
2. Sign in with your user account to view the Azure Portal Home page.
3. While in the Home page, explore the different sections and icons in the portal interface such
as: the search bar, the left-hand menu for accessing the various Azure services and
resources, Navigation section, Tools section and Useful links section.
Step 2.1: Understanding Azure Resource Groups:
• Resource groups are used to organize and manage Azure resources under a given
subscription. This ensures that single individual resources are not scattered.
• Azure resources are the services (IaaS, PaaS) in the cloud. These are sourced from the Azure
Resource Providers managed under the Azure Resource Manager (ARM) Model.
• Any single Resource must be part of a Resource group, and any Resource group must be a
single standalone Resource group.
1. To review the assigned subscriptions, click on "Subscriptions" under Azure services section.
2. In the Subscriptions page, a list of your Azure subscriptions is displayed.
3. Click or select the subscription of interest to explore the related details such as the type,
status, billing, resource usage and Access control.
4. Click on "Access control (IAM)" to manage access to your subscription.
5. You can add users, assign roles, and set permissions for various Azure services and resources
within your subscription.
VM Configurations by tab:
• Basics tab: Provide the required or relevant basic information by below category:
1. Project details: The subscription, Resource group.
2. Instance details: Virtual machine name, image (picked windows server 2019 Datacenter),
and Size.
3. Administrator Account: username, password (note the required formats).
4. Inbound port rules: Public inbound ports (Allow selected ports), Select inbound ports (HTTP
(80), RDP (339)).
• Review other configurations under the below tabs. Preferably maintain the default settings.
1. Disks Tab: Storage settings, including OS disk type and size.
2. Networking Tab: networking settings, virtual network, subnet, and public IP.
3. Management Tab: Set up options like boot diagnostics and monitoring.
4. Monitoring Tab: Set up other monitoring options.
5. Advanced Tab: Set up other advanced options.
6. Tags Tab: Set up tagging options to enable meta-data resource sharing.
• Then proceed to select the button “Review + Create” to validate the configurations. The
notification “Validation passed” will be displayed once the validation is successful.
• Proceed to select the “Create” button to create and deploy the virtual machine. Azure will
start provisioning the resources. You can monitor the deployment progress in the Azure
Portal (It may take a few minutes depending on the internet speed).
Step 2: Connecting to or accessing the virtual machine (VM):
• Once the VM is created, you can access it through RDP using the credentials you provided
during the configuration setup for the “Administrator Account”.
1. Open the RDP file and follow the windows security connection prompts.
2. Provide the password supplied during the creation of the VM and accept to connect (Yes).
3. In the VM server page or log-in, open the PowerShell prompt: Go to Windows start button,
then select PowerShell in the pop window.
4. Run the command “Install-WindowsFeature -name Web-Server -IncludeManagementTools”
5. Close the RDP connection to the VM following successful installation / confirmation.
6. Return to the Azure Portal, go to the VM resource page and copy the VM IP address: hover
over the VM IP address to show the “copy to clipboard” and click to copy the IP address.
7. Paste the IP address into the web browser to display the default web server page hosted by
the VM.
Activity 3: Creating and configuring Azure Storage accounts.
• Review other configurations under the respective tabs. Preferably maintain the default
settings.
• Then proceed to select the button “Review + Create” to validate the configurations.
• Proceed to select the “Create” button to create and deploy the Storage account. You can
monitor the deployment progress in the Azure Portal (It may take less than a minute).
By accessing the created Storage Account, we can create the below types of redundant
storages within the Storage Account:
1. Blob (binary large object) storage: Blobs are basically files like those stored on PCs (or tablet,
mobile device, etc.). They can be pictures, Microsoft Excel files, HTML files, virtual hard disks
(VHDs), that is, pretty much anything.
2. File storage: For setting up highly available network file shares that can be accessed by using
the standard Server Message Block (SMB) protocol.
3. Table storage: For scalable NoSQL data storage that enables you to store large volumes of
semi-structured, nonrelational data.
4. Queue storage: For storing and retrieving messages such as system logs.
Activity 4: Implementing Azure Virtual Networks (VNet):
• Azure Virtual networks (VNets) provide private connectivity for Azure Virtual Machines
(Azure VMs) and some Azure services. VMs and services that are part of the same virtual
network (Network Security Group (NSG)) can access one another.
• By default, services outside the virtual network cannot connect to services within the virtual
network. You can, however, configure the network to allow access to the external service.
• To put VMs into a virtual network, you first create the virtual network and then as you
create each VM, you assign it to the virtual network and subnet. VMs acquire their network
settings during deployment or startup.
• Review other configurations under the below tabs. Preferably maintain the default settings:
1. Security tab: VNet encryption, firewall setup, and others.
2. IP addresses: Subnet setup.
• Then proceed to select the tab “Review + Create” to validate the configurations.
• Proceed to select the “Create” button to create and deploy the VNet. You can monitor the
deployment progress in the Azure Portal. It may take less than a minute.
By accessing the created VNet, we can configure or setup other network properties such as:
Firewalls, Network security groups, subnets and other preferred layouts and access controls.
Activity 5: Implementing Azure Load Balancer with an Availability Set.
An availability set is a group of virtual machines that are deployed across fault domains and
update domains. Availability sets ensure that your application is not affected by single
points of failure, like the network switch or the power unit of a rack of servers.
Microsoft recommends combing the Azure Load balancer with an availability set to get the
most application resilience.
The Azure Load Balancer enables you to distribute incoming traffic across the collections of
VMs in an Availability set in a round robin manner. It automatically removes un-healthy VMs
from rotation so that they are not routed traffic when they are unavailable.
• You can create a virtual machine and assign it to an Availability set during the deployment of
the VM. Alternatively, you create an availability set and then add VMs to it.
For this practical activity, we proceed to implement the Load balancer as below:
1. Create an Availability set under an existing Resource Group.
2. Create 2 VMs (Windows Server) and assign them to the Availability set during deployment.
3. Lastly, setup a Load Balancer with the Availability set.
• Review other configurations under the tabs “Advanced” and “Tags”. Preferably maintain
the default settings.
• Then proceed to select the button “Review + Create” to validate the configurations.
5. Proceed to select the “Create” button to create and deploy the Availability Set. You can
monitor the deployment progress in the Azure Portal (It may take less than a minute).
6. Go to All resources, select on newly created Availability Set name and verify the Fault
domains (2) and Update domains (5).
The below screen shots describe the above procedure under Step1:
Step 2: Create 2 VMs and assign them to the created Availability set:
Creating VM resource. This is discussed above under “Activity 2: Creating and Managing
Virtual Machines”. However, under this Activity 5, ensure to create the VMs with the below
“Availability options” under the “Instance” category:
1. Availability options: Drop down and select “Availability Set”.
2. Availability Set: Drop down and select the name of the Availability set created in step1
above.
The below screen shots describe the above procedure under Step2:
• Azure load balancers can either be internet-facing (accessible via public IP addresses) or
internal (accessible from a virtual network). Azure load balancers also support Network
Address Translation (NAT) to route traffic between public and private IP addresses.
• Inbound rules tab: Provide the required or relevant basic information by below window
/ page and corresponding category:
a. Page1: In Load balancing rule, select “+ Add a load balancing rule”.
b. Page2: In Add load balancing rule, enter or select the following information:
➢ Name: your choice for rule name
➢ IP Version: Select IPv4 or IPv6 depending on your requirements
➢ Frontend IP address: Already created - Select as appropriate
➢ Backend pool: Already created - Select as appropriate
➢ Protocol: Select TCP
➢ Port: Enter 80
➢ Backend port: Enter 80
➢ Health probe: Select Create new.
1) In Name, enter lb-health-probe.
2) Select TCP in Protocol.
3) Leave the rest of the defaults, and select OK.
➢ Session persistence: Select None.
➢ Idle timeout (minutes): Enter or select 15.
➢ Enable TCP reset: Select checkbox.
➢ Enable Floating IP: Leave the default of unselected
➢ Finally, Select Save.
• Review other configurations under the tabs “Outbound rules” and “Tags”. Preferably
maintain the default settings.
4. Proceed to select the tab or button “Review + Create” to validate the configurations.
5. Proceed to select the “Create” button to create and deploy the Load balancer. You can
monitor the deployment progress in the Azure Portal.
6. Go to “All resources”, select on newly created Load balancer name and verify the settings.
The below screen shots describe the above procedure under Step3:
➢ Configuration for Inbound rules:
2. Resource level: Refer to the side menu “Access Control (IAM)” under the respective
Resource overview page. Select the Resource and follow the prompts.
3. Subscription level – Discussed above under “Managing Subscriptions and Access Control”.
• The below key services are available under the “Monitor” service in the left-hand side menu.
1. Setting up Azure Monitor for resource monitoring.
2. Creating and customizing alerts for resource health and performance.
3. Analysing resource logs and metrics.
4. Using Azure Log Analytics for advanced monitoring and querying.
Activity 8: Azure Support.
• The below key services can be accessed under the “Help + support” service in the left-hand
side menu.
1. Exploring Azure Support Plans and Tiers: Azure offers various support plans with different
levels of support, including Basic, Developer, Standard, and Professional Direct.
2. Initiating and managing support requests: you can create and manage support requests,
chat with a Microsoft support representative, or access support resources. Follow the
prompts to create a new support request, providing details about your issue.