Forum Discussion
The term 'New-AzRoleAssignment' is not recognized as the name of a cmdlet
- Jul 27, 2020
Found out from support that, 'New-AzRoleAssignment' PowerShell cmdlet required to have 'Az.Resources' module. Refer to the following:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.resources%2Fnew-azroleassignment%3Fview%3Dazps-4.3.0&data=02%7C01%7Cv-manbla%40microsoft.com%7C967c908c21564800729108d8273728dc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637302465153796699&sdata=sl7rODEDg6OleRn38WShVY6X2G2ViJ8nSusQ5Eh3hXE%3D&reserved=0
Install Az.Resources module using the following cmdlet:
Install-Module -Name Az.Resources
Import Az.Resources module using the following cmdlet:
Import-Module -Name Az.Resources
Kind regards,
Misbah
Found out from support that, 'New-AzRoleAssignment' PowerShell cmdlet required to have 'Az.Resources' module. Refer to the following:
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Faz.resources%2Fnew-azroleassignment%3Fview%3Dazps-4.3.0&data=02%7C01%7Cv-manbla%40microsoft.com%7C967c908c21564800729108d8273728dc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637302465153796699&sdata=sl7rODEDg6OleRn38WShVY6X2G2ViJ8nSusQ5Eh3hXE%3D&reserved=0
Install Az.Resources module using the following cmdlet:
Install-Module -Name Az.Resources
Import Az.Resources module using the following cmdlet:
Import-Module -Name Az.Resources
Kind regards,
Misbah