logicappsio / LogicAppConnectionAuth

PowerShell Script to get an authorization link and complete auth for an OAuth connector.
MIT License
44 stars 24 forks source link

The script fails if the account has multiple subscription IDs associated #1

Closed tulikac closed 8 years ago

tulikac commented 8 years ago

if you do a $subscription = Get-AzureRmSubscription -SubscriptionId $subscriptionId

after the login, no matter what you specify, it will take the default subscription ID associated with the account, ignoring the parameter which has been passed.

You can workaround that problem by using $subscription = Select-AzureRmSubscription -SubscriptionId $subscriptionId

jeffhollan commented 8 years ago

Thanks for reporting (and listing the fix) - just patched it in commit #9c6941d