Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ed_Canney
Regular Visitor

Time Out Embedding PowerBI on Sway

Hello, I am embbeding seven PowerBI Reports on Office 365 Sway story. I am using the auto refresh Sway feature since the Sway story is published on different TV Screens to be used all day as an operations control center. The issue is after about 1 hour after running the Sway Story, in the embedded PowerBI report area appears a message to "Sign in". We solve the issue by click on it, and it continues working. But since the usage is on TV Screen, we need to solve the issue.

 

The Sway store is running on a web browser.

 

Thanks for help.

 

Best Regards,

 

Edward Canney

1 ACCEPTED SOLUTION
Ed_Canney
Regular Visitor

I can tell you the issue has been solved by increasing the Azure Active Directory Lifetime Token since the default is 1 hour.

 

---- you create the policy :: here is for 24 hours token lifetime -----

$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"23:59:59","MaxAgeSessionSingleFactor":"23:59:59"}}') -DisplayName "increasepowerbitokenltv" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"

 

---- assign the policy to the powerbi service ----

 

$sp = Get-AzureADServicePrincipal -Filter "DisplayName eq 'Power BI Service'"

 

--- query to know the id policy ------

 

Get-AzureADPolicy -Id $policy.Id

 

--- link the policy to the service ----

 

Add-AzureADServicePrincipalPolicy -Id $sp.ObjectId -RefObjectId $policy.Id

 

 

more info 

https://docs.microsoft.com/es-es/azure/active-directory/develop/active-directory-configurable-token-...

 

Thanks to Microsoft Premier Support Team.

 

Ed 

 

View solution in original post

4 REPLIES 4
Ed_Canney
Regular Visitor

I can tell you the issue has been solved by increasing the Azure Active Directory Lifetime Token since the default is 1 hour.

 

---- you create the policy :: here is for 24 hours token lifetime -----

$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"23:59:59","MaxAgeSessionSingleFactor":"23:59:59"}}') -DisplayName "increasepowerbitokenltv" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"

 

---- assign the policy to the powerbi service ----

 

$sp = Get-AzureADServicePrincipal -Filter "DisplayName eq 'Power BI Service'"

 

--- query to know the id policy ------

 

Get-AzureADPolicy -Id $policy.Id

 

--- link the policy to the service ----

 

Add-AzureADServicePrincipalPolicy -Id $sp.ObjectId -RefObjectId $policy.Id

 

 

more info 

https://docs.microsoft.com/es-es/azure/active-directory/develop/active-directory-configurable-token-...

 

Thanks to Microsoft Premier Support Team.

 

Ed 

 

v-lili6-msft
Community Support
Community Support

hi, @Ed_Canney 

It seems like sway support iframe code, you can try to use publish to web feature to generate iframe code and paste to sway.

Publish to web from Power BI

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi v-lili6-msft,

 

thanks for your message.

 

Actually we are using secure published to web feature from powerbi to generate iframe code which is embedded into Sway.

 

 

Using Fiddler, we got this log.

 

[Fiddler] The connection to '10.0.0.39' failed.

Error: TimedOut (0x274c).

System.Net.Sockets.SocketException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors