你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyInsightsExtensions.TriggerPolicyStateEvaluation 方法

定义

重载

TriggerPolicyStateEvaluation(ResourceGroupResource, WaitUntil, CancellationToken)

对资源组下的所有资源触发策略评估扫描。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerResourceGroupEvaluation
TriggerPolicyStateEvaluation(SubscriptionResource, WaitUntil, CancellationToken)

对订阅下的所有资源触发策略评估扫描

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerSubscriptionEvaluation

TriggerPolicyStateEvaluation(ResourceGroupResource, WaitUntil, CancellationToken)

对资源组下的所有资源触发策略评估扫描。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerResourceGroupEvaluation
public static Azure.ResourceManager.ArmOperation TriggerPolicyStateEvaluation (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default);
static member TriggerPolicyStateEvaluation : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.WaitUntil * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
<Extension()>
Public Function TriggerPolicyStateEvaluation (resourceGroupResource As ResourceGroupResource, waitUntil As WaitUntil, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

waitUntil
WaitUntil

Completed 如果方法应在服务上完成长时间运行的操作之前等待返回,则为 ; Started 如果它在启动操作后应返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于

TriggerPolicyStateEvaluation(SubscriptionResource, WaitUntil, CancellationToken)

对订阅下的所有资源触发策略评估扫描

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • 操作IdPolicyStates_TriggerSubscriptionEvaluation
public static Azure.ResourceManager.ArmOperation TriggerPolicyStateEvaluation (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default);
static member TriggerPolicyStateEvaluation : Azure.ResourceManager.Resources.SubscriptionResource * Azure.WaitUntil * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
<Extension()>
Public Function TriggerPolicyStateEvaluation (subscriptionResource As SubscriptionResource, waitUntil As WaitUntil, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

waitUntil
WaitUntil

Completed 如果方法应在服务上完成长时间运行的操作之前等待返回,则为 ; Started 如果它在启动操作后应返回,则为 。 有关长时间运行的操作的详细信息,请参阅 Azure.Core Long-Running 操作示例

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于