Disk provisioning in Azure not working with OpenShift Container Platform 4

Solution Verified - Updated -

Issue

  • Getting an AuthorizationFailed error with a non existing Azure clientId when creating a PVC using a storage class of provisioner type provisioner: kubernetes.io/azure-disk.
Failed to provision volume with StorageClass "foostorageclass": compute.DisksClient#CreateOrUpdate: Failure sending request: StatusCode=403 -- Original Error: Code="AuthorizationFailed" Message="The client '30bbac36-5b2c-4753-a1f3-68ed644aa456' with object id '30bbac36-5b2c-4753-a1f3-68ed644aa456' does not have authorization to perform action 'Microsoft.Compute/disks/write' over scope '/subscriptions/4706a744-e6e8-402d-bbcc-f30842173c2f/resourceGroups/example-com-cluster/providers/Microsoft.Compute/disks/maint7-dynamic-pvc-47cf18d8-3db6-4812-a82d-99bafdda5dce' or the scope is invalid. If access was recently granted, please refresh your credentials."

Environment

  • Red Hat OpenShift Container Platform (RHCOP)

    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content