Skip to content

Connect-azAccount is not working and I still see things like AzurerRm.Profile in my scripts  #135

Description

@Blueposey

when I do Connect-AzAccount
I get: Warning Unable to acquire token for tenant 'organizations with error Exception has been thrown by the target of an invocation
Connect-azAccount : Exception has been thrown by the target of the invocation
at line:1 Char:1
Connect-AzAccount
category Info : CloseError (:) [Connect-AzAccount, TartetInvocationException
FullyQualifiedErrorId: Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

Component*
[] Az.resources 6.14.0

Environment
windows 11 I am running Powershell ISE as Administrator

Error output
Warning Unable to acquire token for tenant 'organizations with error Exception has been thrown by the target of an invocation
Connect-azAccount : Exception has been thrown by the target of the invocation
at line:1 Char:1
Connect-AzAccount
category Info : CloseError (:) [Connect-AzAccount, TartetInvocationException
FullyQualifiedErrorId: Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

Additional context
I originally had AzureRm installed and upgraded it to azureRm 6.13.3
per the tool migration instructions
I ran my scripts and they all worked
I uninstalled AzureRm and Installed Azure Az ran the migration tool
Everything says it converted successfully without issue.

but when I ran my scripts I got some errors. I still see things like AzureRm.Profile in my scripts even though I ran the migrate tool and I thought those items would have been updated?
I tried just doing Connect-AzAccount to see if I could connect and I do get a pop up to select my azure account but after that I get the above error.
I can't send a bunch of logs from my work computer but I am wondering if everything with AzureRm should have been converted by the tool in my scripts and how can I connect?
I tried doing the Update-Module Az.* but still can not login.
Please help!


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions