getPolicyAssignment

This operation retrieves a single policy assignment, given its name and the scope it was created at. Uses Azure REST API version 2022-06-01. Other available API versions: 2019-06-01, 2020-03-01, 2023-04-01, 2024-04-01, 2024-05-01, 2025-01-01, 2025-03-01.

Return

The policy assignment.

Parameters

argument

null


suspend fun getPolicyAssignment(policyAssignmentName: String, scope: String): GetPolicyAssignmentResult

Return

The policy assignment.

Parameters

policyAssignmentName

The name of the policy assignment to get.

scope

The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'

See also


Return

The policy assignment.

Parameters

argument

Builder for com.pulumi.azurenative.authorization.kotlin.inputs.GetPolicyAssignmentPlainArgs.

See also