Adding Azure Stack Tenant Account to VS2015 RRS feed

  • Question

  • I would like to try deploying ARM templates to my 1-node TP3 server using VS 2015.  This works just fine if I am attempting to deploy to the Service Admin ARM API endpoint (https://api.local.azurestack.external), but I would like to also deploy the template to the Tenant endpoint (https://publicapi.local.azurestack.external).  Is this possible using VS 2015, as it doesn't appear as though this can be done?  I've been using the Azure SDK for .NET (VS 2015) 3.0.

    I'm assuming that the only way to do this at the moment is to connect to the tenant ARM endpoint via PowerShell and use New-AzureRmResourceGroup, but I wanted to confirm.



    Thursday, March 16, 2017 10:22 PM

All replies

  • Make sure you also have a tenant subscription. By default the admin account has a subscription (Admin Subscription) First make sure you have an offer (and plan) available for tenants. Now go to the tenant portal(https://publicportal.local.azurestack.external) with your admin account and subscribe to a new subscription. Then in visual studio the new subscription should appear as well. So you should see an 'Azure Stack' subscription and an 'Azure Stack Administration' subscription. If you also have an azure subscription you will also see 'management.azure.com' in the list of subscriptions.

    Best regards, Mark Scholman. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, March 16, 2017 11:20 PM
  • Mark,

    I do have a tenant subscription.  The problem is that when adding a new account in Cloud Explorer in VS, it is only hitting the Service Admin API - https://api.local.azurestack.external.  When I add a tenant account that has a valid tenant subscription, it shows there are no subscriptions.  This very same thing will happen in PowerShell when issuing a Get-AzureRMSubscription unless you specifically identify the tenant API - https://publicapi.local.azurestack.external - using the -ArmEndpoint parameter when adding the Azure Stack environment.

    It seems to me that Cloud Explorer's "Add an Account" link needs a parameter that indicates whether you are connecting to the Admin portal or the tenant portal.  Or is that linkage created on the account in AAD?



    Friday, March 17, 2017 12:21 AM
  • What Visual Studio and Azure SDK versions are you using?  I do not see the subscriptions as you've indicated them.  I am using TP3R and Visual Studio 2015 with Azure SDK 2.9.6 as indicated in the POC documentation.

    Also, you indicate logging onto the tenant portal using the admin account.  What I'm trying to do is add a tenant user as an account in VS2015.  I would rather the tenant subscription not appear under the admin user.  I would like two different users in my VS under the list of accounts.  Or is that not possible?

    Wednesday, May 17, 2017 7:31 PM
  • In TP3R the end points have changed.  It is no longer https://publicapi.local.azurestack.external. 

    Please reference https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-configure for the end points.

    I know that you want to add two user accounts.  Have you been able to successfully add one user?

    Wednesday, May 17, 2017 11:29 PM