Add Host on Azure Error 400

Hi Rancher community,

I try to add Azure Host using Rancher. In Configuration page Rancher request:

  • SubscriptionID : my subscription ID
  • ClientID : I use Account in my Azure AD (admin on my subscriptionà
  • Client Secret: password of my account

when I try to add host I obtain this error:
Error with pre-create check: “autorest#WithErrorUnlessStatusCode: POST https://login.microsoftonline.com//oauth2/token?api-version=1.0 failed with 400 Bad Request: StatusCode=400”

Look like API error do you have same issue ?

Best regard,

Matth

Hi Matth,

have you fixed the HTTP 400 adding azure host to rancher ?

Any updates on this? I’m also getting this error and I have no idea why

Same here, how to debug it ?