The request did not have a subscription or a valid tenant level resource provide

2021-05-05T07:18:45.537+00:00

The request did not have a subscription or a valid tenant level resource provider. I am following this document https://learn.microsoft.com/en-us/azure/aks/use-azure-ad-pod-identity
while runnnig this command az role assignment create --role "Reader" --assignee "$IDENTITY_CLIENT_ID" --scope $NODES_RESOURCE_ID
i am getting this error The request did not have a subscription or a valid tenant level resource provider
Although i am global Administrator

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
598 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,801 Reputation points Microsoft Employee
    2021-05-05T15:18:14.097+00:00

    @The request did not have a subscription Welcome to Microsoft Q&A Forum! Thank you for posting your query here!

    Based on the error message there is a similar thread discussion in the GitHub forum, please refer to the suggestion and let me know the status!

    IDENTITY_CLIENT_ID managed identity must have Reader permissions in the resource group that contains the virtual machine

    identity_permissions.sh

    If the issue still persist, I would like to work closer on this issue, please share the screenshot of the error.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    -----------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments