nerdexam
Microsoft

AZ-801 · Question #181

You have 300 on-premises servers that run Windows Server. You have an Azure subscription that contains a Log Analytics workspace named Workspace1. You plan to use VM insights in Azure Monitor to monit

The correct answer is C. Create a Microsoft Entra service principal.. To onboard 300 on-premises servers to Azure Arc using an automated template script with least privilege and minimal effort, the first step is to create a Microsoft Entra service principal.

Monitor and troubleshoot Windows Server environments

Question

You have 300 on-premises servers that run Windows Server. You have an Azure subscription that contains a Log Analytics workspace named Workspace1. You plan to use VM insights in Azure Monitor to monitor the on-premises servers. You need to onboard the servers to Azure Arc by using the template script. The solution must meet the following requirements: - Follow the principle of least privilege. - Minimize administrative effort. What should you do first?

Options

  • ACreate a group managed service account (gMSA).
  • BGenerate a Log Analytics key.
  • CCreate a Microsoft Entra service principal.
  • DDownload the Log Analytics workspace ID.

How the community answered

(36 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    81% (29)
  • D
    6% (2)

Why each option

To onboard 300 on-premises servers to Azure Arc using an automated template script with least privilege and minimal effort, the first step is to create a Microsoft Entra service principal.

ACreate a group managed service account (gMSA).

A group managed service account (gMSA) is used for service accounts within Active Directory Domain Services, not as the primary credential for onboarding on-premises servers to Azure Arc via a script.

BGenerate a Log Analytics key.

Generating a Log Analytics key is part of the agent configuration for VM insights, not the initial prerequisite for the Azure Arc template script to gain necessary permissions in Azure.

CCreate a Microsoft Entra service principal.Correct

A Microsoft Entra service principal, granted with specific permissions like the Azure Connected Machine Onboarding role, provides a secure and automated method for the template script to register numerous servers with Azure Arc while adhering to the principle of least privilege. This approach avoids using personal user accounts and streamlines the onboarding process for a large number of machines.

DDownload the Log Analytics workspace ID.

Downloading the Log Analytics workspace ID is required for agent configuration, but it is not the first step to enable the Azure Arc template script to authenticate and perform operations in Azure.

Concept tested: Azure Arc onboarding service principal prerequisites

Source: https://learn.microsoft.com/en-us/azure/azure-arc/servers/prerequisites

Topics

#Azure Arc#Service Principal#Azure Monitor#Least Privilege

Community Discussion

No community discussion yet for this question.

Full AZ-801 Practice