![](https://it-infrastructure.solutions/content/images/2022/05/image-86.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Service principal creation
![](https://it-infrastructure.solutions/content/images/2022/05/image-107.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-108.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-113.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-110.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-111.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-112.png)
Generate the installation script from the Azure portal
![](https://it-infrastructure.solutions/content/images/2022/05/image-115.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-116.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-117.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-118.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-119.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-120.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-121.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-122.png)
![](https://it-infrastructure.solutions/content/images/2022/05/image-123.png)
Agent Installation
![](https://it-infrastructure.solutions/content/images/2022/05/image-124.png)
# Installing
$RemoteComputers= WACGW,.....
ForEach $RemoteComputer in $RemoteComputers)
{
If (Test-WSMan -ComputerName $RemoteComputer)
{
Invoke-Command -ComputerName $RemoteComputer -FilePath c:\temp\OnboardingScript.ps1
}
![](https://it-infrastructure.solutions/content/images/2022/05/image-125.png)
References:
Connect hybrid machines to Azure at scale - Azure Arc
In this article, you learn how to connect machines to Azure using Azure Arc-enabled servers using a service principal.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
How to Run PowerShell Script on Remote Computer?