Forum Discussion

MisabhMHasan's avatar
MisabhMHasan
Copper Contributor
Jul 08, 2020

The term 'New-AzRoleAssignment' is not recognized as the name of a cmdlet

Hello,

 

I am getting error the following when running the PowerShell command, 'New-AzRoleAssignment ...':

 

The term 'New-AzRoleAssignment' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.

 

I am PowerShell ISE and I found out that the command is not listed, when I typed 'New-'. Is this to do with the version of PowerShell, that I have on my machine? Which version, should I be at, if it is the case. Please see the attached screenshot that, displays PowerShell version option.

 

Just in case for clarity the following is the PowerShell version information:

 

PSVersion: 5.1.18362.752
PSEdition: Desktop
PSCompatibleVersions: {1.0, 2.0, 3.0, 4.0...}
BuildVersion: 10.0.18362.752
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1

 

Alternatively, is there any other way to delegate access in Windows Virtual Desktop or it can only be done through PowerShell cmdlets?

 

Kind regards,

Misbah

Resources