Azure / azure-relay

☁️ Azure Relay service issue tracking and samples
https://azure.microsoft.com/services/service-bus
MIT License
86 stars 84 forks source link

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

Open dlstucki opened 5 years ago

dlstucki commented 5 years ago

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.
jfggdl commented 4 years ago

Is this using RDFE?