How To Migrate A Web Server From One Resource Group To Another Resource Group In Azure.
Organizations are moreover migrating their critical workloads to
different Cloud platforms. Cloud platforms provide many types of
migration, including lift-and-shift migration, database migration, and
migration of on-premises servers to Azure, AWS, or any other platform. Azure
offers the most reliable service through Azure Storage explorer that
provides immense techniques to migrate the server without pinch loss of
data.
LAB WORK TO MIGRATE THE WEB SERVER FROM ONE RG TO ANOTHER RG.
1. create a resource group.
2. Create a Virtual Machine (VM) in the Azure portal as a resource
where you’ll be deploying your website.
>> Configure apache2 into webserver:-
>> command to install apache2 is :- apt install apache2 (ubuntu
server).
>> After Configuring Apache2 into the server you need to copy all
the required files to /var/www/html directory.
>> command to start the Apache2 into your server is
:- "systemctl start apache2" and "systemctl enable apache2".
>> Allow HTTP and HTTPS port to the web-server in
Networking tab.
>> Port _80 is for the HTTP and Port_443 is for
HTTPS.
>> Then your website will be operational, and
you can view it by making a Google request to the server's
IP address.
3. Create the new resource group to which you want to move the
VM.
4. Before you can migrate your server, you must install
Azure Storage Explorer. Azure storage explorer Download link.
Then Setup / login your Azure account in Azure Storage explorer.
Next, using Azure Storage Explorer(Azure Storage Explorer is
a standalone app that enables you to easily work with Azure
Storage data on Windows, macOS, and Linux), select your
storage account name in Azure Storage Explorer, then select
disks under that azure account name.
>> The migration can be performed by linking a
new server to a newly created Azure resource group, then
following the migration steps in the Azure Storage Explorer
tool.
>> Move all disks associated with your original VM into
another VM ( newly created VM in the other RG).
>> using the copied disk deploy a virtual machine. and
After that you website would be operational in the newly
deployed server's IP address.
>> deploy the virtual machine using the copied disk in
the following way:-
>> and After that you website would be operational in
the newly deployed server's IP address.
Additional Information :-
Some of the Top books That will make you through server
migration in azure .
Good job👍
ReplyDelete