Set-DataGatewayCluster

设置现有网关群集的属性

语法

Default (默认值)

Set-DataGatewayCluster
    [-Scope <PowerBIUserScope>]
    -GatewayClusterId <Guid>
    [-Name <String>]
    [-Department <String>]
    [-Description <String>]
    [-ContactInformation <String>]
    [-AllowCloudDatasourceRefresh <Boolean>]
    [-AllowCustomConnectors <Boolean>]
    [-LoadBalancingSelectorType <String>]
    [-RegionKey <String>]
    [<CommonParameters>]

说明

设置现有网关群集的属性

示例

示例 1

PS C:\> Set-DataGatewayCluster -GatewayClusterId DC8F2C49-5731-4B27-966B-3DB5094C2E77 -AllowCloudDatasourceRefresh $true

允许在 ID 为 DC8F2C49-5731-4B27-966B-3DB5094C2E77 的群集上刷新 Power BI 云数据源

示例 2

PS C:\> Set-DataGatewayCluster -GatewayClusterId DC8F2C49-5731-4B27-966B-3DB5094C2E77 -AllowCloudDatasourceRefresh $true -RegionKey brazilsouth

允许在 ID 为 DC8F2C49-5731-4B27-966B-3DB5094C2E77 的群集上刷新 Power BI 云数据源。此命令在巴西南部区域运行,因此提供的网关群集 ID 应位于该区域。

参数

-AllowCloudDatasourceRefresh

如果设置为 true,则允许在此群集上刷新 Power BI 云数据源。

参数属性

类型:Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-AllowCustomConnectors

如果设置为 true,则此网关群集上允许基于 Power BI 自定义连接器的刷新。

参数属性

类型:Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ContactInformation

此网关群集的联系信息。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Department

此网关群集的部门属性

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Description

此网关群集的说明。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-GatewayClusterId

需要更新其属性的网关群集

参数属性

类型:Guid
默认值:None
支持通配符:False
不显示:False
别名:集群, Id

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LoadBalancingSelectorType

此群集的负载均衡类型。 值可以是 failoverrandom,这意味着以下内容:failover = roundrobin random = 随机 如果传递了任何内容或传递了任何其他内容,则 roundrobin

参数属性

类型:String
默认值:None
接受的值:Failover, Random
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Name

网关群集的名称。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-RegionKey

与指定网关群集关联的区域。 不提供 -RegionKey 将在租户的默认区域中运行命令。 若要获取可用区域参数的列表,请运行 Get-DataGatewayRegion 命令

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Scope

用于运行命令的安全作用域。 这将确定是否在租户/服务管理员或网关管理员的范围内运行此命令

参数属性

类型:PowerBIUserScope
默认值:Individual
接受的值:Individual, Organization
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Void