Trying to Create Custom Role

_DA Mukul Kumar 0 Reputation points
2026-05-27T10:15:05.88+00:00

I am trying to add custom role to a newly added subscription for vendor but some of the listed roles are giving me error and i am not finding a reason for error.

Need some help in reviewing the JSON file and advise why some of the roles not working for me and any alternative to achieve it.

{

"properties": {

"roleName": "XX",

"type": "CustomRole",

"description": "XX",

"assignableScopes": ["XX"],

"permissions": [

{

"actions": [

"Microsoft.Resources/subscriptions/resourceGroups/read",

"Microsoft.Resources/subscriptions/resourceGroups/write",

"Microsoft.Resources/subscriptions/resourceGroups/delete",

"Microsoft.Storage/storageAccounts/read",

"Microsoft.Storage/storageAccounts/write",

"Microsoft.Storage/storageAccounts/delete",

"Microsoft.Storage/storageAccounts/listKeys/action",

"Microsoft.Storage/storageAccounts/blobServices/read",

"Microsoft.Storage/storageAccounts/blobServices/write",

"Microsoft.Storage/storageAccounts/blobServices/containers/read",

"Microsoft.Storage/storageAccounts/blobServices/containers/write",

"Microsoft.Storage/storageAccounts/blobServices/containers/delete",

"Microsoft.ManagedIdentity/userAssignedIdentities/read",

"Microsoft.ManagedIdentity/userAssignedIdentities/write",

"Microsoft.ManagedIdentity/userAssignedIdentities/delete",

"Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/read",

"Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/write",

"Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/delete",

"Microsoft.Authorization/roleAssignments/read",

"Microsoft.Authorization/roleAssignments/write",

"Microsoft.Authorization/roleAssignments/delete",

"Microsoft.Authorization/roleDefinitions/read",

"Microsoft.Subscription/resourceProviders/register/action",

"Microsoft.Subscription/resourceProviders/read"
```],

"notActions": [],

"DataActions": [],

"NotDataActions": []

}

]

}

}

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.