Hello @BlackCat and thanks for reaching out. AADSTS500213 error is being displayed due your tenant Inbound access settings blocking access. Please change them to better suite your needs. For example you may want to allow access to selected external users or groups. Regarding access to Azure resources, please follow instructions provided in Tutorial: Grant a user access to Azure resources using the Azure portal.
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.