Azure Arc: expired server certificate; agent disconnected

Gunta Ledina 41 Reputation points
2021-06-01T14:19:24.943+00:00

Hi!
I have a machine that is managed by azcmagent. In Azure portal, I can see that it says:

101452-image.png

I have tried connecting and disconnecting the agent from the machine itself, but it is still disconnected:

101435-image.png

How/where do I renew the certificate? Which certificate is it?

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
527 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Gunta Ledina 41 Reputation points
    2021-06-10T22:21:26.243+00:00

    Fixed this issue by disconnecting/uninstalling azcmagent on the machine. What I missed in the beginning - after disconnecting from the machine, Azure Arc resource has to be deleted from Azure (this doesn't delete the server, just the Azure Arc resource for the server), otherwise trying to connect will fail with "resource already exists in Azure". Once the Azure resource was deleted, we were able to connect the machine again.

    (not sure why the certificate expired in the first place, will keep an eye on it and if it happens again, will investigate deeper)

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.