-
Ensure that you are logged in to your Windows 10 Virtual Machine using the following credentials:
-
Username: Admin
-
Password: Pa55w.rd
-
-
Observe the Taskbar located at the bottom of your Windows 10 desktop. The Taskbar contains the icons for the common applications we will use in the labs:
-
Microsoft Edge
-
File Explorer
-
Bash on Ubuntu on Windows
-
Windows PowerShell
-
Microsoft Word 2016
Note: You can also find shortcuts to these applications on the Desktop and in the Start Menu.
-
-
On the Taskbar, click the Microsoft Edge icon.
-
In the open browser window, navigate to the Azure Portal (https://portal.azure.com).
-
Enter the email address of your Microsoft account.
-
Click the Next button.
-
Enter the password for your Microsoft account.
-
Click the Sign in button.
-
On the left side of the portal, click the Create a resource link.
-
At the top of the New blade, locate the Search the Marketplace field.
-
Enter the text Template Deployment into the search field and press Enter.
-
In the Everything search results blade, select the Template deployment result.
-
In the Template deployment blade, click the Create button.
-
In the Custom deployment blade, click the Build your own template in the editor link.
-
In the Edit template blade, click the Load file link.
-
In the Open file dialog that appears, navigate to the Allfiles (F):\Mod12\Labfiles\Starter folder.
-
Select the linux.json file.
-
Click the Open button.
-
Back in the Edit template blade, click the Save button to persist the template.
-
Back in the Custom deployment blade, perform the following actions:
a. Leave the Subscription field set to its default value.
a. In the Resource group section, select the Create new option.
a. In the Resource group section, enter the value MOD12AUTO into the empty field.
a. In the Location field, select the East US location.
a. In the Terms and Conditions section, select the I agree to the terms and conditions stated above checkbox.
a. Click the Purchase button.
-
Wait for the creation task to complete before moving on with this lab.
-
At the top of the New blade, locate the Search the Marketplace field.
-
Enter the text Automation into the search field and press Enter.
-
In the Everything search results blade, select the Automation result.
-
In the Automation blade, click the Create button.
-
In the Add Automation Account blade, perform the following actions:
a. In the Name field, enter the value LinuxAutomation.
a. Leave the Subscription field set to its default value.
a. In the Resource group section, select the Use existing option.
a. In the Resource group section, locate the dropdown list and select the MOD12AUTO option.
a. In the Location field, select the East US 2 location.
a. In the Create Azure Run As account section, select the No option.
-
Wait for the creation task to complete before moving on with this lab.
Review: In this exercise, you created a simple Linux VM using an ARM template and an Azure Automation account.
-
On the left side of the portal, click the Resource groups link.
-
In the Resource groups blade, locate and select the MOD12AUTO Resource Group link.
-
In the MOD12AUTO blade, select the Azure Automation account you most recently created.
-
In the Azure Automation blade, locate the Shared Resources section on the left side of the blade and select the Modules gallery link.
-
In the Modules gallery pane, perform the following actions:
a. In the Search field, enter the text nx and press Enter.
a. In the search results, select the nx module in the search results.
-
In the nx blade that appears, click the Import button at the top of the blade.
-
In the Import blade that appears, click the OK button.
-
Wait for the import process to finish before moving on with the lab. You will see a message update in the Module blade indicating that the module was successfully imported.
Note: This process can take up to ten minutes.
-
Return to the Azure Automation blade.
Note: You may need to scroll left in your browser to find this blade.
-
Back in the Azure Automation blade, locate the Configuration Management section on the left side of the blade and select the DSC configurations link.
-
In the DSC configurations pane, click the Add a configuration button at the top of the pane.
-
In the Import blade, perform the following actions:
a. In the Configuration file field, click the blue folder button to the right of the field.
a. In the Open file dialog that appears, navigate to the Allfiles (F):\Mod12\Labfiles\Starter folder.
a. Select the lampserver.ps1 file.
a. Click the Open button to close the dialog and return to the Import blade.
a. In the Name field, enter the value lampserver.
a. In the Description field, enter the value LAMP Server configuration using PHP and MySQL.
a. Click the OK button.
-
Back in the DSC configurations pane, select the newly created lampserver item in the list of configurations.
-
In the Configuration blade, click the Compile button at the top of the blade. In the confirmation dialog, click Yes to proceed with compiling the configuration.
-
Wait for the compilation task to finish. You will see the status of the latest compilation task in the Compilation jobs section of the Configuration blade.
Note: You may need to close and re-open the blade to see the latest compilation status. This blade does not refresh automatically.
-
Return to the Azure Automation blade.
Note: You may need to scroll left in your browser to find this blade.
-
Back in the Azure Automation blade, locate the Configuration Management section on the left side of the blade and select the DSC nodes link.
-
In the DSC nodes blade, click the Add Azure VM button at the top of the blade.
-
In the Virtual Machines blade, select the single virtual machine that was created in the MOD12AUTO Resource Group.
-
In the Virtual machine blade, click the Connect button at the top of the blade.
-
In the Registration blade, perform the following actions:
-
In the Node configuration name list, select the lampserver.localhost option.
-
Leave all other options set to their default values.
-
Click the OK button.
-
-
Wait for the connection process to complete before moving on with this lab.
-
Return to the Azure Automation blade.
Note: You may need to scroll left in your browser to find this blade.
-
Back in the Azure Automation blade, locate the Configuration Management section on the left side of the blade and select the DSC nodes link.
-
In the DSC nodes blade, validate that your Virtual Machine has a status of Compliant.
Review: In this exercise, you created a PowerShell DSC configuration and applied the configuration to a Linux virtual machine.
-
At the top of the portal, click the Cloud Shell icon to open a new shell instance.
-
In the Cloud Shell command prompt at the bottom of the portal, type in the following command and press Enter to list all resource groups in the subscription:
az group list
-
Type in the following command and press Enter to delete the MOD12AUTO Resource Group:
az group delete --name MOD12AUTO --no-wait --yes
-
Close the Cloud Shell prompt at the bottom of the portal.
- Close the currently running Microsoft Edge application.
Review: In this exercise, you "cleaned up your subscription" by removing the Resource Groups used in this lab.