Your company has an on-premises virtual machine that runs Windows Server. It has the OS patch level and DBMS binaries that your SAP team requires. No SAP system is installed on it.
Your SAP team has a database backup that must become the database content of a new SAP system in Azure. The DBMS release in use does not support restoring a backup directly from Azure storage.
You need to:
- Build a custom image from the on-premises virtual machine that can be reused to deploy several Azure virtual machines, each with its own Windows SID and hostname.
- Set up the SAP system's database content on the first deployed virtual machine from the database backup by using SAP Software Provisioning Manager.
Which actions should you perform, in order, to deploy the first Azure virtual machine and set up its SAP database content?
You didn't answer this one.
A Windows VM used as a reusable image must have its Windows SID and hostname generalized on-premises with sysprep before its VHD is uploaded and turned into a custom image. Only then can Azure VMs be deployed from that image. Because the DBMS cannot restore directly from Azure storage, the database content is set up by running SWPM to install a new SAP system, which restores the backup from a disk attached to the VM, so the disk must be attached after deployment and before SWPM runs. System Rename only applies when an SAP system was already installed in the source VM, and waagent -deprovision is the Linux tool.
- Step 1: Generalize the on-premises Windows virtual machine by running sysprep. Windows settings such as the Windows SID and hostname must be generalized on the on-premises VM, so this happens before the disk is taken to Azure; nothing else in the procedure can precede it.
- Step 2: Upload the generalized VHD to Azure. The reusable Windows image must be built from a generalized VHD; uploading before sysprep would put a disk in Azure that keeps the original SID and hostname, breaking the requirement.
- Step 3: Create a custom image from the uploaded VHD. The image is built from the uploaded VHD, so the VHD must already be in Azure.
- Step 4: Deploy an Azure virtual machine from the custom image. The VM can only be created from the custom image once that image exists.
- Step 5: Attach a disk that contains the database backup to the deployed virtual machine. This step attaches the backup disk to the deployed VM so SAP Software Provisioning Manager can access it.
- Step 6: Run SAP Software Provisioning Manager on the virtual machine to install a new SAP system, restoring the database backup from the attached disk. SWPM restores the backup from a disk attached to the VM, so the disk holding the backup must be attached first.
- Not needed: Generalize the on-premises virtual machine by running waagent -deprovision. waagent -deprovision is the generalization tool the source gives for Linux images; this virtual machine runs Windows Server, for which the source names sysprep.
- Not needed: Restore the database backup directly from Azure storage into the DBMS on the deployed virtual machine. Direct restore from Azure storage is only an option if the DBMS supports it, and the scenario states that this DBMS release does not; it also bypasses the required use of SAP Software Provisioning Manager.
- Not needed: Run the System Rename procedure of SAP Software Provisioning Manager on the deployed virtual machine. System Rename adapts the settings of an SAP system that was already installed on the source VM; no SAP system is installed here, so a new SAP system must be installed instead.