Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Microsoft.Authorization roleManagementPolicyAssignments
Bicep resource definition
The roleManagementPolicyAssignments resource type can be deployed with operations that target:
- Tenant - See tenant deployment commands* Management groups - See management group deployment commands* Subscription - See subscription deployment commands* Resource groups - See resource group deployment commands
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@2024-09-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
policyId: 'string'
roleDefinitionId: 'string'
scope: 'string'
}
}
Property Values
Microsoft.Authorization/roleManagementPolicyAssignments
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| properties | Role management policy properties. | RoleManagementPolicyAssignmentProperties |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
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 can be deployed with operations that target:
- Tenant - See tenant deployment commands* Management groups - See management group deployment commands* Subscription - See subscription deployment commands* Resource groups - See resource group deployment commands
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": "2024-09-01-preview",
"name": "string",
"properties": {
"policyId": "string",
"roleDefinitionId": "string",
"scope": "string"
}
}
Property Values
Microsoft.Authorization/roleManagementPolicyAssignments
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2024-09-01-preview' |
| name | The resource name | string (required) |
| properties | Role management policy properties. | RoleManagementPolicyAssignmentProperties |
| type | The resource type | 'Microsoft.Authorization/roleManagementPolicyAssignments' |
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 |
Usage Examples
Terraform (AzAPI provider) resource definition
The roleManagementPolicyAssignments resource type can be deployed with operations that target:
- Tenant* Management groups* Subscription* Resource groups
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@2024-09-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
policyId = "string"
roleDefinitionId = "string"
scope = "string"
}
}
}
Property Values
Microsoft.Authorization/roleManagementPolicyAssignments
| Name | Description | Value |
|---|---|---|
| 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 |
| type | The resource type | "Microsoft.Authorization/roleManagementPolicyAssignments@2024-09-01-preview" |
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 |
Feedback
Was this page helpful?
