Hello Tirath Singh,
This could be because the device is not fully enrolled into Intune. You can confirm the same from Intune portal, under "Devices-All Devices", for the device in question - "Managed by" should be Intune.
If it is not enrolled, you have to configure Automatic enrollment to make sure new Azure AD joined VMs automatically get enrolled. And enroll the existing ones.
Refer to: Windows device enrollment guide for Microsoft Intune | Microsoft Learn
MDM enrollment of Windows devices | Microsoft Learn
Hope this helps!
If you found the information above helpful, please Accept the answer. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.