Extend
and migrate on-premises site to Microsoft Azure
This tool, introduced in version 1910, helps you to programmatically create
Azure virtual machines (VMs) for Configuration Manager. It can install with
default settings site roles like a passive site server, management points, and
distribution points. Once you validate the new roles, use them as additional
site systems for high availability. You can also remove the on-premises site
system role and only keep the Azure VM role.
Prerequisites
- An Azure subscription
- Azure virtual network with ExpressRoute gateway
- Your user account needs to be a Configuration Manager Full Administrator and have administrator rights on the primary site server.
- To add a passive server, the primary site must meet the site server high availability requirements. For example, it requires a remote content library.
Required Azure permissions
You'll need the following permissions in Azure when you run the tool:
Microsoft.Resources/subscriptions/resourceGroups/read
Microsoft.Resources/subscriptions/resourceGroups/write
Microsoft.Resources/deployments/read
Microsoft.Resources/deployments/write
Microsoft.Resources/deployments/validate/action
Microsoft.Authorization/roleAssignments/read
Microsoft.Authorization/roleAssignments/write
Microsoft.Compute/virtualMachines/extensions/read
Microsoft.Compute/virtualMachines/extensions/write
Microsoft.Compute/virtualMachines/read
Microsoft.Compute/virtualMachines/write
Microsoft.Network/virtualNetworks/read
Microsoft.Network/virtualNetworks/subnets/read
Microsoft.Network/virtualNetworks/subnets/join/action
Microsoft.Network/networkInterfaces/read
Microsoft.Network/networkInterfaces/write
Microsoft.Network/networkInterfaces/join/action
Microsoft.Network/networkSecurityGroups/write
Microsoft.Network/networkSecurityGroups/read
Microsoft.Network/networkSecurityGroups/join/action
Microsoft.Storage/storageAccounts/write
Microsoft.Storage/storageAccounts/read
Microsoft.Storage/storageAccounts/listkeys/action
Microsoft.Storage/storageAccounts/listServiceSas/action
Microsoft.Storage/storageAccounts/blobServices/containers/write
Microsoft.Storage/storageAccounts/blobServices/containers/read
Microsoft.KeyVault/vaults/deploy/action
Microsoft.KeyVault/vaults/read
Microsoft.Resources/subscriptions/resourceGroups/write
Microsoft.Resources/deployments/read
Microsoft.Resources/deployments/write
Microsoft.Resources/deployments/validate/action
Microsoft.Authorization/roleAssignments/read
Microsoft.Authorization/roleAssignments/write
Microsoft.Compute/virtualMachines/extensions/read
Microsoft.Compute/virtualMachines/extensions/write
Microsoft.Compute/virtualMachines/read
Microsoft.Compute/virtualMachines/write
Microsoft.Network/virtualNetworks/read
Microsoft.Network/virtualNetworks/subnets/read
Microsoft.Network/virtualNetworks/subnets/join/action
Microsoft.Network/networkInterfaces/read
Microsoft.Network/networkInterfaces/write
Microsoft.Network/networkInterfaces/join/action
Microsoft.Network/networkSecurityGroups/write
Microsoft.Network/networkSecurityGroups/read
Microsoft.Network/networkSecurityGroups/join/action
Microsoft.Storage/storageAccounts/write
Microsoft.Storage/storageAccounts/read
Microsoft.Storage/storageAccounts/listkeys/action
Microsoft.Storage/storageAccounts/listServiceSas/action
Microsoft.Storage/storageAccounts/blobServices/containers/write
Microsoft.Storage/storageAccounts/blobServices/containers/read
Microsoft.KeyVault/vaults/deploy/action
Microsoft.KeyVault/vaults/read
Run the tool
- Sign on to the primary site server and run the following tool in the Configuration Manager installation directory: Cd.Latest\SMSSETUP\TOOLS\ExtendMigrateToAzure\ExtendMigrateToAzure.exe
- Review the information on the General tab, and then switch to the Azure Information tab.
- On the Azure Information tab, choose your Azure environment, and then Sign in.
Tip
You may need to add https://*.microsoft.com to your trusted websites list to correctly sign in.
- After you sign in, select your Subscription ID and Virtual network. The tool only lists networks with an ExpressRoute gateway.
Site Server High Availability
- On the Site Server High Availability tab, select Check to evaluate your site's readiness.
If any of the checks fail,
select More detail to determine how to remediate the problem.
- If you want to extend or migrate your site server to Azure, select Create a site server in Azure. Then fill in the following fields:
|
|||||||||||||||||||||||||||||||||||
- Important
- By default the virtual machines are set to No for Use existing Windows Server license. If you want to utilize your on-premises Windows Server licenses with Software Assurance, configure this setting in the Azure portal after the virtual machines are provisioned. For more information, see Azure Hybrid Benefit for Windows Server.
- To start provisioning the Azure VM, select Start. To monitor the deployment status, switch to the Deployments in Azure tab in the tool. To get the latest status, select Refresh deployment status.
Tip
- When the deployment finishes, go to your SQL servers, and grant permissions for the new Azure VM. For more information, see Site server high availability - Prerequisites.
- To add the Azure VM as a site server in passive mode, select Add site server in passive mode.
- Once the site adds the site server in passive mode, the Site Server High Availability tab shows the status.
- Next, go to the Deployments in Azure tab to finish the deployment.
Site database
The tool doesn't currently have any tasks to migrate the database from
on-premises to Azure. You can choose to move the database from an on-premises
SQL server to an Azure SQL Server VM. The tool lists the following articles on
the Site Database tab to help:
- Backup and restore the database
- Configure SQL Always On and allow the data to replicate
- Migrate a SQL database to an Azure SQL Server VM
Site system roles
- Switch to the Site System Roles tab. To provision a new site system role with the default settings, select Create new. You can provision roles such as the management point, distribution point, and software update point. Not all roles are currently available in the tool.
- In the provisioning window, fill in the fields to provision the site role's VM in Azure. These details are similar to the above list for the site server.
- To start provisioning the Azure VM, select Start. To monitor the deployment status, switch to the Deployments in Azure tab in the tool. To get the latest status, select Refresh deployment status.
Tip
- Repeat this process to add more site system roles.
- Next, go to the Deployments in Azure tab to finish the deployment.
- When the deployment finishes, go to the Configuration Manager console to make additional changes to the site role.
Deployments in Azure
- Once Azure creates the VM, switch to the Deployments in Azure tab in the tool. Select Deploy to configure the role with the default settings.
- Select Run to start the PowerShell script.
- Repeat this process to configure more roles.
Aucun commentaire:
Enregistrer un commentaire