@Amarkumar Mishra - FT , thank you for the question.
The error being received seems to be due to deprecated APIs removed in 1.16+ version of Kubernetes. For more details please refer to: Deprecated APIs Removed In 1.16: Here’s What You Need To Know
To fix this, you will have to change apiVersion: apps/v1beta2
to apiVersion: apps/v1
.
The referred yaml file in the doc points to an archived repository: Azure/azure-k8s-metrics-adapter and corresponding issue filed for it is available here: Deploying to k8s 1.16.7 fail
You may copy the content of this yaml file to your local machine, make the api version change and apply. Please let me know if changing the API version as recommended above helps. I am also reaching out to our team to get the Azure doc updated.