Skip to main content

role_management_policies

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

Overview

Namerole_management_policies
TypeResource
Idazure.authorization.role_management_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringThe role management policy description.
displayNamestringThe role management policy display name.
effectiveRulesarrayThe readonly computed rule applied to the policy.
isOrganizationDefaultbooleanThe role management policy is default policy.
lastModifiedByobjectThe name of the entity last modified it.
lastModifiedDateTimestring (date-time)The last modified date time.
policyPropertiesobjectAdditional properties of scope.
rulesarrayThe rule applied to the policy.
scopestringThe role management policy scope.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, role_management_policy_nameGet the specified role management policy for a resource scope.
list_for_scopeselectscopeGets role management policies for a resource scope.
updateupdatescope, role_management_policy_nameUpdate a role management policy.
deletedeletescope, role_management_policy_nameDelete a role management policy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
role_management_policy_namestringThe name (guid) of the role management policy to get. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get the specified role management policy for a resource scope.

SELECT
id,
name,
description,
displayName,
effectiveRules,
isOrganizationDefault,
lastModifiedBy,
lastModifiedDateTime,
policyProperties,
rules,
scope,
systemData,
type
FROM azure.authorization.role_management_policies
WHERE scope = '{{ scope }}' -- required
AND role_management_policy_name = '{{ role_management_policy_name }}' -- required
;

UPDATE examples

Update a role management policy.

UPDATE azure.authorization.role_management_policies
SET
properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND role_management_policy_name = '{{ role_management_policy_name }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a role management policy.

DELETE FROM azure.authorization.role_management_policies
WHERE scope = '{{ scope }}' --required
AND role_management_policy_name = '{{ role_management_policy_name }}' --required
;