Sunday, January 15, 2017

Microsoft Azure: Cloud Computing


OneDrive, Dropbox, Google Drive and Box comparision. 

https://www.cnet.com/how-to/onedrive-dropbox-google-drive-and-box-which-cloud-storage-service-is-right-for-you/


This Document contains following topics


Azure regions:
Products available by region:
Pricing:




TCO: Total cost of ownership:


Comparison between Amazons, Google CE & Azure



Creating Azure Account
  • Free Account /Start Free
  • Start Free








Classic portal:
New Portal: https://portal.azure.com      or


After login to portal:
Create a VM:
Some few steps are taken from new portal all other information are captured in Classic portal https://manage.windowsazure.com/













Connect to Virtual Machine using RDP.
\username


Testing the speed:
Speedtest.net


Adding IIS server in Windows Server




After installing IIS server role we can see the following folder:


Now create a basic html file like hello.html and paste it under wwwroot folder.




Creating end points:
Double Click on Selected Virtual Machine


Select ENDPOINTS tab and Click on Add button at the bottom of the page.




Now we can see 3 endpoints,


Copy the DNS name:
And open the following url:


Attaching the Disk:


We can find the new Storage details in the STORAGE Section. The STORAGE will be assigned from any data rack from the same datacenter. So no performance hinder.
Now the 50GB hard disk has been available in the VM.


Once the HardDisk is available, then we should format shown below.
Unless you put data into the HardDisk, Azure wont charge for the Hardisk.
And the charge is 5 Cents Per GB.
So for 100GB, its  3.42*100 = 342 Rupees per month


To check the available hard disk for our account.
Select STORAGE and double click on the storage name












Configure:
Selecting GEO REDUNDANT will keep 3copies of the Hard Disk in another DataCenter for Backup. And charge will be extra for this feature.


Increasing RAM and CPU Cores:
After updating the machine will get restart and downtime for 3-4 minutes.







Clone


Direct clone operation is not available in Azure. We should create a image of the exsiting VM and then use the same image for creating a new VM, which contains same properties and installed softwares. But, we can change the hardware configurations.
The steps to create image of the VM and Cloning is as follows.
Select virtual machine and click on Capture.
Now the VM image has been created.

Now cloning the first server image by following these steps.
Step1:






Load Balancing


If you need to load balance with  2 or more servers, we should select the cloud service of the base server and use the same cloud service in all the servers .

Under ENDPOINTS of first/base server , here the base server name is winser2012Vm2
Click on Add button to create a new end point




1. Now adding the second load balancing server
2. Here winser2012Vm2 is a Cloud Service of the first/base server
3. The endpoint it will be TCP by default not HTTP
Finish other steps with default values.


And now delete http endpoints created for both the servers for load balance and create a common endpoint as shown below.

Now select the Second server and add the ENDPOINTS
Now you see the DNS server name is same for both servers
Now hitting the url http://winser2012vm2.cloudapp.net/hello.html will give different result for different users, means the load are distributed equally.



Creating WebApp




Now the webapp is created and go to the dashboard, and in the right side we can find the url name, ftp, username.
If you forgot your password, go to dashboard and under “Publish your app” section we can find option to “reset your deployment credentials”.


Now click on Dashboard and in the right side we can find the url, ftp, ftps & username.


Copy FTP HOST NAME or FTPS HOST NAME and paste in the windows explorer address bar and it will ask you for credentials.


And now it will land in the following folder.


By Default hostingstart.html wil be exist, add your page ex: hello.html and hit the page url.




Auto Scaling by time and load.
Free, Shared, Basic, Standard


In Basic we can Scale upto 3 instance.


Standard:
Set up schedule times.


Click on set up schedule times
Scale by CPU:
Select CPU, max instance is 10,
If the TARGET CPU is below 60 the instance will reduce to previous count of instance. Ex: Current is 3 will decrease to 2.
If TARGET CPU > 80, then a new instance will be added automatically.


Cloud service we can have one or multiple virtual machines.
Traffic manager work is to redirect the traffic if any disaster occurs.
Creating a Traffic Manager, we can find 3 options Performance, Round Robin and Failover. Whenever there is Failover the traffic is diverted to the other Traffic Manager server.






In order to create a traffic manager to the virtual machines, the selected server virtual machines to be IIS enabled.


Backup Vault and Restore.
Creating backup in server 1 and restoring the backup folder in another server 2.
Here we created 2 Windows Server 2012 Virtual Machines.
vm1 and vm2-zeiss.
We should do all the actions in the VM server itself.




Create a BACKUP VAULT under Recovery Services. Here we created two Backup vault with the same name of the virtual machine servers created before.




Do all this actions in the server or copy the downloaded files from the local system the mapped server here it is vm1
Open backup vault of vm1 and download vault credentials and Agent for Windows Server or System Center Data Protection Manager or Windows Client.










In the vault credentials, import vault credentials file downloaded in the backup vault of vm1 in azure site.


In the below window, Click on Generate Passphrase or Give custom Passphrase of your wish and save it to disk. A new text file will be generated which contains the Passphrase which is required for decrypting the backup data (stored in cloud).


Now launch the
Now launch the Microsoft Azure Backup application, available in Desktop shortcuts we will see the below window, now need to configure schedule backup
Click on Schedule Backup


Go with other default options and Click on Finish Button


Now Click on Backup Now under Actions


Now the backup is created with today’s date.


Now we are planning to recover the data backup in the VM server 2.
1. Install the Agent in server 2.
2. Register VM server 2 with the same vault credentials of vm1 used to create backup. Check the below screenshot.
3. And the Passphrases key should be same which is saved in text file either by Generated / Manual enter characters.


Now click on the recover data
We can register more than one vm ex: The next image is only for example.


Enter the Passphrase while registering server in VM1.
Now data been recovered and saved in the local drive.

-------------------------------------------------------------

Shutdown and Deallocation of the Resources to stop billing on it.

https://blogs.msdn.microsoft.com/cie/2014/03/30/how-to-reduce-bills-save-for-your-applications-deployed-on-windows-azure-virtual-machines/

1. Select any service and click on shutdown.


--------------------------------


Creating Azure Multi User with Different Roles:

https://docs.microsoft.com/en-us/azure/billing-add-change-azure-subscription-administrator


The following example is from new  Azure Portal



----------------------------------------------



PowerShell commands:





SAAS vs PaaS vs IaaS


Azure Expiry:






No comments:

Post a Comment

JMeter Simple Controller

  Simple Controller is just a  container  for user request.