rralamo1971 on Sun, 17 Dec 2017 05:15:01
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
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.
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
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
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
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.
rralamo1971 on Thu, 28 Dec 2017 20:28:31
thank you for the help what you suggested fixed and it is now working correctly.