Unable to create Machines with error Invalid client secret provided in OpenShift 4 running on Azure

Solution Verified - Updated -

Issue

  • Not able to create new Machines in OpenShift 4 cluster installed in Azure.
  • Errors like the following one are shown in the machine-controller and other components requiring access to Azure:

    Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '[random-id]'
    
  • New Machine is stuck in failed state with below error:

    CreateError: failed to reconcile machine "address.domain-url"s: failed to create nic example-nic for machine example-machine-name unable to create VM network interface: failed to obtain instance type information for VMSize 'Standard_name' from Azure: failed to refresh resource sku cache: could not list resource skus: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://cloud-platform-url: StatusCode=401 -- Original Error: adal: Refresh request failed. Status Code = '401'. Response body: {"error":"invalid_client","error_description":"ID: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'random-id'.\r\nTrace ID: ID\r\nCorrelation ID: Random-ID\nTimestamp: Y-M-H HH:MM:SSZ","error_codes":[7000215],"timestamp":"2Y-M-H HH:MM:SSZ","
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Azure

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