Why do I get the message "No subscriptions are associated with the logged in account in Azure Service Management (RDFE)" when executing Add-AzureAccount in Windows PowerShell?

MikeOtown 26 Reputation points
2023-11-05T18:54:22.8166667+00:00

My account is the "Owner" of an Azure subscription. Why do I get this message in Windows Powershell?

PS C:\Users\micha> Add-AzureAccount
WARNING: Because the Az modules have all the capabilities of AzureRM modules and more, we will retire the AzureRM modules on 29 February 2024. Learn more about the migration to Az: http://aka
.ms/azpsmigrate.
Add-AzureAccount : No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or 
co-administrator for any account.\r\nDid you mean to execute Connect-AzureRmAccount?
At line:1 char:1
+ Add-AzureAccount
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureAccount], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount
 
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,312 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 41,491 Reputation points Microsoft Employee
    2023-11-06T04:35:10+00:00

    @MikeOtown

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you are experiencing "No subscriptions are associated with the logged in account in Azure Service Management (RDFE)".

    Please note RDFE refers to Azure Classic resources and Add-AzureAccount is used to manage such classic resources.

    Are you trying to work with any legacy RDFE resources in your subscription?

    If yes,

    • Make sure you either have "Service Administrator" or "Co-administrator" permission.
    • If you are not an existing "Service Administrator", you must add yourself as the Co-administrator.
    • Refer : Azure classic subscription administrators
    • User's image

    If not,

    • You should use Connect-AzAccount to login and manage Azure Resource Manager resources

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful