---
title: "Gets a policy assignment by ID."
method: GET
path: "/{policyAssignmentId}"
tags: ["PolicyAssignments"]
---

# Gets a policy assignment by ID.

`GET /{policyAssignmentId}`

When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources.

## Path parameters

- `policyAssignmentId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK - Returns information about the policy assignment.

- PolicyAssignment — The policy assignment.
  - `properties` PolicyAssignmentProperties — The policy assignment properties.
    - `displayName` string — The display name of the policy assignment.
    - `policyDefinitionId` string — The ID of the policy definition.
    - `scope` string — The scope for the policy assignment.
  - `id` string — The ID of the policy assignment.
  - `type` string — The type of the policy assignment.
  - `name` string — The name of the policy assignment.

---

[API](https://skmtc.net/azure/apis/policyclient.md) · [All operations](https://skmtc.net/azure/apis/policyclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/policyclient/versions/1385b483fa24/schema)
