Comments (5)
If I use the same command line, but I set the azureSubscriptionOwner equal to the AAD GLOBAL ADMIN ACCOUNT I used to install the Azure Stack, I will proceed further into the script. However, if after entering those same credentials when prompted, the script will error out as follows:
Select-AzureRmSubscription : Provided subscription does not exist
At C:\temp\Registerwithazure.ps1:112 char:1
- Select-AzureRmSubscription -SubscriptionId $azureSubscriptionId
-
+ CategoryInfo : CloseError: (:) [Set-AzureRmContext], ArgumentException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.SetAzureRMContextCommand
Get-AzureRmResourceProvider : No subscription found in the context. Please ensure that the credentials you provided are authorized to access an Azure subscription, then run Login-AzureRMAccount to login.
At C:\temp\Registerwithazure.ps1:115 char:15
- ... egState = $(Get-AzureRmResourceProvider -ProviderNamespace 'microsoft ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [Get-AzureRmResourceProvider], ApplicationException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Providers.GetAzureProviderCmdlet
Cannot index into a null array.
At C:\temp\Registerwithazure.ps1:115 char:15
- ... egState = $(Get-AzureRmResourceProvider -ProviderNamespace 'microsoft ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : NullArray
Get-AzureRmResourceProvider : No subscription found in the context. Please ensure that the credentials you provided are authorized to access an Azure subscription, then run Login-AzureRMAccount to login.
At C:\temp\Registerwithazure.ps1:119 char:19
- ... egState = $(Get-AzureRmResourceProvider -ProviderNamespace 'microsoft ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [Get-AzureRmResourceProvider], ApplicationException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Providers.GetAzureProviderCmdlet
Note that the last error above appears repeat indefinitely (or at least for much longer than I wish to sit and watch hoping it stops).
from azurestack-tools.
As if with the second scenario (above), if I use the same command line, but I set the azureSubscriptionOwner equal to the AAD GLOBAL ADMIN ACCOUNT I used to install the Azure Stack, I will proceed further into the script. However, if when prompted for credentials I instead use the Azure subscription owners credentials I can proceed even further into the script processing. Although eventually it does still error out with the following:
Select-AzureRmSubscription : Provided subscription does not exist
At C:\CloudDeployment\Setup\Activation\Bridge\Register-AzureStack.ps1:97 char:17
- ... scription = Select-AzureRmSubscription -SubscriptionId $SubscriptionI ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : CloseError: (:) [Set-AzureRmContext], ArgumentException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.SetAzureRMContextCommand
from azurestack-tools.
Rupi, can you confirm that this issue is now fixed in the latest version of the registration script?
from azurestack-tools.
Hi @aricbernard -- sorry, I am just seeing this. Did you eventually find success with the script?
The account specified as a parameter of the script needs to be a global admin of the aad tenant as well as a owner/contributor for the azure subscription. And the same account should be specified when prompted again in the script. (Can't use different creds in the second prompt) -- hope that helps!
from azurestack-tools.
Closing. Feel free to reopen if an issue occurs again!
from azurestack-tools.
Related Issues (20)
- VPN connection to ASDK failed on 1902 HOT 7
- bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, HOT 1
- When Trying to Register ASDK Deployment getting failure message (1904) HOT 2
- Unregister-AzSGuestDirectoryTenant is always pointing to the Consumption Subscription HOT 4
- Script Fails on MacOSX under powershell core due to $env:TEMP
- The specified module 'ECEClient.psm1' was not loaded HOT 5
- MSAssetTag HOT 4
- cannot find the json file HOT 4
- Register-AzsWithMyDirectoryTenant fails HOT 3
- Export-AzsMarketplaceItem only downloads productDetails.json HOT 1
- Task: Invocation of interface 'Configure' of role 'Cloud\Fabric\SQL' failed. Step 60.62.101 HOT 3
- Error Activating Azure Stack in Disconnected Mode
- Set-AzsRegistration relies on the AzureRM modules HOT 1
- FIXED: Az Registration script RegisterWithAzure.psm1 throwing -- InvalidRegistrationToken : The registration token is malformed. HOT 2
- Azure Stack installation checks for company admin role instead of global admin
- Usagesummary.ps1 does not properly handle [DateTime] variants for StartTime/EndTime HOT 5
- "Import-Module ..\" is not correct
- asdk-prechecker.ps1-script has encoding errors (or something) HOT 1
- This repo is missing important files HOT 1
- Setting up an Azure Stack environment and the best way to sync the data between the Azure Stack and Azure Public cloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurestack-tools.