Agent Stuck in Transitioning State Due to Key Mismatch Between File System and Registry
- Dominant language
- No language data
- Stars
- 1
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm not sure if this is the right place to raise this question - if not, I’d appreciate it if you could point me to the appropriate channel.
We’ve encountered an issue where the Azure Monitor Windows Agent remains in the `Transitioning` state. Upon investigation, we found a mismatch between the agent’s key file and the corresponding registry key:
- **Agent**: Azure Monitor Windows Agent
- **Version**: 1.34.0.0
- **Automatic Upgrade Status**: Enabled
- **Agent Key File**: Not present
- C:\WindowsAzure\Resources\AMADataStore.\\\.persistencekey
- **Registry Key**: Exists
- HKLM:\SOFTWARE\Microsoft\AzureMonitorAgent\Secrets\PersistenceKeyCreated
**Resolution**:
Deleting the `PersistenceKeyCreated` registry value resolves the issue. After doing so, the agent transitions from `Transitioning` to `Provisioning succeeded` and resumes normal operation.
We’re trying to understand why this mismatch occurs. It has affected a few machines in our environment, and we’d greatly appreciate any insights or guidance on how to prevent this from happening in the future.
Thank you!
Best regards,
-Tung
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.