Hi Budi Nugroho
Hey, he error you’re seeing (AADSTS7000215) is basically Azure telling you the client secret your scripts are using is no longer valid. Since you already confirmed the service principal itself is fine, the fix is to generate a new client secret in the Azure AD app registration, then update all your automation scripts to use that fresh secret.
The safest way to handle this globally is to store the new secret in a secure location like Azure Key Vault and have your scripts pull it from there, rather than hardcoding it. That way, you only need to rotate the secret in one place next time it expires, and you won’t have to touch every script manually. If you’re using pipelines (Azure DevOps or GitHub Actions), update the service connection or secret variable there so all jobs pick it up automatically.
Once you’ve replaced the expired secret everywhere, the Arc agent onboarding should start working again without breaking your existing configs. If this answer helps you get things back on track, please hit “accept answer” so we know it solved your issue.