Forum Discussion
How to access the PowerBI report using Azure Automation Powershell Runbook
Hi,
My requirement is to access a PowerBI Report using the Azure Automation Powershell Runbook. Have tried couple of ways to acheive it, but was not successful and have provided them below. Can you please suggest.
- Created App registration for PowerBI in Azure Active directory.
- Have used the below code in Azure Powershell runbook to invoke the REST API of the PowerBI.
Code:
$connection = Get-AutomationConnection -Name 'AzureRunAsConnection'
Connect-AzAccount -ServicePrincipal -Tenant $connection.TenantID -ApplicationId $connection.ApplicationID -CertificateThumbprint $connection.CertificateThumbprint
1 Reply
- v-yalanwu-msftCommunity Support
Hi, Anonymous ;
You could refer to those blogs:
https://alexholmeset.blog/2017/10/22/integrating-powershell-with-powerbi-automating-in-azure-part-3/
https://blog.gbrueckl.at/2017/08/refresh-powerbi-datasets-powershell-azure-runbooks/
https://debbiesmspowerbiazureblog.home.blog/tag/runbook/
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.