Custom Role definition not showing in Azure Portal

%3CLINGO-SUB%20id%3D%22lingo-sub-1400239%22%20slang%3D%22en-US%22%3ECustom%20Role%20definition%20not%20showing%20in%20Azure%20Portal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1400239%22%20slang%3D%22en-US%22%3E%3CP%3EIve%20just%20created%20a%20custom%20role%20via%20powershell%20and%20confirmed%20that%20it%20worked%20in%20PS%20and%20can%20get%20the%20ID%20with%20with%26nbsp%3BGet-AzRoleDefinition%20%7C%20%3F%20%7B%24_.IsCustom%20-eq%20%24true%7D%20%7C%20FT%20Name%2C%20IsCustom%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20it%20simply%20does%20not%20show%20up%20in%20the%20Azure%20Portal%26nbsp%3B%20under%20Roles%20and%20Administrators.%20Ive%20tried%20refreshing%20%2C%20seraching%20with%20a%20filter%20for%20custom%20role%20type%2C%20searching%20by%20name%20but%20after%20an%20hour%20still%20not%20there%3C%2FP%3E%3CP%3EI%20have%20Global%20Admin%20rights%20and%20I%20cannot%20think%20of%20why%20this%20would%20be%20unless%20there%20is%20currently%20some%20kind%20of%20synching%20issue%20going%20in%20the%20Azure%20Infrastructure.%3C%2FP%3E%3CP%3EAnyone%20have%20any%20ideas%20as%20to%20why%20this%20might%20be%20%3F%20Ive%20tried%20creating%20it%20twice%20also%20in%20case%20it%20was%20a%20glitch%20with%20the%20first%20one.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1400239%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Active%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Contributor

Ive just created a custom role via powershell and confirmed that it worked in PS and can get the ID with with Get-AzRoleDefinition | ? {$_.IsCustom -eq $true} | FT Name, IsCustom   

but it simply does not show up in the Azure Portal  under Roles and Administrators. Ive tried refreshing , seraching with a filter for custom role type, searching by name but after an hour still not there

I have Global Admin rights and I cannot think of why this would be unless there is currently some kind of synching issue going in the Azure Infrastructure.

Anyone have any ideas as to why this might be ? Ive tried creating it twice also in case it was a glitch with the first one.

3 Replies

@PhilRiceUoS I think you have used the New-AzRoleAssignment cmdlet. This is creating a custom role for Azure resources. I think you need to use New-AzureADMSRoleDefinition cmdlet to create a Azure AD role and that shows up in the "Roles and administrators" blade. Not 100% sure, but you can check it out!

Thanks I will give that a try tomorrow and update with my results.

Hi @PhilRiceUoS,

I know this might be a late reply, and I'm not this answer works on your situation, but to inform other readers, in order to create custom role, Azure AD Premium P1 or P2 is a requirement. I hope it helps others as it came in handy for myself :)