|
| 1 | +--- |
| 2 | +title: Set up an Azure Migrate appliance in Azure Government |
| 3 | +description: Learn how to set up an Azure Migrate appliance in Azure Government |
| 4 | +ms.topic: article |
| 5 | +ms.date: 04/16/2020 |
| 6 | +--- |
| 7 | + |
| 8 | + |
| 9 | +# Set up an appliance in Azure Government |
| 10 | + |
| 11 | +Follow this article to deploy an [Azure Migrate appliance](deploy-appliance.md) for VMware VMs, Hyper-V VMs, and physical servers, in an Azure Government cloud. You run a script to create the appliance, and verify that it can connect to Azure. If you want to set up an appliance in the public cloud, follow [this article](deploy-appliance-script.md). |
| 12 | + |
| 13 | + |
| 14 | +> [!NOTE] |
| 15 | +> The option to deploy an appliance using a template (for VMware VMs and Hyper-V VMs) isn't supported in Azure Government. |
| 16 | +
|
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +The script sets up the Azure Migrate appliance on an existing physical machine or VM. |
| 21 | + |
| 22 | +- The machine that will act as the appliance must be running Windows Server 2016, with 32 GB of memory, eight vCPUs, around 80 GB of disk storage, and an external virtual switch. It requires a static or dynamic IP address, and access to the internet. |
| 23 | +- Before you deploy the appliance, review detailed appliance requirements for [VMware VMs](migrate-appliance.md#appliance---vmware), [Hyper-V VMs](migrate-appliance.md#appliance---hyper-v), and [physical servers](migrate-appliance.md#appliance---physical). |
| 24 | +- Don't run the script on an existing Azure Migrate appliance. |
| 25 | + |
| 26 | +## Set up the appliance for VMware |
| 27 | + |
| 28 | +To set up the appliance for VMware you download a zipped file from the Azure portal, and extract the contents. You run the PowerShell script to launch the appliance web app. You set up the appliance and configure it for the first time. Then, you register the appliance with the Azure Migrate project. |
| 29 | + |
| 30 | +### Download the script |
| 31 | + |
| 32 | +1. In **Migration Goals** > **Servers** > **Azure Migrate: Server Assessment**, click **Discover**. |
| 33 | +2. In **Discover machines** > **Are your machines virtualized?**, select **Yes, with VMWare vSphere hypervisor**. |
| 34 | +3. Click **Download**, to download the zipped file. |
| 35 | + |
| 36 | + |
| 37 | +### Verify file security |
| 38 | + |
| 39 | +Check that the zipped file is secure, before you deploy it. |
| 40 | + |
| 41 | +1. On the machine to which you downloaded the file, open an administrator command window. |
| 42 | +2. Run the following command to generate the hash for the zipped file |
| 43 | + - ```C:\>CertUtil -HashFile <file_location> [Hashing Algorithm]``` |
| 44 | + - Example: ```C:\>CertUtil -HashFile C:\Users\administrator\Desktop\AzureMigrateInstaller-VMWare-USGov.zip MD5``` |
| 45 | + |
| 46 | +3. Verify the generated hash values. For the latest appliance version: |
| 47 | + |
| 48 | + **Algorithm** | **Hash value** |
| 49 | + --- | --- |
| 50 | + MD5 | 6316bcc8bc932204295bfe33f4be3949 |
| 51 | + |
| 52 | + |
| 53 | +### Run the script |
| 54 | + |
| 55 | +Here's what the script does: |
| 56 | + |
| 57 | +- Installs agents and a web application. |
| 58 | +- Installs Windows roles, including Windows Activation Service, IIS, and PowerShell ISE. |
| 59 | +- Downloads and installs an IIS rewritable module. [Learn more](https://www.microsoft.com/download/details.aspx?id=7435). |
| 60 | +- Updates a registry key (HKLM), with persistent settings for Azure Migrate. |
| 61 | +- Creates log and configuration files as follows: |
| 62 | + - **Config Files**: %ProgramData%\Microsoft Azure\Config |
| 63 | + - **Log Files**: %ProgramData%\Microsoft Azure\Logs |
| 64 | + |
| 65 | +To run the script: |
| 66 | + |
| 67 | +1. Extract the zipped file to a folder on the machine that will host the appliance. Make sure you don't run the script on a machine on an existing Azure Migrate appliance. |
| 68 | +2. Launch PowerShell on the machine, with administrator (elevated) privileges. |
| 69 | +3. Change the PowerShell directory to the folder containing the contents extracted from the downloaded zipped file. |
| 70 | +4. Run the script **AzureMigrateInstaller.ps1**, as follows: ``` PS C:\Users\Administrators\Desktop\AzureMigrateInstaller-VMWare-USGov>AzureMigrateInstaller.ps1 ``` |
| 71 | +5. After the script runs successfully, it launches the appliance web application so that you can set up the appliance. If you encounter any issues, review the script logs at C:\ProgramData\Microsoft Azure\Logs\AzureMigrateScenarioInstaller_<em>Timestamp</em>.log. |
| 72 | + |
| 73 | +### Verify access |
| 74 | + |
| 75 | +Make sure that the appliance can connect to Azure URLs for [government clouds](migrate-appliance.md#government-cloud-urls). |
| 76 | + |
| 77 | + |
| 78 | +## Set up the appliance for Hyper-V |
| 79 | + |
| 80 | +To set up the appliance for Hyper-V you download a zipped file from the Azure portal, and extract the contents. You run the PowerShell script to launch the appliance web app. You set up the appliance and configure it for the first time. Then, you register the appliance with the Azure Migrate project. |
| 81 | + |
| 82 | +### Download the script |
| 83 | + |
| 84 | +1. In **Migration Goals** > **Servers** > **Azure Migrate: Server Assessment**, click **Discover**. |
| 85 | +2. In **Discover machines** > **Are your machines virtualized?**, select **Yes, with Hyper-V**. |
| 86 | +3. Click **Download**, to download the zipped file. |
| 87 | + |
| 88 | + |
| 89 | +### Verify file security |
| 90 | + |
| 91 | +Check that the zipped file is secure, before you deploy it. |
| 92 | + |
| 93 | +1. On the machine to which you downloaded the file, open an administrator command window. |
| 94 | +2. Run the following command to generate the hash for the zipped file |
| 95 | + - ```C:\>CertUtil -HashFile <file_location> [Hashing Algorithm]``` |
| 96 | + - Example: ```C:\>CertUtil -HashFile C:\Users\administrator\Desktop\AzureMigrateInstaller-HyperV-USGov.zip MD5``` |
| 97 | + |
| 98 | +3. Verify the generated hash values. For the latest appliance version: |
| 99 | + |
| 100 | + **Algorithm** | **Hash value** |
| 101 | + --- | --- |
| 102 | + MD5 | 717f8b9185f565006b5aff0215ecadac |
| 103 | + |
| 104 | + |
| 105 | +### Run the script |
| 106 | + |
| 107 | +Here's what the script does: |
| 108 | + |
| 109 | +- Installs agents and a web application. |
| 110 | +- Installs Windows roles, including Windows Activation Service, IIS, and PowerShell ISE. |
| 111 | +- Downloads and installs an IIS rewritable module. [Learn more](https://www.microsoft.com/download/details.aspx?id=7435). |
| 112 | +- Updates a registry key (HKLM), with persistent settings for Azure Migrate. |
| 113 | +- Creates log and configuration files as follows: |
| 114 | + - **Config Files**: %ProgramData%\Microsoft Azure\Config |
| 115 | + - **Log Files**: %ProgramData%\Microsoft Azure\Logs |
| 116 | + |
| 117 | +To run the script: |
| 118 | + |
| 119 | +1. Extract the zipped file to a folder on the machine that will host the appliance. Make sure you don't run the script on a machine on an existing Azure Migrate appliance. |
| 120 | +2. Launch PowerShell on the machine, with administrator (elevated) privileges. |
| 121 | +3. Change the PowerShell directory to the folder containing the contents extracted from the downloaded zipped file. |
| 122 | +4. Run the script **AzureMigrateInstaller.ps1**, as follows: ``` PS C:\Users\Administrators\Desktop\AzureMigrateInstaller-HyperV-USGov>AzureMigrateInstaller.ps1 ``` |
| 123 | +5. After the script runs successfully, it launches the appliance web application so that you can set up the appliance. If you encounter any issues, review the script logs at C:\ProgramData\Microsoft Azure\Logs\AzureMigrateScenarioInstaller_<em>Timestamp</em>.log. |
| 124 | + |
| 125 | +### Verify access |
| 126 | + |
| 127 | +Make sure that the appliance can connect to Azure URLs for [government clouds](migrate-appliance.md#government-cloud-urls). |
| 128 | + |
| 129 | + |
| 130 | +## Set up the appliance for physical servers |
| 131 | + |
| 132 | +To set up the appliance for VMware you download a zipped file from the Azure portal, and extract the contents. You run the PowerShell script to launch the appliance web app. You set up the appliance and configure it for the first time. Then, you register the appliance with the Azure Migrate project. |
| 133 | + |
| 134 | +### Download the script |
| 135 | + |
| 136 | +1. In **Migration Goals** > **Servers** > **Azure Migrate: Server Assessment**, click **Discover**. |
| 137 | +2. In **Discover machines** > **Are your machines virtualized?**, select **Not virtualized/Other**. |
| 138 | +3. Click **Download**, to download the zipped file. |
| 139 | + |
| 140 | + |
| 141 | +### Verify file security |
| 142 | + |
| 143 | +Check that the zipped file is secure, before you deploy it. |
| 144 | + |
| 145 | +1. On the machine to which you downloaded the file, open an administrator command window. |
| 146 | +2. Run the following command to generate the hash for the zipped file |
| 147 | + - ```C:\>CertUtil -HashFile <file_location> [Hashing Algorithm]``` |
| 148 | + - Example: ```C:\>CertUtil -HashFile C:\Users\administrator\Desktop\AzureMigrateInstaller-Server-USGov.zip MD5``` |
| 149 | + |
| 150 | +3. Verify the generated hash values. For the latest appliance version: |
| 151 | + |
| 152 | + **Algorithm** | **Hash value** |
| 153 | + --- | --- |
| 154 | + MD5 | f81c155fc4a1409901caea948713913f |
| 155 | + |
| 156 | + |
| 157 | +### Run the script |
| 158 | + |
| 159 | +Here's what the script does: |
| 160 | + |
| 161 | +- Installs agents and a web application. |
| 162 | +- Installs Windows roles, including Windows Activation Service, IIS, and PowerShell ISE. |
| 163 | +- Downloads and installs an IIS rewritable module. [Learn more](https://www.microsoft.com/download/details.aspx?id=7435). |
| 164 | +- Updates a registry key (HKLM), with persistent settings for Azure Migrate. |
| 165 | +- Creates log and configuration files as follows: |
| 166 | + - **Config Files**: %ProgramData%\Microsoft Azure\Config |
| 167 | + - **Log Files**: %ProgramData%\Microsoft Azure\Logs |
| 168 | + |
| 169 | +To run the script: |
| 170 | + |
| 171 | +1. Extract the zipped file to a folder on the machine that will host the appliance. Make sure you don't run the script on a machine on an existing Azure Migrate appliance. |
| 172 | +2. Launch PowerShell on the machine, with administrator (elevated) privileges. |
| 173 | +3. Change the PowerShell directory to the folder containing the contents extracted from the downloaded zipped file. |
| 174 | +4. Run the script **AzureMigrateInstaller.ps1**, as follows: ``` PS C:\Users\Administrators\Desktop\AzureMigrateInstaller-Server-USGov>AzureMigrateInstaller.ps1 ``` |
| 175 | +5. After the script runs successfully, it launches the appliance web application so that you can set up the appliance. If you encounter any issues, review the script logs at C:\ProgramData\Microsoft Azure\Logs\AzureMigrateScenarioInstaller_<em>Timestamp</em>.log. |
| 176 | + |
| 177 | +### Verify access |
| 178 | + |
| 179 | +Make sure that the appliance can connect to Azure URLs for [government clouds](migrate-appliance.md#government-cloud-urls). |
| 180 | + |
| 181 | +## Next steps |
| 182 | + |
| 183 | +After deploying the appliance, you need to configure it for the first time, and register it with the Azure Migrate project. |
| 184 | + |
| 185 | +- Set up the appliance for [VMware](how-to-set-up-appliance-vmware.md#configure-the-appliance). |
| 186 | +- Set up the appliance for [Hyper-V](how-to-set-up-appliance-hyper-v.md#configure-the-appliance). |
| 187 | +- Set up the appliance for [physical servers](how-to-set-up-appliance-physical.md). |
0 commit comments