I'm running the following cmdlet:
New-AzRoleAssignment -Scope $workspaceid -RoleDefinitionId $roleId -ObjectId $objectid -verbose -debug
Error I'm getting is:
Powershell is in noninteractive mode. Read and prompt functionality is unavailable.
Fair enough. So I try running it with the -Force switch, returns error:
A parameter cannot be found that matches the parameter name "Force".
Try with "-confirm:$false", get an error that says:
A parameter cannot be found that matches the parameter name "confirm".
If neither "confirm" nor "force" work, then why is it complaining about being in noninteractive mode?