Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Power BI apis not accessible

hello,

 

before I was accessing the following services ( https://analysis.windows.net/powerbi/api ) . The problem is that the route is no longer working, as if the service was deleted .

 

Any help here please ?!

1 Reply

  • Hi Anonymous ,

     

    The URL you are mentioning is the resourceURL which is used for Autentication

     

    // Create a user password cradentials.
    var credential = new UserPasswordCredential(Username, Password);
    
    // Authenticate using created credentials
    var authenticationContext = new Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext(AuthorityUrl);
    var authenticationResult = await authenticationContext.AcquireTokenAsync(ResourceUrl, ClientId, credential);

     

    For me it's still working.