Share via


PolicyInsightsExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.PolicyInsights.

public static class PolicyInsightsExtensions
type PolicyInsightsExtensions = class
Public Module PolicyInsightsExtensions
Inheritance
PolicyInsightsExtensions

Methods

CheckPolicyRestrictions(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on resources within a management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictions(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on a resource within a resource group. Use this when the resource group the resource will be created in is already known.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictions(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on a resource within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtSubscriptionScope
CheckPolicyRestrictionsAsync(ManagementGroupResource, CheckManagementGroupPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on resources within a management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtManagementGroupScope
CheckPolicyRestrictionsAsync(ResourceGroupResource, CheckPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on a resource within a resource group. Use this when the resource group the resource will be created in is already known.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtResourceGroupScope
CheckPolicyRestrictionsAsync(SubscriptionResource, CheckPolicyRestrictionsContent, CancellationToken)

Checks what restrictions Azure Policy will place on a resource within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/checkPolicyRestrictions
  • Operation Id: PolicyRestrictions_CheckAtSubscriptionScope
GetAllPolicyMetadata(TenantResource)

Gets a collection of PolicyMetadataResources in the TenantResource. MockingTo mock this method, please mock GetAllPolicyMetadata() instead.

GetPolicyAttestation(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets an existing attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
GetPolicyAttestationAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets an existing attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
GetPolicyAttestationResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyAttestationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a PolicyAttestationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetPolicyAttestationResource(ResourceIdentifier) instead.

GetPolicyAttestations(ArmClient, ResourceIdentifier)

Gets a collection of PolicyAttestationResources in the ArmClient. MockingTo mock this method, please mock GetPolicyAttestations(ResourceIdentifier) instead.

GetPolicyEventQueryResults(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResource
GetPolicyEventQueryResults(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForManagementGroup
GetPolicyEventQueryResults(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyEventQueryResults(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResourceGroup
GetPolicyEventQueryResults(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForPolicyDefinition
GetPolicyEventQueryResults(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForPolicySetDefinition
GetPolicyEventQueryResults(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForSubscription
GetPolicyEventQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResource
GetPolicyEventQueryResultsAsync(ManagementGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForManagementGroup
GetPolicyEventQueryResultsAsync(PolicyAssignmentResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyEventQueryResultsAsync(ResourceGroupResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForResourceGroup
GetPolicyEventQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForPolicyDefinition
GetPolicyEventQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForPolicySetDefinition
GetPolicyEventQueryResultsAsync(SubscriptionResource, PolicyEventType, PolicyQuerySettings, CancellationToken)

Queries policy events for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyEvents/{policyEventsResource}/queryResults
  • Operation Id: PolicyEvents_ListQueryResultsForSubscription
GetPolicyMetadata(TenantResource, String, CancellationToken)

Get policy metadata resource.

  • Request Path: /providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Operation Id: PolicyMetadata_GetResource
GetPolicyMetadataAsync(TenantResource, String, CancellationToken)

Get policy metadata resource.

  • Request Path: /providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Operation Id: PolicyMetadata_GetResource
GetPolicyMetadataResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyMetadataResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String) to create a PolicyMetadataResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetPolicyMetadataResource(ResourceIdentifier) instead.

GetPolicyRemediation(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets an existing remediation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}
  • Operation Id: Remediations_GetAtResource
GetPolicyRemediationAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Gets an existing remediation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/remediations/{remediationName}
  • Operation Id: Remediations_GetAtResource
GetPolicyRemediationResource(ArmClient, ResourceIdentifier)

Gets an object representing a PolicyRemediationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a PolicyRemediationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetPolicyRemediationResource(ResourceIdentifier) instead.

GetPolicyRemediations(ArmClient, ResourceIdentifier)

Gets a collection of PolicyRemediationResources in the ArmClient. MockingTo mock this method, please mock GetPolicyRemediations(ResourceIdentifier) instead.

GetPolicyStateQueryResults(ArmClient, ResourceIdentifier, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResource
GetPolicyStateQueryResults(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForManagementGroup
GetPolicyStateQueryResults(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyStateQueryResults(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResourceGroup
GetPolicyStateQueryResults(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForPolicyDefinition
GetPolicyStateQueryResults(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForPolicySetDefinition
GetPolicyStateQueryResults(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForSubscription
GetPolicyStateQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResource
GetPolicyStateQueryResultsAsync(ManagementGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForManagementGroup
GetPolicyStateQueryResultsAsync(PolicyAssignmentResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResourceGroupLevelPolicyAssignment
GetPolicyStateQueryResultsAsync(ResourceGroupResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForResourceGroup
GetPolicyStateQueryResultsAsync(SubscriptionPolicyDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForPolicyDefinition
GetPolicyStateQueryResultsAsync(SubscriptionPolicySetDefinitionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForPolicySetDefinition
GetPolicyStateQueryResultsAsync(SubscriptionResource, PolicyStateType, PolicyQuerySettings, CancellationToken)

Queries policy states for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesResource}/queryResults
  • Operation Id: PolicyStates_ListQueryResultsForSubscription
GetPolicyTrackedResourceQueryResults(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForResource
GetPolicyTrackedResourceQueryResults(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForManagementGroup
GetPolicyTrackedResourceQueryResults(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForResourceGroup
GetPolicyTrackedResourceQueryResults(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForSubscription
GetPolicyTrackedResourceQueryResultsAsync(ArmClient, ResourceIdentifier, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForResource
GetPolicyTrackedResourceQueryResultsAsync(ManagementGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForManagementGroup
GetPolicyTrackedResourceQueryResultsAsync(ResourceGroupResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForResourceGroup
GetPolicyTrackedResourceQueryResultsAsync(SubscriptionResource, PolicyTrackedResourceType, PolicyQuerySettings, CancellationToken)

Queries policy tracked resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyTrackedResources/{policyTrackedResourcesResource}/queryResults
  • Operation Id: PolicyTrackedResources_ListQueryResultsForSubscription
SummarizePolicyStates(ArmClient, ResourceIdentifier, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResource
SummarizePolicyStates(ManagementGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForManagementGroup
SummarizePolicyStates(PolicyAssignmentResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResourceGroupLevelPolicyAssignment
SummarizePolicyStates(ResourceGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResourceGroup
SummarizePolicyStates(SubscriptionPolicyDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForPolicyDefinition
SummarizePolicyStates(SubscriptionPolicySetDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForPolicySetDefinition
SummarizePolicyStates(SubscriptionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForSubscription
SummarizePolicyStatesAsync(ArmClient, ResourceIdentifier, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResource
SummarizePolicyStatesAsync(ManagementGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the management group.

  • Request Path: /providers/{managementGroupsNamespace}/managementGroups/{managementGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForManagementGroup
SummarizePolicyStatesAsync(PolicyAssignmentResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level or resource group level policy assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResourceGroupLevelPolicyAssignment
SummarizePolicyStatesAsync(ResourceGroupResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForResourceGroup
SummarizePolicyStatesAsync(SubscriptionPolicyDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level policy definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForPolicyDefinition
SummarizePolicyStatesAsync(SubscriptionPolicySetDefinitionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the subscription level policy set definition.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForPolicySetDefinition
SummarizePolicyStatesAsync(SubscriptionResource, PolicyStateSummaryType, PolicyQuerySettings, CancellationToken)

Summarizes policy states for the resources under the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/{policyStatesSummaryResource}/summarize
  • Operation Id: PolicyStates_SummarizeForSubscription
TriggerPolicyStateEvaluation(ResourceGroupResource, WaitUntil, CancellationToken)

Triggers a policy evaluation scan for all the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • Operation Id: PolicyStates_TriggerResourceGroupEvaluation
TriggerPolicyStateEvaluation(SubscriptionResource, WaitUntil, CancellationToken)

Triggers a policy evaluation scan for all the resources under the subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • Operation Id: PolicyStates_TriggerSubscriptionEvaluation
TriggerPolicyStateEvaluationAsync(ResourceGroupResource, WaitUntil, CancellationToken)

Triggers a policy evaluation scan for all the resources under the resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • Operation Id: PolicyStates_TriggerResourceGroupEvaluation
TriggerPolicyStateEvaluationAsync(SubscriptionResource, WaitUntil, CancellationToken)

Triggers a policy evaluation scan for all the resources under the subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/policyStates/latest/triggerEvaluation
  • Operation Id: PolicyStates_TriggerSubscriptionEvaluation

Applies to