capabilities.work

List policy assignments that apply to a resource

One step with Microsoft Azure. We can help you get access.

Look something up

List policy assignments that apply to a resource

Use Microsoft Azure: its PolicyClient Policy Assignments API lets you list policy assignments that apply to a resource in a single step (GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments). capabilities.work can help you get signed up and connected.

  • Which Azure Policy assignments apply to a specific virtual machine or other single resource?
  • Can I see only the policies assigned exactly at one resource, not inherited from containing scopes?
  • What policy definitions are assigned to a single resource, including nested child resources?
  • Can I cap how many policy assignments come back for one resource?
Say it to your AI assistant
  • List policy assignments for resource {resourceName} of type {resourceType} under {resourceProviderNamespace} with parent path {parentResourcePath} in resource group {resourceGroupName}, subscription {subscriptionId}.
  • Show only policy assignments at the exact scope of resource {resourceName} (type {resourceType}, parent path {parentResourcePath}) using filter {filter}, in {resourceProviderNamespace}, group {resourceGroupName}, subscription {subscriptionId}.
  • Show the top {top} policy assignments on resource {resourceName} of type {resourceType}, parent path {parentResourcePath}, provider {resourceProviderNamespace}, group {resourceGroupName}, subscription {subscriptionId}.
For your developer

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments in PolicyClient Policy Assignments API. Full spec on APIs.io.