Error Code:
Error Code
501051
Message
Application '{appId}'({appName}) is not assigned to a role for the application '{resourceId}'({resourceName}).