Hello there,
This problem occurs because the user account that is being used to run the Azure PowerShell cmdlets does not have the correct administrator role.
To resolve this problem, use one of the following methods:
-Run the PowerShell cmdlets by using a user account that has the correct administrator role.
-Promote the problem user account to the correct administrator role.
For example, you may be required to have a global administrator role in the Azure Active Directory in order to run the cmdlets.
--------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–