nerdexam
Microsoft

AZ-800 · Question #162

Case Study 3 - ADatum Corporation Overview Company Information ADatum Corporation is a manufacturing company that has a main office in Seattle and two branch offices in Los Angeles and Montreal…

The correct answer is C. Set-AzVMExtension. The Set-AzVMExtension cmdlet is used to modify, update, or apply a specific extension to an Azure virtual machine, enabling additional functionality or services.

Manage Windows Servers and workloads in a hybrid environment

Question

Case Study 3 - ADatum Corporation Overview Company Information ADatum Corporation is a manufacturing company that has a main office in Seattle and two branch offices in Los Angeles and Montreal. Fabrikam Partnership ADatum recently partnered with 2 company named Fabrikam, Inc. Fabrikam is a manufacturing company that has a main office in Boston and a branch office in Orlando. Both companies intend to collaborate on several joint projects. Existing Environment ADatum AD DS Environment The on-premises network of ADatum contains an Active Directory Domain Services (AD DS) forest named adatum.com. The forest contains two domains named adatum.com and east.adatum.com and the domain controllers shown in the following table. Fabrikam AD DS Environment The on-premises network of Fabrikam contains an AD DS forest named fabrikam.com. The forest contains two domains named fabrikam.com and south.fabrikam.com. The fabrikam.com domain contains an organizational unit (OU) named Marketing. Server Infrastructure The adatum.com domain contains the servers shown in the following table. HyperV1 contains the virtual machines shown in the following table. All the virtual machines on HyperV1 have only the default management tools installed. SSPace1 contains the Storage Spaces virtual disks shown in the following table. Azure Resources ADatum has an Azure subscription that contains an Azure AD tenant. Azure AD Connect is configured to sync the adatum.com forest with Azure AD. The subscription contains the virtual networks shown in the following table. The subscription contains the Azure Private DNS zones shown in the following table. The subscription contains the virtual machines shown in the following table. All the servers are in a workgroup. The subscription contains a storage account named storage1 that has a file share named share1. Requirements Planned Changes ADatum plans to implement the following changes:

  • Sync Data1 to share1.
  • Configure an Azure runbook named Task1.
  • Enable Azure AD users to sign in to Server1.
  • Create an Azure DNS Private Resolver that has the following configurations:
  • Name: Private1
  • Region: West US
  • Virtual network: VNet1
  • Inbound endpoint: SubnetB
  • Enable users in the adatum.com domain to access the resources in the south.fabrikam.com

domain. Technical Requirements ADatum identifies the following technical requirements:

  • The data on SSPace1 must be available always.
  • DC2 must become the schema master if DC1 fails.
  • VM3 must be configured to enable per-folder quotas.
  • Trusts must allow access to only the required resources.
  • The users in the Marketing OU must have access to storage1.
  • Azure Automanage must be used on all supported Azure virtual machines.
  • A direct SSH session must be used to manage all the supported virtual machines on HyperV1.

You need to implement the planned changes for Azure AD users to sign in to Server1. Which PowerShell cmdlet should you run?

Options

  • ANew-ADComputer
  • BSet-AzVM
  • CSet-AzVMExtension
  • DAdd-ADComputerServiceAccount

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    79% (30)
  • D
    13% (5)

Why each option

The Set-AzVMExtension cmdlet is used to modify, update, or apply a specific extension to an Azure virtual machine, enabling additional functionality or services.

ANew-ADComputer

New-ADComputer is an Active Directory PowerShell cmdlet used to create a new computer object in an on-premises AD domain, unrelated to managing Azure VMs or extensions.

BSet-AzVM

Set-AzVM is used to update the properties of an Azure virtual machine itself (e.g., size, OS disk, network interfaces), but not specifically for managing extensions.

CSet-AzVMExtensionCorrect

The Set-AzVMExtension cmdlet is used to add, update, or modify extensions on an Azure virtual machine. Extensions are small applications that provide post-deployment configuration and automation tasks on Azure VMs, such as installing antivirus software, running custom scripts, or deploying monitoring agents, which is often a requirement in complex cloud environments.

DAdd-ADComputerServiceAccount

Add-ADComputerServiceAccount is an Active Directory PowerShell cmdlet used to associate a Group Managed Service Account (gMSA) with a computer account, which is not related to Azure VM extensions.

Concept tested: Azure VM extensions management with PowerShell

Source: https://learn.microsoft.com/en-us/powershell/module/az.compute/set-azvmextension

Topics

#Azure Virtual Machines#Azure AD integration#PowerShell#VM Extensions

Community Discussion

No community discussion yet for this question.

Full AZ-800 Practice