This is already included in >= 4.5 https://github.com/openshift/origin/blob/release-4.5/vendor/k8s.io/kubernetes/staging/src/k8s.io/legacy-cloud-providers/azure/azure_standard.go#L492-L494 Moving to MODIFIED for QA to validate.
Verified clusterversion: 4.5.0-0.nightly-2020-07-28-212824 steps: 1. Create a cluster in Azure Canada Central. 2. Check "oc get configmap cloud-provider-config -n openshift-config" `UseInstanceMetadata=True` is set. 3. Create PVC using dynamic storage class. $ oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-6565aa5b-fa68-41ba-a97d-ef0fa7a679a0 1Gi RWO Delete Bound openshift-machine-api/pvc1 managed-premium 3h30m $ oc get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE pvc1 Bound pvc-6565aa5b-fa68-41ba-a97d-ef0fa7a679a0 1Gi RWO managed-premium 3h45m $ oc get po task-pv-pod 1/1 Running 0 3h31m
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.5.5 bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:3188