Hi,
No such option is available. Only restrictions are:
- Restrict the permissions of the identity to those that are needed for the task.
- Restrict the access to the VM.
- One final option that might be close to what you want to achieve is to restrict the access to IMDS to certain processes via Firewall rules but anyone with admin access on the machine will still be able to overcome that by disabling the firewall rules.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.