@Diksha Singh Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
Based on the shared information, I have understood that you are using the api version 2021-06-01
to pull the instance Metadata. But as per the current documentation we see that this particular API Version is not supported.
You can refer to this documentation for more information about the list of Supported API Versions of IMDS across different Azure Service like (Compute, Storage).
Feel free to reach back to me if you have any further questions on this.