I use Azure Cost Management connector to retrieve data directly info Power Bi. There is an authentication process which based on personal account generate OAuth token (automatically). Token is valid only 1hour. Am I able to have longer expiration time? I've added new policy but it's only for service principal, not for personal account.
Power Bi Azure Cost Management - oauth token
297 Views Asked by inspiredd At
1
There are 1 best solutions below
Related Questions in OAUTH
- Using html5 localstorage instead of cookies with passport.js
- OAuth integration with QuickBooks using Scribe
- OAuth with Developer tokens
- Oauth in Tyrus WebSocket
- Accessing Picasa Web API using PHP
- how can I access user details through "oauth_token" from twitter api in ionic framework
- Is my JWT refresh plan secure?
- When to refresh token?
- SignalR oAuth on self host
- Bearer token in MVC controller to access Web API
- OAuthorization through app or web api
- Authenticating mobile app login using webservice using oauth connection
- Testing local rails application with OAuth
- Configure the authorization server endpoint
- Azure Active Directory Login: Web App Permissions, User Consent not triggered
Related Questions in POWERBI
- Embedding Microsoft Power BI into Liferay
- PowerBI hierarchy creation without the cloud
- How to create nested tiles in Power View
- BI Designer many to many relationship
- Microsoft Power BI Designer data model to Excel or PowerPivot
- How to link table row content to source in Power View
- Stream Analytic to PowerBI complains about PowerBIOutputAdapterTransientError
- How can I connect datasets from machine learning to SQL database in Azure?
- drilling from powerbi to ssrs
- How do you connect an Azure Table Storage with Power BI through Stream Analytics?
- Power BI Line Chart Getting Confused
- Handle blank value in Complex expression IF condition in PowerBi
- Power BI running total measure not working when no data for dimension
- Periods to Date Calculation MDX
- Loop on M query
Related Questions in AZURE-ACTIVE-DIRECTORY
- MultipleTokensMatched exception when using default TokenCache
- How can I share Azure Active Directory authentication between server side and client script?
- Azure AD Change Password with patch call
- Azure Active Directory Login: Web App Permissions, User Consent not triggered
- ADALJS Error description:AADSTS65001: No permission to access user information is configured for 'clientId' application, or it is expired or revoked
- app is re-initializing the first time ADAL "protected" URL is accessed via $http
- Validate access token for WEB API protected by Azure AD
- Azure AD Graph API: Is it possible to enumerate all groups associated with an application role?
- Is is possible to use Azure AD as a SAML compliant Identity Provider?
- Microsoft Graph API Accessing basic info of a user that is outside tenancy
- RoundCube OAuth with Azure Active Directory
- Deploy Azure AD WebAPI to IIS, with Windows Authentication enabled, skips Azure AD Authentication
- How to change Is Multiple Resource Refresh Token to true in Azure AD authentication?
- Azure, login to separate accounts with one email
- How to setup nginx to authenticate users through Azure AD?
Related Questions in AZURE-BILLING
- Will Timer/blob triggers in azure always use host resources even though it's not executing?
- Azure Data Factory Pipeline Consumption Details
- Integration of AWS billing invoices in Azure cost management
- What are billed when you calling Ms Graph from Azure function?
- Power Bi Azure Cost Management - oauth token
- Set different payment method for Azure pay-as-you-go subscriptions
- how to create reports in Cost Management for Azure and send them in email
- Azure AD B2C MFA billing
- Azure Service Principle Creation failing while configuring Harness Cost management report
- Disabled Azure Function Billing
- When I tried to export power apps table data into azure storage using azure synapse link will it costs for write operation in azure?
- How to deploy azure bot using bot frame work composer?
- Azure cost analysis and invoices - exchange rates
- Where can I see the actual cost for Azure Cosmos backups?
- azure functions free tier within 12 month trial
Related Questions in AZURE-OAUTH
- OAuth Access Token Exchange Protocol
- Azure registered app error: The user or administrator has not consented to use the application with ID
- Power Bi Azure Cost Management - oauth token
- Protecting SPA and API using Azure AD and app roles
- For IMAP.AccessAsUser.All Scope ADSTS65001: The user or administrator has not consented to use the application
- Microsoft/Azure OAuth failing, my organization lacks a service principal
- OAuth authentication with EWS Managed API applications for a specific mailbox
- How to make all refresh tokens invalid for getting access token to make it more secure
- Getting Azure AD Enterprise Application user group in jwt token using MSAL in C#
- Can I set two different Redirect URL (Reply URL) inside a SPA application inside Azure AD
- Springboot reactive webflux with oauth2 client credentials flow for azure active directory
- Decoding azure access token obtained by client credential flow
- MS Graph API Granted Scopes not reflecting in the Access Token
- MSAL - Network request failed. Please check network trace to determine root cause
- steps to create PowerBI API token
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Approach 1 By default, the Expiration token is available for 1 hour or 60-75 minutes max depending on the reliability of service, and you cannot increase the access token session lifetime for User Accounts, As Access token lifetime policies can only be applied to Service principal and not User Account, Also It’s a not a recommended practice to increase the User Session to avoid malicious activity. Please refer this document: https://learn.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifetimes#create-a-policy-for-web-sign-in “This can be set for all apps in your organization or for a specific service principal. They can also be set for multi-organizations (multi-tenant application).”
Approach 2 Instead of increasing the access token expiry, you can refresh the access token before its expiration time.
Method 1: You can set one custom function to create a refresh token and get the access token in response for your user accounts like the answer provided in this Power BI forum - [https://community.powerbi.com/t5/Power-Query/Channel-Advisor-API-Connection-with-auth-key-creation/td-p/2208091]
nd then use the response token to access Azure billing data in Power BI.
Method 2: The Access tokens are either Azure AD token for organizational users or Embed token that can be sent to your customers accessing your data. As you are using Azure AD token, you can refresh the Token by below methods:
Directly via
setAccessTokenAPIawait report.setAccessToken(newAccessToken)Manually via
getNewUserAccessToken(). This Function will call the application at backend and will generate and refresh the access token.accessTokenProviderfunction parameter in the embed configuration. Once the token is close to expiry it embeds config calls theaccesstokenProviderand gets the new token.