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.
Question
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)- A11% (4)
- B3% (1)
- C81% (29)
- D6% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.