Question

rralamo1971 on Sun, 17 Dec 2017 05:15:01


Hi All,

Using the steps in "Register Azure Stack with your Azure Subscription" (https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register) When executing step 7 I receive the following error:
017-12-16.11-25-31: Token not found for tenant id 12345ea-34b4-4207-7d49-59dfb72354bc and resource.

I can access the subscription/tenant directly with no issues.

Azure Stack build: 1.0.171020.1

I have searched but have not found anything that will resolve the issue.

thanks in advance

-rene



Version: 1.0.171020.1
<svg aria-hidden="true" focusable="false" role="presentation" viewBox="0 0 50 50" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path class="msportalfx-svg-c05" d="M41.111 4H20.889c-.491 0-.889.382-.889.854v29.07a5.302 5.302 0 0 1 1.12-.125 5.28 5.28 0 1 1-1.1 10.442.867.867 0 0 0 .869.759h20.222c.491 0 .889-.382.889-.854V4.854c0-.472-.398-.854-.889-.854z"></path><path class="msportalfx-svg-c01" d="M23 25h4v6h-4zm6 0h4v6h-4zm6 0h4v6h-4zM23 7h4v6h-4zm6 0h4v6h-4zm6 0h4v6h-4zm-12 9h4v6h-4zm6 0h4v6h-4zm6 0h4v6h-4z"></path><path class="msportalfx-svg-c15" d="M5.801 38.2c-2.127 0-3.857-1.995-3.857-4.139 0-2.225 1.811-4.036 4.019-4.036l.048.003.143.008 1.291.055.504-1.19a5.272 5.272 0 0 1 4.863-3.223c1.242 0 2.384.427 3.285 1.146a9.215 9.215 0 0 1 1.885-.775 7.097 7.097 0 0 0-5.171-2.233 7.143 7.143 0 0 0-6.579 4.359c-.084-.004-.167-.013-.252-.013a5.899 5.899 0 0 0-5.899 5.899c0 3.153 2.63 5.899 5.72 5.899h14.08V38.2H5.801z"></path><path class="msportalfx-svg-c15" d="M36.073 39.41a7.59 7.59 0 0 0-7.59-7.59c-.131 0-.54.013-.669.02a7.915 7.915 0 0 0-7.202-4.64c-3.925 0-7.175 2.859-7.802 6.606-.039-.001-.078-.006-.118-.006-2.305 0-4.522 1.387-5.724 3.2h10.434c.711-1.326 2.084-2.24 3.68-2.24 2.316 0 4.2 1.902 4.2 4.24s-1.884 4.24-4.2 4.24c-1.581 0-2.944-.897-3.66-2.203-.007-.013-.017-.024-.024-.037H6.368l-.144.72A6.601 6.601 0 0 0 12.691 47h16.122l-.282-.017c4.038-.174 7.542-3.493 7.542-7.573z"></path><ellipse class="msportalfx-svg-c15" cx="21.081" cy="39" rx="2.9" ry="2.94"></ellipse><path class="msportalfx-svg-c13" d="M40.081 28h5v21h-5z"></path><path class="msportalfx-svg-c13" d="M50.081 29h-15l7.5-10.5z"></path></g></svg>

Sponsored



Replies

spoengineer on Mon, 18 Dec 2017 02:15:44


Have you selected the right subscription following step 3?

rralamo1971 on Mon, 18 Dec 2017 13:44:09


Yes I have followed step #3 and have chosen the correct and only CSP subscription attached to this account. This was working until my server had a hardware failure. I  had to rebuild it and now following the same steps I receive this error. I removed the entry in the Azure Cloud subscription prior to retrying these steps. I can log into the Azure Cloud portal using this same CSP subscription and tenant with no issues and create resources. 

Thanks,

-rene

rralamo1971 on Mon, 18 Dec 2017 15:16:21


Found the issue did not have verbiage TenantID in this line -AzureDirectoryTenantName $AzureContext. Tenant. TenandID.

When corrected it started to execute but then error out with the following:

VERBOSE: 2017-12-18.09-32-02: Initializing privileged JEA session with AzS-ERCS01. Attempt 0 of 3
VERBOSE: 2017-12-18.09-34-55: Connection to AzS-ERCS01 successful
VERBOSE: 2017-12-18.09-34-55: Verifying stamp version.
VERBOSE: 2017-12-18.09-36-21: Running registration on build 1.0.171020.1. Cloud Id: e8b7d117-5728-49ad-800c-6329
VERBOSE: 2017-12-18.09-39-23: Creating Azure Active Directory service principal in tenant: <MyTenantID>
VERBOSE: 2017-12-18.09-43-58: Creating registration token. Attempt 0 of 3
VERBOSE: 2017-12-18.09-44-25: Creating resource group '.' in location <MysubscriptionID>

New-AzureRmResourceGroup : No HTTP resource was found that matches the request URI
'https://management.azure.com/subscriptions/<mysusbscriptionID>/resourcegroups/?api-version=2017-05-10'.
At C:\AzureStack-Tools-master\Registration\RegisterWithAzure.psm1:614 char:26
+ ... urceGroup = New-AzureRmResourceGroup -Name $ResourceGroupName -Locati ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureRmResourceGroup], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupCmdlet


Gary Gallanes [MSFT] on Thu, 21 Dec 2017 00:49:55


Hello Rene,

It appears to be failing when trying to create the resource group in Azure and looks like there may be an issue with the values stored in the SubscriptionId or TenantId

  

Can you run the following command to validate these values?

  

$AzureContext = Get-AzureRmContext

$AzureContext.Subscription.SubscriptionId

$AzureContext.Tenant.TenantId

 

 

Also – Can you try running PowerShell as AzureStack\CloudAdmin instead of AzureStack\AzureStrackAdmin and see if that runs successfully.

 

Let me know how it goes, 

We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

If you experience any issues with Azure Stack or the current ASDK release, please feel free to contact us.

     

 Thanks

rralamo1971 on Thu, 28 Dec 2017 20:28:31


Hi Gary,

thank you for the help what you suggested fixed and it is now working correctly.

thanks

-rene