Skip to main content

role_management_policy_assignments

Creates, updates, deletes, gets or lists a role_management_policy_assignments resource.

Overview

Namerole_management_policy_assignments
TypeResource
Idazure.authorization.role_management_policy_assignments

Fields

NameDatatypeDescription
idtextThe role management policy Id.
nametextThe role management policy name.
effective_rulestextfield from the properties object
policy_assignment_propertiestextfield from the properties object
policy_idtextfield from the properties object
roleManagementPolicyAssignmentNametextfield from the properties object
role_definition_idtextfield from the properties object
scopetextfield from the properties object
typetextThe role management policy type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTroleManagementPolicyAssignmentName, scopeGet the specified role management policy assignment for a resource scope
list_for_scopeSELECTscopeGets role management assignment policies for a resource scope.
createINSERTroleManagementPolicyAssignmentName, scopeCreate a role management policy assignment
deleteDELETEroleManagementPolicyAssignmentName, scopeDelete a role management policy assignment

SELECT examples

Gets role management assignment policies for a resource scope.

SELECT
id,
name,
effective_rules,
policy_assignment_properties,
policy_id,
roleManagementPolicyAssignmentName,
role_definition_id,
scope,
type
FROM azure.authorization.vw_role_management_policy_assignments
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new role_management_policy_assignments resource.

/*+ create */
INSERT INTO azure.authorization.role_management_policy_assignments (
roleManagementPolicyAssignmentName,
scope,
properties
)
SELECT
'{{ roleManagementPolicyAssignmentName }}',
'{{ scope }}',
'{{ properties }}'
;

DELETE example

Deletes the specified role_management_policy_assignments resource.

/*+ delete */
DELETE FROM azure.authorization.role_management_policy_assignments
WHERE roleManagementPolicyAssignmentName = '{{ roleManagementPolicyAssignmentName }}'
AND scope = '{{ scope }}';