| external help file | Invoke-SemanticModelRefresh-help.xml |
|---|---|
| Module Name | Invoke-SemanticModelRefresh |
| online version | |
| schema | 2.0.0 |
This module runs a synchronous refresh of a Power BI dataset/semantic model against the Power BI/Fabric workspace identified.
Invoke-SemanticModelRefresh [-WorkspaceId] <String> [-SemanticModelId] <String> [-TenantId] <String>
[-Credential] <PSCredential> [-Environment] <PowerBIEnvironmentType> [-Timeout <Int64>] [-LogOutput <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
This module runs a synchronous refresh of a Power BI dataset/semantic model against the Power BI/Fabric workspace identified. An enhanced refresh is issued to the dataset/semantic model and the status is checked until the refresh is completed or failed.
Dependencies: A premium capacity (PPU, Premium, or Fabric) is required to refresh the dataset/semantic model.
$RefreshResult = Invoke-SemanticModelRefresh -WorkspaceId $WorkspaceId `
-SemanticModelId $SemanticModelId `
-TenantId $TenantId `
-Credential $Credential `
-Environment $Environment `
-LogOutput Host
GUID representing workspace in the service
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe GUID representing the semantic model in the service
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe GUID of the tenant where the Power BI workspace resides.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePSCredential
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseMicrosoft.PowerBI.Common.Abstractions.PowerBIEnvironmentType type to identify which API host to use.
Type: PowerBIEnvironmentType
Parameter Sets: (All)
Aliases:
Accepted values: Public, Germany, USGov, China, USGovHigh, USGovMil, Custom
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe number of minutes to wait for the refresh to complete. Default is 30 minutes.
Type: Int64
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 30
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies where the log messages should be written. Options are 'ADO' (Azure DevOps Pipeline) or Host.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Host
Accept pipeline input: False
Accept wildcard characters: FalseRefresh status as defined is MS Docs: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history-in-group#refresh