I have a script that I've used before that used to work. Now I'm getting an error on Connect-AzAccount.
(AccountID parameter redacted)
Without the AccountID parameter, triggers the GUI prompt and works from there, but I want to skip that. Has something changed recently?
PS C:\> Connect-AzAccount -Tenant $t1.Tenant -Subscription $t1.Subscription -AccountId "xxxxxx@xxxxx"
Connect-AzAccount : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Connect-AzAccount -Tenant $t1.Tenant -Subscription $t1.Subscription - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Connect-AzAccount], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand