Exercise - Assess an on-premises ASP.NET web application
Now that you've deployed the virtual machine that contains your web application to the sandbox environment, you'll use the Azure App Service Migration Assistant to perform an assessment and migration to Azure App Service.
This module assumes you've successfully completed the steps in unit 2 and have activated the sandbox and run the first setup script. If you haven't, go back and complete the unit titled "Exercise - Set up the environment" before continuing.
In this exercise, you'll complete the setup steps, sign in to your Azure account, and work in a sandbox environment provisioned for you. You'll remotely connect to the VM that was set up for this exercise, and perform an assessment by using the Azure App Service Migration Assistant already installed on the VM.
Copy and paste the following script into Azure Cloud Shell on the right, and then run the script by pressing Enter.
This script will wait for the previous script (from the second unit) to finish, so you might see the following message:
"Waiting for provisioning to complete ..."
When that script is finished, you should see the credentials for the VM that was provisioned in the sandbox.
Go to the Azure portal on a new browser tab. Sign in with the same username and password that you used to sign in to activate the sandbox.
In the upper-right corner, under your account username, you should see that you're logged in to the directory Microsoft Learn Sandbox.
Select the Virtual machines icon, after selecting More services. You should see a single VM named webvm listed.
Select the webvm item in the list. The details for the VM appear.
On the upper details toolbar, select Connect, and then select RDP from the dropdown list.
On the Connect pane, select Download RDP File.
The file webvm.rdp is downloaded to your local computer.
Open the webvm.rdp file. You'll be prompted for the VM's security credentials in the Windows Security dialog box. Select Use a different account. Copy and paste the username and password from step 1 into the dialog box, and select OK.
When the Remote Desktop Connection dialog box appears, and warns you about the remote computer's security certificate, select Yes. The remote desktop will open for the VM.
On the remote desktop, open Internet Explorer, and go to
http://localhost. Confirm that the Parts Unlimited website is successfully running. This site is hosted in IIS in the virtual machine, and connects to an Azure SQL database. Over the course of this exercise, you'll perform a migration assessment on this site and then migrate it to App Service.
On the remote VM's desktop, double-click the icon to open the Azure App Service Migration Assistant. The user interface then lists the Migration Assistant's steps with the first step highlighted, Choose a Site. In the main area, the Migration Assistant informs that it found one site to assess.
Select the Default Web Site option.
Then, select Next at the bottom of the dialog box. This will begin the assessment of the site.
After a moment, the assessment report step should finish. You should see that all 13 assessments were successful with no warnings or errors.
You might take a moment to expand the chevron icon next to the label Success (13) to see the types of assessments that the Migration Assistant performed. We covered some of these in an earlier unit.
You have successfully completed the exercise setup and the assessment of the website. Next, you'll learn about migration.