azure-relay icon indicating copy to clipboard operation
azure-relay copied to clipboard

Cannot run setup script, Add-AzureAccount fails (not an admin?)

Open dlstucki opened this issue 6 years ago • 1 comments

Description

Is the user required to be an Admin on one or more of their subscriptions?

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 D:\GitHub\azure-relay\samples\wcf-relay\scripts\azure\CreateAzureResources.ps1:56 char:16
+     $account = Add-AzureAccount
+                ~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Add-AzureAccount], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount

Actual Behavior

  1. Running setup.bat and this CreateAzureResources.ps1fails with this error.

Expected Behavior

  1. Setup.bat/ps1 should succeed.

dlstucki avatar Nov 02 '18 22:11 dlstucki

Is this using RDFE?

jfggdl avatar Nov 08 '19 20:11 jfggdl