Access Denied. You do not have permissions to call this cmdlet.

vishwa a 21 Reputation points
2022-05-11T07:30:07.217+00:00

Hi,

This error occurs randomly while running any Msol cmdlet. The cmdlet runs without any issues for a while but after a specific interval everytime this error occurs.Once I create a new session and try running the cmdlet then it works without any issues.

The behavior seems like session expiry, But the error message ' Access Denied. You do not have permissions to call this cmdlet.' confuses it.

1.what are the possible cases for this error ' Access Denied. You do not have permissions to call this cmdlet.' happening? Most search results suggests to add necessary admin role but the mentioned above is my case which doesn't seem like falling in the same.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
0 comments No comments
{count} votes