Microsoft.Authorization roleManagementPolicyAssignments

Bicep resource definition

The roleManagementPolicyAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.

The roleManagementPolicyAssignments resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Authorization/roleManagementPolicyAssignments resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Authorization/roleManagementPolicyAssignments@2020-10-01' = {
  name: 'string'
  scope: resourceSymbolicName or tenant()
  properties: {
    policyId: 'string'
    roleDefinitionId: 'string'
    scope: 'string'
  }
}

Property values

roleManagementPolicyAssignments

Name Description Value
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For Bicep, set this property to the symbolic name of the resource to apply the extension resource.

This resource type can also be applied to a tenant.
For Bicep, use tenant().
properties Role management policy properties. RoleManagementPolicyAssignmentProperties

RoleManagementPolicyAssignmentProperties

Name Description Value
policyId The policy id role management policy assignment. string
roleDefinitionId The role definition of management policy assignment. string
scope The role management policy scope. string

ARM template resource definition

The roleManagementPolicyAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.

The roleManagementPolicyAssignments resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Authorization/roleManagementPolicyAssignments resource, add the following JSON to your template.

{
  "type": "Microsoft.Authorization/roleManagementPolicyAssignments",
  "apiVersion": "2020-10-01",
  "name": "string",
  "scope": "string" or "/",
  "properties": {
    "policyId": "string",
    "roleDefinitionId": "string",
    "scope": "string"
  }
}

Property values

roleManagementPolicyAssignments

Name Description Value
type The resource type 'Microsoft.Authorization/roleManagementPolicyAssignments'
apiVersion The resource api version '2020-10-01'
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For JSON, set the value to the full name of the resource to apply the extension resource to.

This resource type can also be applied to a tenant.
For JSON, use "/".
properties Role management policy properties. RoleManagementPolicyAssignmentProperties

RoleManagementPolicyAssignmentProperties

Name Description Value
policyId The policy id role management policy assignment. string
roleDefinitionId The role definition of management policy assignment. string
scope The role management policy scope. string

Terraform (AzAPI provider) resource definition

The roleManagementPolicyAssignments resource type is an extension resource, which means you can apply it to another resource.

Use the parent_id property on this resource to set the scope for this resource.

The roleManagementPolicyAssignments resource type can be deployed with operations that target:

  • Resource groups
  • Subscriptions
  • Management groups
  • Tenants

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Authorization/roleManagementPolicyAssignments resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Authorization/roleManagementPolicyAssignments@2020-10-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      policyId = "string"
      roleDefinitionId = "string"
      scope = "string"
    }
  })
}

Property values

roleManagementPolicyAssignments

Name Description Value
type The resource type "Microsoft.Authorization/roleManagementPolicyAssignments@2020-10-01"
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties Role management policy properties. RoleManagementPolicyAssignmentProperties

RoleManagementPolicyAssignmentProperties

Name Description Value
policyId The policy id role management policy assignment. string
roleDefinitionId The role definition of management policy assignment. string
scope The role management policy scope. string