Hey,
Please refer to the Pipeline JSON template :
This would trigger the AAS model refresh and check for the status till the end
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
can you please help provide any pointers towards refresh AAS tabular model synchronously using Synapse Analytics ?
Hey,
Please refer to the Pipeline JSON template :
This would trigger the AAS model refresh and check for the status till the end
I think you would typically use Azure Synapse as your data source, and then programmatically trigger a refresh operation on your AAS model. Here's a general guide on how to achieve this:
$resourceGroupName = "Your-Resource-Group"
$serverName = "Your-AAS-Server-Name"
$databaseName = "Your-AAS-Database-Name"
$modelRefreshUrl = "https://management.azure.com/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.AnalysisServices/servers/$serverName/databases/$databaseName/refreshes?api-version=2017-08-01-preview"
# Use Azure AD token for authentication
$token = (Get-AzAccessToken -ResourceUrl https://analysis.windows.net/powerbi/api).Token
$headers = @{
"Authorization" = "Bearer $token"
"Content-Type" = "application/json"
}
$body = @{
"type" = "Full"
} | ConvertTo-Json
# Invoke REST API to refresh model
Invoke-RestMethod -Method Post -Uri $modelRefreshUrl -Headers $headers -Body $body
```