Azure - The HTTP request was forbidden with client authentication scheme 'Anonymous'.

Document ID : KB000034947
Last Modified Date : 06/03/2018
Show Technical Document Details
Introduction:

Symptoms

 

When testing subscription in the azure probe we get the following error:
The probe cannot find a subscription with this id. Please verify the id you entered on the Windows Azure portal http://windows.azure.com

Error in azure probe logs -The HTTP request was forbidden with client authentication scheme 'Anonymous'.






 

Solution

 

Ensure you have followed the procedure mentioned in the configuration doc to generate the certificate.

Service Management API Certificate
The Azure probe uses the Windows Azure Service Management API to perform some of its duties. This API is secured using an X509 certificate. Before the probe can function, the developer must:
1 Create or acquire an X509 certificate with private key. Self-signed certificates will work.
2 Upload the certificate (without private key) to the Azure developer portal and associate it with the subscription that the probe will be monitoring. (Do this for each subscription if necessary).
3 Install the certificate (with private key) into the Windows certificate store on the computer that will run the probe. The certificate should be installed in the Local Computer/Personal/Certificates store.

Such problems are mostly related with certificate missing private key in the machine which is launching the commands

Additional links for reference

http://blogs.msdn.com/b/avkashchauhan/archive/2011/06/13/what-to-do-when-windows-azure-powershell-cmdlet-returns-quot-the-http-request-was-forbidden-with-client-authentication-scheme-anonymous-quot-error-message.aspx

http://msdn.microsoft.com/en-us/library/azure/gg551722.aspx

 

Instructions:
Please Update This Required Field