Edit

Share via


Set-PowerBIDataset

Updates the properties for the specified Power BI dataset.

Syntax

DatasetId (Default)

Set-PowerBIDataset
    -Id <Guid>
    -TargetStorageMode <DatasetStorageMode>
    [-WorkspaceId <Guid>]
    [<CommonParameters>]

ObjectAndId

Set-PowerBIDataset
    -Id <Guid>
    -TargetStorageMode <DatasetStorageMode>
    [-Workspace <Workspace>]
    [<CommonParameters>]

DatasetName

Set-PowerBIDataset
    -Name <String>
    -TargetStorageMode <DatasetStorageMode>
    [-WorkspaceId <Guid>]
    [<CommonParameters>]

ObjectAndName

Set-PowerBIDataset
    -Name <String>
    -TargetStorageMode <DatasetStorageMode>
    [-Workspace <Workspace>]
    [<CommonParameters>]

Description

Updates the properties for the specified Power BI dataset. Before you run this command, make sure you log in using Connect-PowerBIServiceAccount.

Examples

Example 1

PS C:\> Set-PowerBIDataset -Id c47f6cff-70de-4837-a094-93a6f26e20bf -TargetStorageMode PremiumFiles

Updates the specified datset with target storage mode PremiumFiles.

Parameters

-Id

ID of the dataset

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DatasetId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ObjectAndId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the dataset

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DatasetName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ObjectAndName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetStorageMode

Target storage mode of the dataset

Parameter properties

Type:DatasetStorageMode
Default value:None
Accepted values:Abf, PremiumFiles
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Workspace

Workspace containing the dataset

Parameter properties

Type:Workspace
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Group

Parameter sets

ObjectAndId
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
ObjectAndName
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WorkspaceId

ID of the workspace containing the dataset

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False
Aliases:GroupId

Parameter sets

DatasetId
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
DatasetName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

Microsoft.PowerBI.Common.Api.Workspaces.Workspace

Outputs

Microsoft.PowerBI.Common.Api.Datasets.Dataset