DRAG DROP - You need to deploy Internet Information Services (IIS) to an Azure virtual machine that runs Windows Server 2019. How should you complete the Desire...


Microsoft AZ-400 Exam

Questions Number: 480 out of 535 Questions
89.72%

Question 480
DRAG DROP -
You need to deploy Internet Information Services (IIS) to an Azure virtual machine that runs Windows Server 2019.
How should you complete the Desired State Configuration (DSC) configuration script? To answer, drag the appropriate values to the correct locations. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:
AZ-400_480Q.png related to the Microsoft AZ-400 Exam



Box 1: Configuration -
Configuration Example:
Configuration Sample -
{
Node localhost, server02 -
{
Box 2: WindowsFeature -
Example:
WindowsFeature RoleExample -
{
Ensure = "Present"
# Alternatively, to ensure the role is uninstalled, set Ensure to "Absent"
Name = "Web-Server" # Use the Name property from Get-WindowsFeature
}
The WindowsFeature resource in Windows PowerShell Desired State Configuration (DSC) provides a mechanism to ensure that roles and features are added or removed on a target node.
Reference:
https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/windowsfeatureresource
https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/apply-get-test





Previous Questions Next Questions