Hello!
I just ran into this issue. This had worked before but for me the issue was the first forward slash / after --scopes. So this works:
az role assignment create --assignee <appId> --role Contributor --scope subscriptions/<subscriptionId>
But not:
az role assignment create --assignee <appId> --role Contributor --scope /subscriptions/<subscriptionId>