Hi Zambre,Akash,
To connect Azure Arc using azcmagent connect
non-interactively, you can use a service principal with a secret. Here's an example command:
azcmagent connect --subscription-id "YOUR_SUBSCRIPTION_ID" --resource-group "YOUR_RESOURCE_GROUP" --location "YOUR_REGION" --service-principal-id "YOUR_SERVICE_PRINCIPAL_ID" --service-principal-secret "YOUR_SERVICE_PRINCIPAL_SECRET" --tenant-id "YOUR_TENANT_ID"
Replace the placeholders with your actual subscription ID, resource group, location, service principal ID, service principal secret, and tenant ID[_{{{CITATION{{{_1{azcmagent connect CLI reference - Azure Arc | Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-arc/servers/azcmagent-connect).
For more on this see microsoft documentation [https://learn.microsoft.com/en-us/azure/azure-arc/servers/azcmagent-connect](https://learn.microsoft.com/en-us/azure/azure-arc/servers/azcmagent-connect)