ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 458 - AZ-104 discussion

Report
Export

HOTSPOT

You have an Azure subscription. The subscription contains a virtual machine that runs Windows 10.

You need to join the virtual machine to an Active Directory domain.

How should you complete the Azure Resource Manager (ARM) template? To answer, select the appropriate options in the answer area.

NOTE: Bach correct selection is worth one point.


Question 458
Correct answer: Question 458

Explanation:

Azure Resource Manager template overview

Resource Manager templates let you define Azure infrastructure in code. The required resources, network connections, or configuration of VMs can all be defined in a template. These templates create consistent, reproducible deployments each time, and can be versioned as you make changes.

For more information, see Azure Resource Manager templates overview.

Each resource is defined in a template using JavaScript Object Notation (JSON). The following JSON example uses the Microsoft.Compute/virtualMachines/extensions resource type to install the Active

Directory domain join extension. Parameters are used that you specify at deployment time. When the extension is deployed, the VM is joined to the specified managed domain.

JSON

{

"apiVersion": "2015-06-15",

"type": "Microsoft.Compute/virtualMachines/extensions",

"name": "[concat(parameters('dnsLabelPrefix'),'/joindomain')]",

"location": "[parameters('location')]",

"dependsOn": [

"[concat('Microsoft.Compute/virtualMachines/', parameters('dnsLabelPrefix'))]"

],

"properties": {

"publisher": "Microsoft.Compute",

"type": "JsonADDomainExtension",

"typeHandlerVersion": "1.3",

"autoUpgradeMinorVersion": true,

"settings": {

"Name": "[parameters('domainToJoin')]",

"OUPath": "[parameters('ouPath')]",

"User": "[concat(parameters('domainToJoin'), '\\', parameters('domainUsername'))]",

"Restart": "true",

"Options": "[parameters('domainJoinOptions')]"

},

"protectedSettings": {

"Password": "[parameters('domainPassword')]"

}

}

}

This VM extension can be deployed even if you don't create a VM in the same template. The examples in this article show both of the following approaches:

Create a Windows Server VM and join to a managed domain

Join an existing Windows Server VM to a managed domain

asked 26/09/2024
wendy brouwer
38 questions
User
0 comments
Sorted by

Leave a comment first