Vara värd för en lokal utvecklings-/test miljö på Azure Virtual Machines via Azure MigrateRehost an on-premises dev/test environment on Azure Virtual Machines via Azure Migrate
Den här artikeln visar hur det fiktiva företaget contoso revärderar sin utvecklings-/test miljö för två program som körs på virtuella VMware-datorer genom att migrera till Azure Virtual Machines.This article demonstrates how the fictional company Contoso rehosts its dev/test environment for two applications running on VMware virtual machines (VMs) by migrating to Azure Virtual Machines.
SmartHotel360 -och osTicket -programmen som används i det här exemplet är öppen källkod.The SmartHotel360 and osTicket applications used in this example are open source. Du kan ladda ned dem för dina egna testnings ändamål.You can download them for your own testing purposes.
MigreringsalternativMigration options
Contoso har flera tillgängliga alternativ för att flytta dev/test-miljöer till Azure:Contoso has several options available for moving dev/test environments to Azure:
MigreringsalternativMigration options | ResultatOutcome |
---|---|
Azure MigrateAzure Migrate | Utvärdera och migrera lokala virtuella datorer.Assess and migrate on-premises VMs. Kör dev/test-servrar med Azure Infrastructure as a Service (IaaS).Run dev/test servers by using Azure infrastructure as a service (IaaS). Hantera virtuella datorer med Azure Resource Manager.Manage VMs with Azure Resource Manager. |
Azure DevTest LabsAzure DevTest Labs | Etablera utvecklings-och test miljöer snabbt.Quickly provision development and test environments. Minimera slöseri med kvoter och principer.Minimize waste with quotas and policies. Konfigurera automatiska avstängningar för att minimera kostnaderna.Set automated shutdowns to minimize costs. Bygg Windows-och Linux-miljöer.Build Windows and Linux environments. |
Anteckning
Läs hur contoso flyttade utvecklings-och test miljön till Azure med hjälp av DevTest Labs.Read how Contoso moved its dev/test environment to Azure by using DevTest Labs.
Affärsdrivande faktorerBusiness drivers
Utvecklings ledarskaps gruppen har fått information om vad det vill uppnå med migreringen.The development leadership team has outlined what it wants to achieve with this migration. Det är enkelt att snabbt flytta dev/test-funktioner från ett lokalt Data Center och inte längre köpa maskin vara för att utveckla program.It aims to quickly move dev/test capabilities out of an on-premises datacenter and no longer purchase hardware to develop software. Den syftar också till att ge utvecklare möjlighet att skapa och köra sina miljöer utan att behöva delta i den.It also seeks to empower developers to create and run their environments without involvement from IT.
Anteckning
Contoso kommer att använda det dev/test – betala per användning prenumerations erbjudandet för sina miljöer.Contoso will use the Pay-As-You-Go Dev/Test subscription offer for its environments. Varje aktiv Visual Studio-prenumerant i teamet kan använda Microsoft-programvara som ingår i prenumerationens virtuella datorer för utveckling/testning utan extra kostnad.Each active Visual Studio subscriber on the team can use the Microsoft software included with the subscription virtual machines for dev/test at no extra charge. Contoso kommer bara att betala Linux-priset för virtuella datorer som körs.Contoso will just pay the Linux rate for VMs that it runs. Som inkluderar virtuella datorer med SQL Server, SharePoint Server eller annan program vara som normalt debiteras till en högre taxa.That includes VMs with SQL Server, SharePoint Server, or other software that's normally billed at a higher rate.
MigreringsmålMigration goals
Contoso Development Team har fäst målen för migreringen.The Contoso development team has pinned down goals for this migration. Målen används för att fastställa den bästa migreringsmetoden:These goals are used to determine the best migration method:
- Contoso vill snabbt flytta ut från lokala utvecklings-och test miljöer.Contoso wants to quickly move out of its on-premises dev/test environments.
- Efter migreringen bör Contosos utvecklings-/test miljö i Azure ha förbättrade funktioner i det aktuella systemet i VMware.After migration, Contoso's dev/test environment in Azure should have enhanced capabilities over the current system in VMware.
- Drifts modellen flyttas från den etablerade till DevOps med självbetjänings etablering.The operations model will move from IT provisioned to DevOps with self-service provisioning.
LösningsdesignSolution design
När du har fäst målen och kraven, kan du utforma och granska en distributions lösning i Contoso och identifiera migreringsprocessen.After pinning down goals and requirements, Contoso designs and reviews a deployment solution and identifies the migration process. Processen omfattar de Azure-tjänster som contoso kommer att använda för migreringen.The process includes the Azure services that Contoso will use for the migration.
Aktuellt programCurrent application
- De virtuella datorerna för utveckling och testning för de två programmen körs på virtuella datorer (
WEBVMDEV
,,SQLVMDEV
OSTICKETWEBDEV
OSTICKETMYSQLDEV
).The dev/test VMs for the two applications are running on VMs (WEBVMDEV
,SQLVMDEV
,OSTICKETWEBDEV
,OSTICKETMYSQLDEV
). De här virtuella datorerna används för utveckling innan kod höjs till produktions-VM: ar.These VMs are used for development before code is promoted to the production VMs. - De virtuella datorerna finns på VMware ESXi-värden
contosohost1.contoso.com
(version 6.5).The VMs are located on VMware ESXi hostcontosohost1.contoso.com
(version 6.5). - VMware-miljön hanteras av vCenter Server 6.5 (
vcenter.contoso.com
) som körs på en virtuell dator.The VMware environment is managed by vCenter Server 6.5 (vcenter.contoso.com
), running on a VM. - Contoso har ett lokalt Data Center (
contoso-datacenter
) med en lokal domänkontrollant (contosodc1
).Contoso has an on-premises datacenter (contoso-datacenter
) with an on-premises domain controller (contosodc1
).
Föreslagen arkitekturProposed architecture
Eftersom de virtuella datorerna används för utveckling/testning finns de i
ContosoDevRG
resurs gruppen i Azure.Because the VMs are used for dev/test, they'll reside in theContosoDevRG
resource group in Azure.De virtuella datorerna kommer att migreras till den primära Azure-regionen (
East US 2
) och placeras i det virtuella nätverket för utveckling (VNET-DEV-EUS2
).The VMs will be migrated to the primary Azure region (East US 2
) and placed in the development virtual network (VNET-DEV-EUS2
).De virtuella datorerna i front-end-undernätet placeras i
DEV-FE-EUS2
utvecklings nätverket.The web front-end VMs will reside in the front-end subnet (DEV-FE-EUS2
) in the development network.Den virtuella databasen kommer att finnas i databas under nätet (
DEV-DB-EUS2
) i utvecklings nätverket.The database VM will reside in the database subnet (DEV-DB-EUS2
) in the development network.De lokala, virtuella datorerna i Contoso-datacentret inaktiveras när migreringen är färdig.The on-premises VMs in the Contoso datacenter will be decommissioned after the migration is done.
Bild 1: föreslagen arkitektur.Figure 1: Proposed architecture.
DatabasövervägandenDatabase considerations
Contoso har valt att fortsätta använda befintliga virtuella datorer och migrera dem till Azure för att stödja pågående utveckling.To support ongoing development, Contoso has decided to continue using existing VMs and migrate them to Azure. I framtiden kommer contoso att använda PaaS-tjänster (Platform as a Service), till exempel Azure SQL Database och Azure Database for MySQL.In the future, Contoso will pursue the use of platform as a service (PaaS) services such as Azure SQL Database and Azure Database for MySQL.
- Virtuella databas datorer migreras i befintligt skick utan ändringar.Database VMs will be migrated as is without changes.
- Med hjälp av prenumerations erbjudandet för Azure dev/test innebär det att de datorer som kör Windows Server och SQL Server inte debiteras licens avgifter.With the use of the Azure Dev/Test subscription offer, the computers running Windows Server and SQL Server will not incur licensing fees. Genom att undvika avgifter håller du beräknings kostnaderna till ett minimum.Avoiding fees will keep the compute costs to a minimum.
- I framtiden kommer contoso att se ut att integreras med PaaS Services.In the future, Contoso will look to integrate its development with PaaS services.
Utvärdering av lösningenSolution review
Contoso utvärderar den föreslagna designen genom att sätta samman en lista med-och nack delar.Contoso evaluates the proposed design by putting together a list of pros and cons.
Att tänka påConsideration | InformationDetails |
---|---|
FördelarPros | Alla virtuella datorer i utvecklingen flyttas till Azure utan ändringar, vilket gör migreringen enkel.All of the development VMs will be moved to Azure without changes, making the migration simple. Eftersom Contoso använder en hiss-och-Shift-metod för båda uppsättningarna med virtuella datorer behövs inte särskilda konfigurations-eller Migreringsverktyg för program databasen.Because Contoso is using a lift-and-shift approach for both sets of VMs, special configuration or migration tools aren't needed for the application database. Contoso kan dra nytta av dess investeringar i Azure dev/test-prenumerationen för att spara licens avgifter.Contoso can take advantage of its investment in the Azure Dev/Test subscription to save on licensing fees. Contoso behåller fullständig kontroll över virtuella program datorer i Azure.Contoso will retain full control of the application VMs in Azure. Utvecklare får rättigheter till prenumerationen, vilket gör att de kan skapa nya resurser utan att vänta på att de svarar på deras förfrågningar.Developers will be provided with rights to the subscription, which empowers them to create new resources without waiting for IT to respond to their requests. |
NackdelarCons | Migreringen flyttar bara de virtuella datorerna och flyttas ännu inte till PaaS-tjänster för utveckling.The migration will only move the VMs, not yet moving to PaaS services for their development. Det innebär att contoso måste behöva börja stödja driften av de virtuella datorerna, inklusive säkerhets korrigeringar.This means that Contoso will need have to start supporting the operations of its VMs, including security patches. Detta behölls av den tidigare, så contoso måste hitta en lösning för den nya drift uppgiften.This was maintained by IT in the past, so Contoso will need to find a solution for this new operational task. Den molnbaserade lösningen skyddar utvecklarna och har inte skydd för att överetablera system.The cloud-based solution empowers the developers and doesn't have safeguards for overprovisioning systems. Utvecklare kan genast etablera sina system, men de kan skapa resurser som kostar pengar och som inte ingår i budgeten.Developers will be able to instantly provision their systems, but they might create resources that cost money and aren't included in the budget. |
Anteckning
Contoso kunde hantera nack delar i listan med hjälp av DevTest Labs.Contoso could address the cons in its list by using DevTest Labs.
MigreringsprocessenMigration process
Contoso migrerar sin utvecklings-och databas till virtuella Azure-datorer med hjälp av metoden utan agent i Azure Migrate: Migreringsverktyg för Server.Contoso will migrate its development front end and database to Azure VMs by using the agentless method in the Azure Migrate: Server Migration tool.
- Contoso förbereder och konfigurerar Azure-komponenter för Azure Migrate: Server migrering och förbereder den lokala VMware-infrastrukturen.Contoso prepares and sets up Azure components for Azure Migrate: Server Migration, and prepares the on-premises VMware infrastructure.
- Azure-infrastrukturen är på plats, så Contoso behöver bara konfigurera replikeringen av de virtuella datorerna via Azure Migrate: Migreringsverktyg för Server.The Azure infrastructure is in place, so Contoso just needs to configure the replication of the VMs through the Azure Migrate: Server Migration tool.
- När allt är förberett kan Contoso börja replikera de virtuella datorerna.With everything prepared, Contoso can start replicating the VMs.
- När replikering har Aktiver ATS och fungerar, migrerar contoso de virtuella datorerna genom att testa migreringen och om den lyckas, så att den inte överflyttas till Azure.After replication is enabled and working, Contoso migrates the VMs by testing the migration and if successful, failing it over to Azure.
- När de virtuella datorerna för utveckling är igång i Azure kommer contoso att konfigurera om sina utvecklings arbets stationer så att de pekar på de virtuella datorerna som nu körs i Azure.After the development VMs are up and running in Azure, Contoso will reconfigure its development workstations to point at the VMs now running in Azure.
Bild 2: en översikt över migreringsprocessen.Figure 2: An overview of the migration process.
Azure-tjänsterAzure services
TjänstService | BeskrivningDescription | KostnadCost |
---|---|---|
Azure Migrate: Server-migreringAzure Migrate: Server Migration | Tjänsten dirigerar och hanterar migrering av lokala program och arbets belastningar och AWS eller GCP VM-instanser.The service orchestrates and manages migrating on-premises applications and workloads and AWS or GCP VM instances. | Vid replikering till Azure debiteras Azure Storage-avgifter.During replication to Azure, Azure Storage charges are incurred. Virtuella Azure-datorer skapas och debiteras när migreringen sker och de virtuella datorerna körs i Azure.Azure VMs are created and incur charges when the migration occurs and the VMs are running in Azure. Läs mer om avgifter och priser.Learn more about charges and pricing. |
FörutsättningarPrerequisites
Detta är vad Contoso behöver för att köra det här scenariot:This is what Contoso needs to run this scenario:
KravRequirements | InformationDetails |
---|---|
Azure dev/test-prenumerationAzure Dev/Test subscription | Contoso skapar en Azure dev/test-prenumeration för att dra nytta av att minska kostnaderna upp till 80 procent.Contoso creates an Azure Dev/Test subscription to take advantage of reducing costs up to 80 percent. Om du inte har någon Azure-prenumeration kan du skapa ett kostnadsfritt konto.If you don't have an Azure subscription, create a free account. Om du skapar ett kostnads fritt konto är du administratör för din prenumeration och du kan utföra alla åtgärder.If you create a free account, you're the admin of your subscription, and you can perform all actions. Om du använder en befintlig prenumeration men inte är administratör kan du arbeta med administratören för att tilldela behörigheter till ägare eller deltagare.If you use an existing subscription but you're not the admin, work with the admin to assign you Owner or Contributor permissions. Om du behöver mer detaljerade behörigheter, se hantera Site Recovery åtkomst med rollbaserad åtkomst kontroll i Azure (Azure RBAC).If you need more granular permissions, see Manage Site Recovery access with Azure role-based access control (Azure RBAC). |
Azure-infrastrukturAzure infrastructure | Lär dig hur contoso konfigurerar en Azure-infrastruktur.Learn how Contoso set up an Azure infrastructure. Läs mer om särskilda krav för Azure Migrate: Server-migrering.Learn more about specific prerequisites for Azure Migrate: Server Migration. |
Lokala servrarOn-premises servers | Lokala vCenter-servrar ska köra version 5,5, 6,0, 6,5 eller 6,7.On-premises vCenter servers should be running version 5.5, 6.0, 6.5, or 6.7. ESXi-värdar ska köra version 5,5, 6,0, 6,5 eller 6,7.ESXi hosts should run version 5.5, 6.0, 6.5, or 6.7. En eller flera virtuella VMware-datorer ska köras på ESXi-värden.One or more VMware VMs should be running on the ESXi host. |
ScenariostegScenario steps
Contosos administratörer genomför migreringen på följande sätt:Here's how Contoso admins will run the migration:
- Steg 1: Förbered Azure för Azure Migrate: Server-migrering.Step 1: Prepare Azure for Azure Migrate: Server Migration. De lägger till Migreringsverktyg till Azure Migrate projektet.They add the server migration tool to their Azure Migrate project.
- Steg 2: Förbered lokala VMware för Azure Migrate: Server-migrering.Step 2: Prepare on-premises VMware for Azure Migrate: Server Migration. De förbereder konton för identifiering av virtuella datorer och förbereder för att ansluta till virtuella Azure-datorer efter migreringen.They prepare accounts for VM discovery and prepare to connect to Azure VMs after migration.
- Steg 3: replikera virtuella datorer.Step 3: Replicate VMs. De konfigurerar replikering och startar replikering av virtuella datorer till Azure Storage.They set up replication and start replicating VMs to Azure Storage.
- Steg 4: migrera de virtuella datorerna med Azure Migrate: Server-migrering.Step 4: Migrate the VMs with Azure Migrate: Server Migration. De kör en testmigrering för att se till att allt fungerar och kör sedan en fullständig migrering för att flytta de virtuella datorerna till Azure.They run a test migration to make sure everything's working and then run a full migration to move the VMs to Azure.
Steg 1: Förbered Azure för verktyget Azure Migrate: Migreringsverktyg för ServerStep 1: Prepare Azure for the Azure Migrate: Server Migration tool
Contoso måste migrera de virtuella datorerna till ett virtuellt nätverk där de virtuella Azure-datorerna ska finnas när de skapas, tillhandahålls och konfigureras via Azure Migrate: Migreringsverktyg för Server.Contoso needs to migrate the VMs to a virtual network where the Azure VMs will reside when they're created, provisioned, and configured through the Azure Migrate: Server Migration tool.
Konfigurera ett nätverk: contoso har redan konfigurerat ett nätverk som kan vara för Azure Migrate: Server-migrering när den distribuerade Azure-infrastrukturen.Set up a network: Contoso already set up a network that can be for Azure Migrate: Server Migration when it deployed the Azure infrastructure.
- De virtuella datorer som ska migreras används för utveckling.The VMs to be migrated are used for development. De migreras till det virtuella Azure Development-nätverket (
VNET-DEV-EUS2
) i den primäraEast US 2
regionen.They will migrate to the Azure development virtual network (VNET-DEV-EUS2
) in the primaryEast US 2
region. - Båda virtuella datorerna placeras i
ContosoDevRG
resurs gruppen, som används för utvecklings resurser.Both VMs will be placed in theContosoDevRG
resource group, which is used for development resources. - Programfrontend-VM: ar (
WEBVMDEV
ochOSTICKETWEBDEV
) migreras till klient dels under nätet (DEV-FE-EUS2
) i det virtuella utvecklings nätverket.The application front-end VMs (WEBVMDEV
andOSTICKETWEBDEV
) will migrate to the front-end subnet (DEV-FE-EUS2
), in the development virtual network. - Den virtuella program databasen (
SQLVMDEV
ochOSTICKETMYSQLDEV
) migreras till databas under nätet (DEV-DB-EUS2
) i det virtuella utvecklings nätverket.The application database VM (SQLVMDEV
andOSTICKETMYSQLDEV
) will migrate to the database subnet (DEV-DB-EUS2
), in the development virtual network.
- De virtuella datorer som ska migreras används för utveckling.The VMs to be migrated are used for development. De migreras till det virtuella Azure Development-nätverket (
Etablera Azure Migrate: Migreringsverktyg för Server.Provision the Azure Migrate: Server Migration tool.
Från Azure Migrate laddar du ned. ÄGG avbildningen och importera den till VMware.From Azure Migrate, download the .OVA image and import it into VMware.
Bild 3: Hämta. ÄGG fil.Figure 3: Download the .OVA file.
Starta den importerade avbildningen och konfigurera verktyget, inklusive följande steg:Start the imported image and configure the tool, including the following steps:
Konfigurera för hands kraven.Set up the prerequisites.
Bild 4: Konfigurera förutsättningarna.Figure 4: Setting up the prerequisites.
Peka verktyget till Azure-prenumerationen.Point the tool to the Azure subscription.
Bild 5: Azure-prenumerationen.Figure 5: The Azure subscription.
Ange VMware vCenter-autentiseringsuppgifter.Set the VMware vCenter credentials.
Bild 6: Ange VMware vCenter-autentiseringsuppgifter.Figure 6: Setting the VMware vCenter credentials.
Lägg till eventuella Windows-baserade autentiseringsuppgifter för identifiering.Add any Windows-based credentials for discovery.
Bild 7: lägga till Windows-baserade autentiseringsuppgifter för identifiering.Figure 7: Adding Windows-based credentials for discovery.
När du har slutfört konfigurationen tar verktyget en stund att räkna upp alla virtuella datorer.When you complete the configuration, the tool will take some time to enumerate all the VMs. Du kommer att se att de fyller Azure Migrate-verktyget i Azure när den här processen har slutförts.You'll see them populate the Azure Migrate tool in Azure when this process finishes.
Behöver du mer hjälp?Need more help?
Lär dig hur du konfigurerar verktyget Azure Migrate: Migreringsverktyg för Server.Learn how to set up the Azure Migrate: Server Migration tool.
Förbereda lokala virtuella datorerPrepare on-premises VMs
Efter migreringen vill contoso ansluta till de virtuella Azure-datorerna och tillåta Azure att hantera de virtuella datorerna.After migration, Contoso wants to connect to the Azure VMs and allow Azure to manage the VMs. Contosos administratörer gör följande före migreringen för att göra detta:To do this, Contoso admins do the following before migration:
För åtkomst via Internet gör de följande:For access over the internet, they:
- Aktivera RDP eller SSH på den lokala virtuella datorn innan migreringen.Enable RDP or SSH on the on-premises VM before migration.
- Se till att TCP-och UDP-regler läggs till för
Public
profilen.Ensure that TCP and UDP rules are added for thePublic
profile. - Kontrol lera att RDP eller SSH tillåts i brand väggen för operativ systemet.Check that RDP or SSH is allowed in the operating system firewall.
- Installera SSH via följande kommando:
sudo apt-get ssh install -y
.Install SSH via the following command:sudo apt-get ssh install -y
.
För åtkomst via plats-till-plats-VPN:For access over Site-to-Site VPN, they:
- Aktivera RDP eller SSH på den lokala virtuella datorn innan migreringen.Enable RDP or SSH on the on-premises VM before migration.
- Kontrol lera att RDP eller SSH tillåts i brand väggen för operativ systemet.Check that RDP or SSH is allowed in the operating system firewall.
- För Windows ställer du in operativ systemets SAN-princip på den lokala virtuella datorn till
OnlineAll
.For Windows, set the operating system's SAN policy on the on-premises VM toOnlineAll
.
Installera Azure Windows-agenten och Azure Linux-agenten.Install the Azure Windows agent and the Azure Linux agent.
Windows-uppdateringar väntar inte på den virtuella datorn när du utlöser en migrering.For Windows, there shouldn't be Windows updates pending on the VM when you're triggering a migration. I så fall kan administratörerna inte logga in på den virtuella datorn förrän uppdateringarna har slutförts.If there are, the admins won't be able to sign in to the VM until the updates finish. Efter migreringen kan administratörerna kontrol lera startdiagnostiken för att visa en skärm bild av den virtuella datorn.After migration, the admins can check Boot diagnostics to view a screenshot of the VM. Om detta inte fungerar bör du kontrol lera att den virtuella datorn körs och granska fel söknings tips.If this doesn't work, they should verify that the VM is running and review troubleshooting tips.
Behöver du mer hjälp?Need more help?
Lär dig hur du förbereder virtuella datorer för migrering.Learn how to prepare VMs for migration.
Steg 3: replikera lokala virtuella datorerStep 3: Replicate the on-premises VMs
Innan Contosos administratörer kan köra en migrering till Azure måste de konfigurera och aktivera replikering.Before Contoso admins can run a migration to Azure, they need to set up and enable replication. När identifieringen är klar kan de börja replikera virtuella VMware-datorer till Azure.With discovery completed, they can begin replicating VMware VMs to Azure.
I Azure Migrate-projektet går du till servrar > Azure Migrate: Server migrering.In the Azure Migrate project, go to Servers > Azure Migrate: Server Migration. Välj sedan Replikera.Then select Replicate.
Bild 8: replikera virtuella datorer.Figure 8: Replicating VMs.
I Replikera > käll inställningar > är dina datorer virtualiserade? väljer du Ja, med VMware vSphere.In Replicate > Source settings > Are your machines virtualized?, select Yes, with VMware vSphere.
I lokal installation väljer du namnet på Azure Migrate-installationen som du ställer in och väljer sedan OK.In On-premises appliance, select the name of the Azure Migrate appliance that you set up, and then select OK.
Bild 9: käll inställningarna.Figure 9: The source settings.
I virtuella datorer väljer du de datorer som du vill replikera.In Virtual machines, select the machines that you want to replicate.
Om du har kört en utvärdering för de virtuella datorerna kan du tillämpa rekommendationer för VM-storlek och disk typ (Premium eller standard) från utvärderings resultatet.If you've run an assessment for the VMs, you can apply VM sizing and disk type (premium or standard) recommendations from the assessment results. Gör detta i Vill du importera migreringsinställningar från en Azure Migrate-utvärdering? och välj alternativet Ja.To do this, in Import migration settings from an Azure Migrate assessment?, select the Yes option.
Om du inte har kört en utvärdering eller om du inte vill använda bedömnings inställningarna väljer du alternativet Nej .If you didn't run an assessment or you don't want to use the assessment settings, select the No option.
Om du har valt att använda utvärderingen väljer du VM-gruppen och utvärderings namnet.If you selected to use the assessment, select the VM group and assessment name.
Bild 10: Konfigurera förutsättningarna.Figure 10: How to set up the prerequisites.
I virtuella datorer söker du efter de virtuella datorerna efter behov och kontrollerar varje virtuell dator som du vill migrera.In Virtual machines, search for VMs as needed and check each VM you want to migrate. Välj sedan Nästa: mål inställningar.Then select Next: Target settings.
I mål inställningar väljer du den prenumeration och mål region som du ska migrera till.In Target settings, select the subscription and target region to which you'll migrate. Ange sedan den resurs grupp där de virtuella Azure-datorerna ska finnas efter migreringen.Then specify the resource group in which the Azure VMs will reside after migration. I Virtual Network väljer du det virtuella nätverk eller undernät som de virtuella Azure-datorerna ska kopplas till efter migreringen.In Virtual Network, select the virtual network or subnet to which the Azure VMs will be joined after migration.
I Azure Hybrid-förmån väljer du Nej om du inte vill använda Azure Hybrid-förmån.In Azure Hybrid Benefit, select No if you don't want to apply Azure Hybrid Benefit. Välj sedan Nästa.Then select Next. Välj Ja om du har Windows Server-datorer som omfattas av aktiva Software Assurance-eller Windows Server-prenumerationer och vill använda förmånen för de datorer som du migrerar.Select Yes if you have Windows Server machines that are covered with active Software Assurance or Windows Server subscriptions and you want to apply the benefit to the machines you're migrating. Välj sedan Nästa.Then select Next.
Anteckning
När det gäller contoso väljer administratörerna Nej för att Azure Hybrid-förmån eftersom det är en Azure dev/test-prenumeration.In the case of Contoso, the admins will select No to Azure Hybrid Benefit because this is an Azure Dev/Test subscription. Det innebär att de endast betalar för beräkning.This means they'll pay for the compute only. Azure Hybrid-förmån bör endast användas för produktions system som har Software Assurance-förmåner.Azure Hybrid Benefit should be used only for production systems that have Software Assurance benefits.
I Compute granskar du namnet på den virtuella datorn, storlek, disktyp för operativsystemet och tillgänglighetsuppsättningen.In Compute, review the VM name, size, OS disk type, and availability set. De virtuella datorerna måste följa Azures krav.VMs must conform with Azure requirements.
- VM-storlek: Om du använder bedömnings rekommendationer, innehåller den här nedrullningsbara listan den rekommenderade storleken.VM size: If you're using assessment recommendations, this drop-down list contains the recommended size. Annars väljer Azure Migrate en storlek baserat på den närmaste matchningen i Azure-prenumerationen.Otherwise, Azure Migrate selects a size based on the closest match in the Azure subscription. Du kan välja en manuell storlek i stället för storleken på virtuella Azure-datorer.You can choose a manual size instead in Azure VM size.
- OS-disk: Ange OS-disken (start) för den virtuella datorn.OS disk: Specify the OS (boot) disk for the VM. OS-disken har Start programmet för operativ system och installations programmet.The OS disk has the operating system bootloader and installer.
- Tillgänglighets uppsättning: Om den virtuella datorn ska finnas i en Azure-tillgänglighets uppsättning efter migreringen anger du sedan uppsättningen.Availability set: If the VM should be in an Azure availability set after migration, then specify the set. Uppsättningen måste finnas i mål resurs gruppen som du anger för migreringen.The set must be in the target resource group that you specify for the migration.
I diskar anger du om de virtuella dator diskarna ska replikeras till Azure och väljer disk typ (standard SSD/HDD eller Premium Managed Disks) i Azure.In Disks, specify whether the VM disks should be replicated to Azure and select the disk type (standard SSD/HDD or premium managed disks) in Azure. Välj sedan Nästa.Then select Next. Du kan undanta diskar från replikering.You can exclude disks from replication. Om du gör det finns de inte på den virtuella Azure-datorn efter migreringen.If you do, they won't be present on the Azure VM after migration.
I Granska och starta replikering granskar du inställningarna och väljer Replikera för att starta den inledande replikeringen för servrarna.In Review and start replication, review the settings and select Replicate to start the initial replication for the servers.
Anteckning
Du kan uppdatera replikeringsinställningar när som helst innan replikeringen börjar i Hantera > replikerings datorer.You can update replication settings at any time before replication starts in Manage > Replicating machines. Det går inte att ändra inställningarna efter att replikeringen har startat.Settings can't be changed after replication starts.
Steg 4: migrera de virtuella datorernaStep 4: Migrate the VMs
Contoso-administratörer kör en snabb test migrering och sedan en fullständig migrering för att migrera de virtuella datorerna.Contoso admins run a quick test migration and then a full migration to migrate the VMs.
Kör en testmigreringRun a test migration
I Server för migrerings mål > > Azure Migrate: Server migrering, Välj test migrerade servrar.In Migration goals > Servers > Azure Migrate: Server Migration, select Test migrated servers.
Bild 11: testa migrerade servrar.Figure 11: Testing migrated servers.
Välj och håll (eller högerklicka) på den virtuella datorn som du vill testa och välj sedan testa migrering.Select and hold (or right-click) the VM to test, and then select Test migrate.
Bild 12: testa migreringen.Figure 12: Testing the migration.
I testa migrering väljer du det virtuella nätverk där den virtuella Azure-datorn ska placeras efter migreringen.In Test Migration, select the virtual network in which the Azure VM will be located after the migration. Vi rekommenderar att du använder ett virtuellt nätverk som inte är för produktion.We recommend that you use a nonproduction virtual network.
Testmigreringen startas.The Test migration job starts. Övervaka jobbet i portalmeddelanden.Monitor the job in the portal notifications.
När migreringen är klar kan du se den migrerade virtuella Azure-datorn i Virtual Machines i Azure Portal.After the migration finishes, view the migrated Azure VM in Virtual Machines in the Azure portal. Dator namnet har ett -test- suffix.The machine name has a -Test suffix.
När testet är klar väljer du och håller ned (eller högerklickar) på den virtuella Azure-datorn i Replikera datorer och väljer sedan Rensa testmigrering.After the test is done, select and hold (or right-click) the Azure VM in Replicating machines, and then select Clean up test migration.
Bild 13: rensning av testmigreringen.Figure 13: Cleaning up the test migration.
Migrera de virtuella datorernaMigrate the VMs
Contoso-administratörer kör nu en fullständig migrering.Now Contoso admins run a full migration.
I Azure Migrate-projektet väljer du servrar > Azure Migrate: > Replikera servrar för Server migrering.In the Azure Migrate project, select Servers > Azure Migrate: Server Migration > Replicating servers.
Bild 14: replikera servrar.Figure 14: Replicating servers.
I Replikera datorer, Välj och håll (eller högerklicka) på den virtuella datorn och välj sedan migrera.In Replicating machines, select and hold (or right-click) the VM, and then select Migrate.
I migrera > Stäng virtuella datorer och utför en planerad migrering utan data förlust väljer du Ja > OK.In Migrate > Shut down virtual machines and perform a planned migration with no data loss, select Yes > OK. Som standard stänger Azure Migrate ned den lokala virtuella datorn och kör en replikering på begäran för att synkronisera eventuella ändringar i virtuella datorer som inträffade sedan den senaste replikeringen skedde.By default, Azure Migrate shuts down the on-premises VM and runs an on-demand replication to synchronize any VM changes that occurred since the last replication occurred. Detta säkerställer att ingen dataförlust sker.This ensures no data loss. Om du inte vill stänga av den virtuella datorn väljer du Nej.If you don't want to shut down the VM, select No.
Ett migreringsjobb startas för den virtuella datorn.A migration job starts for the VM. Spåra jobbet i Azure-meddelanden.Track the job in Azure notifications.
När jobbet är klart kan du se och hantera den virtuella datorn på sidan Virtual Machines.After the job finishes, you can view and manage the VM from the Virtual Machines page.
Behöver du mer hjälp?Need more help?
Lär dig hur du kör en testmigrering och hur du migrerar virtuella datorer till Azure.Learn how to run a test migration and how to migrate VMs to Azure.
Rensa efter migreringClean up after migration
De virtuella datorerna för SmartHotel360 och osTicket börjar köras på virtuella Azure-datorer när migreringen är klar.The development VMs for both the SmartHotel360 and osTicket applications start running on Azure VMs when the migration is complete.
Nu måste Contoso utföra följande steg för rensning:Now, Contoso needs to complete these cleanup steps:
- När migreringen är klar stoppas replikeringen.After the migration is complete, stop replication.
- Ta bort
WEBVMDEV
,SQLVMDEV
,OSTICKETWEBDEV
ochOSTICKETMYSQLDEV
virtuella datorer från vCenter-lagret.Remove theWEBVMDEV
,SQLVMDEV
,OSTICKETWEBDEV
, andOSTICKETMYSQLDEV
VMs from the vCenter inventory. - Ta bort alla virtuella datorer från lokala säkerhets kopierings jobb.Remove all the VMs from local backup jobs.
- Uppdatera intern dokumentation för att visa den nya platsen och IP-adresserna för de virtuella datorerna.Update internal documentation to show the new location and IP addresses for the VMs.
- Granska alla resurser som interagerar med de virtuella datorerna och uppdatera alla relevanta inställningar eller dokumentation så att de överensstämmer med den nya konfigurationen.Review any resources that interact with the VMs, and update any relevant settings or documentation to reflect the new configuration.
Granska distributionenReview the deployment
När programmet nu körs måste contoso nu vara fullständigt operationalisera och säkra det i Azure.With the application now running, Contoso now needs to fully operationalize and secure it in Azure.
SäkerhetSecurity
Säkerhets teamet för Contoso granskar de virtuella Azure-datorerna för att fastställa eventuella säkerhets problem.The Contoso security team reviews the Azure VMs to determine any security issues. För åtkomstkontroll granskar teamet nätverkssäkerhetsgrupperna (NSG:er) för de virtuella datorerna.To control access, the team reviews the network security groups (NSGs) for the VMs. NSG: er används för att säkerställa att endast trafik som tillåts för programmet kan komma åt den.NSGs are used to ensure that only traffic allowed to the application can reach it. Teamet betraktar också att skydda data på disken med hjälp av Azure Disk Encryption och Azure Key Vault.The team also considers securing the data on the disk by using Azure Disk Encryption and Azure Key Vault.
Mer information finns i rekommenderade säkerhets metoder för IaaS-arbetsbelastningar i Azure.For more information, see Security best practices for IaaS workloads in Azure.
Affärskontinuitet och haveriberedskapBusiness continuity and disaster recovery
För verksamhets kontinuitet och haveri beredskap vidtar contoso följande åtgärd: skydda data på ett säkert sätt.For business continuity and disaster recovery, Contoso takes the following action: keep data safe. Contoso säkerhetskopierar data på de virtuella datorerna med hjälp av tjänsten Azure Backup.Contoso backs up the data on the VMs by using the Azure Backup service. Mer information finns i Översikt över säkerhets kopiering av virtuella Azure-datorer.For more information, see An overview of Azure VM backup.
Licensierings- och kostnadsoptimeringLicensing and cost optimization
Contoso ser till att alla Azure-resurser för utveckling skapas genom den här dev/test-prenumerationen för att spara 80 procent.Contoso will ensure that all development Azure resources are created through this dev/test subscription to save 80 percent. Administratörerna gör det möjligt Azure Cost Management + fakturering för att övervaka och hantera Azure-resurser.The admins will enable Azure Cost Management + Billing to help monitor and manage the Azure resources.
SlutsatsConclusion
I den här artikeln kommer contoso att vara värd för de virtuella utvecklings datorer som används för sina SmartHotel360-och osTicket-program i Azure.In this article, Contoso rehosted the development VMs used for its SmartHotel360 and osTicket applications in Azure. Administratörerna migrerade program-VM: ar till virtuella Azure-datorer med hjälp av Azure Migrate: Migreringsverktyg för Server.The admins migrated the application VMs to Azure VMs by using the Azure Migrate: Server Migration tool.