Skip to content

Commit 169c835

Browse files
author
BradleyBartlett
committed
registration rewrite and overhaul. requires documentation fixes.
1 parent 667a016 commit 169c835

File tree

3 files changed

+1131
-388
lines changed

3 files changed

+1131
-388
lines changed

Registration/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
# Registration
22

3-
This script must be run from the Host machine. As a prerequisite, make sure that you have an Azure subscription, that you have installed Azure PowerShell, and that you have registered the AzureStack resource provider:
3+
The functions in this module allow you to perform the steps of registering your Azure Stack with your Azure subscription. Additional details can be found in the [documentation](https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register).
44

5-
```powershell
6-
Install-Module -Name AzureRM
7-
Register-AzureRmResourceProvider -ProviderNamespace 'microsoft.azurestack'
8-
```
9-
10-
This script helps you to run through the steps of registering your Azure Stack with your Azure subscription. Additional details can be found in the [documentation](https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register).
5+
These functions must be run from the Host machine. As a prerequisite, make sure that you have an Azure subscription and that you have installed the correct version of Azure Powershell as outlined here: [Install Powershell for Azure Stack](https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install)
116

12-
To run the script:
7+
Once you have downloaded this module, to run the functions contained:
138

149
```powershell
15-
RegisterWithAzure.ps1 -azureCredentials YourCredentialObject -azureAccountId YourAccountName -azureSubscriptionId YourSubscriptionGUID -azureDirectoryTenantName YourAADTenantName
10+
CD "<path to RegisterWithAzure.psm1>"
11+
Import-Module RegisterWithAzure.psm1
12+
Add-AzSRegistration -CloudAdminCredential $cloudAdminCredential -AzureSubscriptionId $AzureSubscriptionId -JeaComputerName $JeaComputerName
1613
```
1714

18-
AzureCredentials are not mandatory, if you do not pass in a credential object you will be prompted for your Azure credentials before continuing.
15+
If you are not logged into an Azure account during your powershell session you will be prompted for your Azure credentials before registration completes.

0 commit comments

Comments
 (0)