You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to install AzureMonitorAgent, I get following error:
PS C:\Users\rohitrawat> az vm extension set --name AzureMonitorLinuxAgent --publisher Microsoft.Azure.Monitor --ids "/subscriptions/80248fc1-bf75-48f2-b344-23988088df3f/resourceGroups/lisa-On-Demand-test-20240402-110548-746-e0/providers/Microsoft.Compute/virtualMachines/lisa-On-Demand-test-20240402-110548-746-e0-n0" --enable-auto-upgrade true
(VMExtensionHandlerNonTransientError) The handler for VM extension type 'Microsoft.Azure.Monitor.AzureMonitorLinuxAgent' has reported terminal failure for VM extension 'AzureMonitorLinuxAgent' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.3/./shim.sh -install
[stdout]
Python 3.12.0
Importing utils failed with error: No module named 'imp'
Unable to initialize waagent log because of exception name 'waagent' is not defined
Info: Azure Monitoring Agent for Linux started to handle.
Error: Unsupported operating system: azurelinux 3.0
Error: Unsupported operating system: azurelinux 3.0
[stderr]
/var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.3/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
import crypt
'.
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'
Code: VMExtensionHandlerNonTransientError
Message: The handler for VM extension type 'Microsoft.Azure.Monitor.AzureMonitorLinuxAgent' has reported terminal failure for VM extension 'AzureMonitorLinuxAgent' with error message: '[ExtensionOperationError] Non-zero exit code: 51, /var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.3/./shim.sh -install
[stdout]
Python 3.12.0
Importing utils failed with error: No module named 'imp'
Unable to initialize waagent log because of exception name 'waagent' is not defined
Info: Azure Monitoring Agent for Linux started to handle.
Error: Unsupported operating system: azurelinux 3.0
Error: Unsupported operating system: azurelinux 3.0
[stderr]
/var/lib/waagent/Microsoft.Azure.Monitor.AzureMonitorLinuxAgent-1.30.3/./agent.py:38: DeprecationWarning: 'crypt' is deprecated and slated for removal in Python 3.13
import crypt
'.
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'
The OS has Python 3.12 and this seems to be issue with imp module being removed in python 3.12 [link]
I am facing same issue with other extension LinuxDiagnostic
The text was updated successfully, but these errors were encountered:
When I try to install AzureMonitorAgent, I get following error:
The OS has Python 3.12 and this seems to be issue with imp module being removed in python 3.12 [link]
I am facing same issue with other extension LinuxDiagnostic
The text was updated successfully, but these errors were encountered: