I am currently creating an ARM template for an azure custom role and managed Identity. I can successfully create a custom role and managed Identity.Now I want to assign that custom role to that Identity.I want to get the role definition of the new created custom role in ARM template itself.how to the role definition ID in ARM template?
"properties": {
"roleDefinitionId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '<Your Role definition ID>')]",
"principalId": "<your-principal-id>"
}