1
Vote

TypeProvider.OData.Sample0 : issue with azure marketplace authentication

description

Following, I think, the instructions in the readme.html of the March 2012 download, I get an authorization exception on the following query. I am unfamiliar with ADM security model. ADM_USER_ID is clearly indicated as the user's email; ADM_ACCOUNT_ID is less clear. Is it the "Customer ID", or the "Primary Account Key". Instructions could be clearer. Probably self-explanatory for most seasoned ADM users, but not obvious to others what to do to get the sample working.
 
query {
    for n in travelInfo.BritishEmbassiesAndHighCommissions do 
    select n
    take 2
}|> Seq.iter (fun n -> printfn "%s\n" n.Address)
 
using "Customer ID":
InnerException: System.Data.Services.Client.DataServiceClientException
   HResult=-2146233079
   Message=The authorization type you provided is not supported.  Only Basic and OAuth are supported
 
using "Primary Account Key":
<h2>403 - Forbidden: Access is denied.</h2> <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>

comments

jperraud wrote Aug 30, 2012 at 12:47 AM

For information, after a bit of trial and error:
  • One needs to use his/her "Primary Account Key" for the ADM_ACCOUNT_ID
  • You need to subscribe to the "UK Foreign and Commonwealth Office Travel Advisory Service" data.
And then the sample works.

wrote Feb 21, 2013 at 11:36 PM