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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to set an alert on powerbi service ,if a visual is breakdown on report

Hi Supprot Team,

How to setup alerts to users when a visual is breakdown on the report(powerbi service workspace)

  •  we are using single source for the report which is SSAS Tabular(Live connection).
  •  is there any way to setup the alerts in powerbi for this scenerio.

Thanks.

 

1 ACCEPTED SOLUTION
hackcrr
Super User
Super User

Hi, @Anonymous 

Use the Power BI REST API to query the status of reports and datasets. You can write a script to periodically check the status of visual objects. Integrate with monitoring tools such as Azure Monitor or third-party services such as Datadog or New Relic to track the running status of Power BI reports.
The following is a rough example of a script:

$clientId = "your-client-id"
$clientSecret = "your-client-secret"
$tenantId = "your-tenant-id"
$workspaceId = "your-workspace-id"
$reportId = "your-report-id"

# Get OAuth token
$body = @{
    grant_type    = "client_credentials"
    client_id     = $clientId
    client_secret = $clientSecret
    resource      = "https://analysis.windows.net/powerbi/api"
}
$response = Invoke-RestMethod -Method Post -Uri "https://login.microsoftonline.com/$tenantId/oauth2/token" -ContentType "application/x-www-form-urlencoded" -Body $body
$token = $response.access_token

# Check report status
$headers = @{
    Authorization = "Bearer $token"
}
$reportStatus = Invoke-RestMethod -Method Get -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/reports/$reportId" -Headers $headers

# Check if the report is accessible
if ($reportStatus -eq $null) {
    # Send alert (email, SMS, etc.)
    Write-Output "Report is not accessible"
} else {
    Write-Output "Report is accessible"
}

Also, you might consider setting up an alert in the dashboard in Power BI Service. Send alerts when your metrics meet the alert criteria.

 

If this post helps, then please consider Accept it as the solution and kudos to this post to help the other members find it more quickly

 

View solution in original post

1 REPLY 1
hackcrr
Super User
Super User

Hi, @Anonymous 

Use the Power BI REST API to query the status of reports and datasets. You can write a script to periodically check the status of visual objects. Integrate with monitoring tools such as Azure Monitor or third-party services such as Datadog or New Relic to track the running status of Power BI reports.
The following is a rough example of a script:

$clientId = "your-client-id"
$clientSecret = "your-client-secret"
$tenantId = "your-tenant-id"
$workspaceId = "your-workspace-id"
$reportId = "your-report-id"

# Get OAuth token
$body = @{
    grant_type    = "client_credentials"
    client_id     = $clientId
    client_secret = $clientSecret
    resource      = "https://analysis.windows.net/powerbi/api"
}
$response = Invoke-RestMethod -Method Post -Uri "https://login.microsoftonline.com/$tenantId/oauth2/token" -ContentType "application/x-www-form-urlencoded" -Body $body
$token = $response.access_token

# Check report status
$headers = @{
    Authorization = "Bearer $token"
}
$reportStatus = Invoke-RestMethod -Method Get -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/reports/$reportId" -Headers $headers

# Check if the report is accessible
if ($reportStatus -eq $null) {
    # Send alert (email, SMS, etc.)
    Write-Output "Report is not accessible"
} else {
    Write-Output "Report is accessible"
}

Also, you might consider setting up an alert in the dashboard in Power BI Service. Send alerts when your metrics meet the alert criteria.

 

If this post helps, then please consider Accept it as the solution and kudos to this post to help the other members find it more quickly

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors