generate_rbac_assignment
Generate Azure RBAC role assignment Bicep. Looks up common roles by name; falls back to caller-provided GUID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"principalId": "<principalId>",
"roleName": "<roleName>",
"scope": "<scope>"
},
"name": "generate_rbac_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Resource ID to scope the assignment to (RG, subscription, or specific resource) | |
| roleName | Yes | Built-in role name (e.g. 'Storage Blob Data Reader') OR a custom role GUID | |
| scopeKind | No | rg | subscription | resource — only affects the output template structure | |
| principalId | Yes | Object ID of the principal (managed identity, user, service principal) | |
| principalType | No | ServicePrincipal | User | Group |