Power Automate 许可证自动申领策略

作为管理员,您通常会手动向用户分配许可证。 Power Automate 许可证自动申领允许管理员在 Microsoft 365 管理中心轻松设置策略,与其他 Microsoft 产品和服务类似。 配置策略后,系统会自动向组织中需要单个 Power Automate 用户许可证的任何用户分配许可证。

您可以在 Microsoft 365 管理中心中创建和管理这些自动声明策略。

自动申领策略范围

Power Automate 许可证自动申领策略的当前范围适用于以下许可证:

  • Power Automate 高级版
  • Power Automate 每用户计划(旧版)

配置自动声明策略时,以下方案会在用户缺少所需权利时自动向用户分配许可证。

Power Automate 每用户计划

在 Power Automate 门户中:

  • 用户触发、保存或启用高级云流(或托管环境的标准流)。
  • 用户申请 Power Automate 按用户许可证。

Power Automate 高级版

除了为 Power Automate 每用户计划列出的情景之外,用户还需要执行以下任务。

在 Power Automate 门户中:

  • 用户通过有人参与的 RPA(流程机器人自动化)触发、保存或打开高级云端流。
  • 用户请求 Power Automate 高级许可证。

在 Power Automate 桌面版应用程序中(安装程序版本 2.43 或更高版本):

  • 用户选择 Go Premium
  • 用户正在使用高级自助版或试用版,并积极使用 RPA 功能。

换句话说,选择 Go Premium 后,如果自动声明策略已到位,则会自动分配相应的许可证。

创建 Power Automate 许可证自动申领策略

使用此处描述的信息为 Power Automate 设置自动申领策略。

有关在 Microsoft 365 管理中心管理自动申请策略的更多信息,请访问在 Microsoft 365 管理中心管理自动申请策略

谁可以创建和管理自动申请策略?

要创建和管理自动申请策略,您必须拥有 Microsoft 365 全局管理员权限。 有关详细信息,请转到 Microsoft 365 管理中心的管理员角色

打开自动申请策略功能

在创建自动声明策略之前,必须在 Microsoft 365 管理中心中启用自动声明策略功能。

  1. 登录到 Microsoft 365 管理中心
  2. 导航菜单中,选择计费>许可证
  3. 选择自动申请策略选项卡。
  4. 选择打开设置

打开该功能后,您可以创建一个自动申请策略。

为 Power Automate 创建自动申请策略

自动申领策略选项卡显示您创建的策略。 您可以查看策略的名称、关联的应用程序、分配的产品、可用的许可证以及策略的状态。

要创建新策略,请完成以下步骤:

  1. 在 Microsoft 365 管理中心选择计费>许可证

  2. 选择“ 自动声明策略 ”选项卡,然后选择“ 添加策略”。

  3. “命名”此自动声明策略时,输入策略的名称,然后选择“ 下一步”。

  4. “设置自动声明应用和产品”上,根据许可证类型从下拉列表中显示的以下计划中进行选择:

    许可证类型 自动申领应用程序 分配的产品
    Power Automate 每用户计划 Power Automate 每用户计划 Power Automate 每用户计划
    Power Automate 高级版 Power Automate RPA 有人参与模式 Power Automate Premium
  5. “选择应用”上,选中或清除要包含或排除许可证的应用的复选框,然后选择“ 下一步”。

  6. 查看并完成时,验证新策略信息,进行任何必要的更改,然后选择“创建策略”。

    将显示策略详细信息。

    Power Automate 的“自动声明策略配置”页的屏幕截图,其中显示了策略详细信息和设置。

在自动申领策略报告中查看许可证分配

自动申领策略报表显示过去 90 天内自动申领策略的所有许可证分配。

要查看自动申领策略报告,请执行以下操作:

  1. 在 Microsoft 365 管理中心中,选择 “计费>许可证”,然后选择“ 自动声明策略 ”选项卡。
  2. 选择查看报告。 “自动申领策略报告”页面列出了过去几天内从每个策略分配的所有许可证。 默认情况下,该页面显示过去 90 天。

要更改显示的时间段,选择过去 30 天下拉列表。 您可以查看过去 1 天、7 天、30 天和 90 天的报告。

默认情况下启用自动申请策略

为了简化管理员的许可证管理,在以下情况下,默认情况下会启用自动声明策略:

拥有新 Power Automate premium 许可证的租户:从 2024 年 2 月开始,拥有新 Power Automate premium 许可证的租户在 Microsoft 365 管理中心拥有针对 Power Automate 的新自动申领许可证策略。 该策略确保需要 Power Automate premium 许可证的用户可以自动接收该许可证(如果您的租户中提供了该许可证)。 默认情况下,此策略适用于所有环境。

使用托管环境的租户:从 2024 年 4 月开始,使用托管环境的租户在 Microsoft 365 管理中心针对 Power Automate 拥有新的自动申领许可证策略。 此策略确保需要 Power Automate premium 或每用户计划(旧)许可证的用户自动获得该许可证(如果许可证在您的租户中可用)。 默认情况下,此策略适用于托管环境中的用户。 但是,管理员还可以选择扩展该策略以应用到 Power Platform 管理中心中的标准环境。

管理员可以更新策略吗?

是,管理员可以在 Microsoft 365 管理中心管理该策略,就像任何其他自动申请策略一样。 管理员可以禁用、删除该策略,并查看为哪些用户分配了许可证的报告。

在 Power Platform 管理中心,管理员可以决定该策略是仅应用于托管环境还是应用于所有环境。

  1. 登录 Power Platform 管理中心
  2. 在导航窗格中,选择“ 管理”。
  3. 管理窗格中,选择租户设置
  4. 选择 Power Automate 的自动声明策略
  5. Power Automate 的“自动声明策略 ”窗格中,选择该策略是适用于 “所有环境 ”还是 “仅托管环境”。

支持基于组的许可证分配

自动申请策略支持个人许可证分配,这意味着许可证被分配给个人用户。 如果您的组织已经有许可证分配的现有流程,管理员仍然可以在维护其当前工作流程的同时利用自动申请策略。

管理员可以通过 Microsoft 365 管理中心中的自动声明策略查看为其分配许可证的用户列表。 然后,他们可以根据需要进行更改,例如取消分配自动申请分配的许可证,并将用户移至指定的组,以利用 Microsoft Entra 基于组的许可。 有关基于组的许可的详细信息,请转到 基于组的许可方案

这里有一些命令可以帮助取消分配许可证和将用户添加到所需的 Microsoft Entra 组。

##
#Install and import AzureAD PowerShell module prior to running these commands
##
##You might be able to get a list of users, that have been auto-assigned a 
##license directly, via Microsoft Admin Center. Follow instructions at 
##https://learn.microsoft.com/en-us/microsoft-365/commerce/licenses/manage-auto-claim-policies?view=o365-worldwide#view-an-auto-claim-policy-report
##
##Once you have a list of users, you can use the following commands to remove 
##the direct license assignment and add the user to a licensed group, or 
##you might tweak the script to iterate through a list of users and 
##perform this in bulk
##
##Please note that adding a user to a licensed group might not result in an 
##immediate license assignment. Refer to https://learn.microsoft.com/en-us/entra/identity/users/licensing-group-advanced for more information
#############################################>

$Credential = Get-Credential

# Connect to Azure AD
Connect-AzureAD -Credential $Credential

#The user that will get a group based license
$LicensedUser = Get-AzureADUser -SearchString "<UPN, display name or object ID of the user for which you want to assign a license>"

#The group that has the license assigned
$LicensedGroup = Get-AzureADGroup -SearchString "<Object ID or name of the group that has a relevant license assigned>"

#SKU part number of the sku that needs to be unassigned
# Power Automate premium = "POWER_AUTOMATE_ATTENDED_RPA"
# Power Automate per user (legacy) = "FLOW_PER_USER"
$SkuPartName = "POWER_AUTOMATE_ATTENDED_RPA"

#Get the SkuID of the license that needs to be unassigned from the user
$LicenseSku = Get-AzureADSubscribedSku | Where-Object {$_.SkuPartNumber -eq $SkuPartName}

#Create the AssignedLicenses Object, used for removing direct license assignment from the user
$LicensesToRemove = New-Object -TypeName Microsoft.Open.AzureAD.Model.AssignedLicenses
$LicensesToRemove.RemoveLicenses = $LicenseSku.SkuId

#Remove directly assigned license from the user
#Note that this command will result in an error if the user does not have the relevant license assigned directly
Set-AzureADUserLicense -ObjectId $LicensedUser.ObjectId -AssignedLicenses $LicensesToRemove

#Add user to a licensed group
Add-AzureADGroupMember -ObjectId $LicensedGroup.ObjectId -RefObjectId $LicensedUser.ObjectId

限制

本节介绍了 Power Automate 的自动申领策略的所有限制。

自动申领策略在创建后可能需要两个小时才能激活

创建 Power Automate 许可证自动声明策略后,配置的策略最多可能需要两个小时才能激活和传播到相关的Microsoft服务中。

许可证自动申领成功后不会立即反映在 Power Automate 门户中

当自动申领 Power Automate 用户许可证时,在 Power Automate 门户中更新许可证状态之前可能会有轻微延迟。 在此期间,门户可能会指示用户没有自动申领的许可证。 但是,虽然门户会显示,用户还是有权访问高级功能。