Allow access to PowerShell from CSP account
When attempting to use PowerShell in Cloud Shell with my CSP account, which has delegated Owner rights within Azure for the customer tenant, I get the error below. It works if I switch to a Global Admin account.
Add-AzureRmAccount : Cannot validate argument on parameter 'AccountId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Users\ContainerAdministrator\PSCloudShellStartup.ps1:73 char:71
+ ... ProfileModule\Add-AzureRMAccount @addAzureRMAccountParameters -ErrorA ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-AzureRmAccount], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.Profile.AddAzureRMAccountCommand

2 comments
-
Dave Higgins commented
Is there any response to this, officially, or is it another CSP limitation we need to suffer?
-
Tobias Wischmeier commented
Please extend this request to bash as well. When i try use shell.azure.com with my CSP Account im limited to the subscription connected to the acutall CSP directory.