Learn Idem

Learn Idem

Powered by Idem Project

azure.authorization.role_assignments

**Autogenerated function**

Delete Role Assignments

Args:
    name(str): The identifier for this state.
    scope(str, optional): The scope of the role assignment to delete.
    role_assignment_name(str, optional): The name of the role assignment to delete.
    resource_id(str, optional): Role assignment resource id on Azure. Either resource_id or a combination of scope
     and role_assignment_name need to be specified. Idem will automatically consider a resource as absent if both
      options are not specified.

Returns:
    Dict

Examples:

    .. code-block:: sls

        resource_is_absent:
          azure.authorization.role_assignments.absent:
            - name: value
            - scope: value
            - role_assignment_name: value
**Autogenerated function**

Describe the resource in a way that can be recreated/managed with the corresponding "present" function


List all Role Assignments under the same subscription


Returns:
    Dict[str, Any]

Examples:

    .. code-block:: bash

        $ idem describe azure.authorization.role_assignments
**Autogenerated function**

Create or update Role Assignments

Args:
    name(str): The identifier for this state.
    scope(str): The scope of the role assignment to create. The scope can be any REST resource instance.
     For example, use '/subscriptions/{subscription-id}/' for a subscription,
      '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group,
       and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.
    role_definition_id(str): The role definition ID used in the role assignment.
    principal_id(str): The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.
    resource_id(str, optional): Role Assignment resource id on Azure.
    role_assignment_name(str, optional): A GUID for the role assignment to create. The name must be unique and different for each role assignment. This will be automatically generated if not specified.

Returns:
    Dict

Examples:

    .. code-block:: sls

        resource_is_present:
          azure.authorization.role_assignments.present:
            - name: value
            - scope: value
            - role_assignment_name: value
Last updated on 20 Sep 2022
 Edit on GitHub