Skip to content

Commit e9d3839

Browse files
author
brbartle
authored
Update README.md
Adds examples of all 3 registration functions
1 parent 496f7ca commit e9d3839

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Registration/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@ The functions in this module allow you to perform the steps of registering your
44

55
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)
66

7-
Once you have downloaded this module, to run the functions contained:
7+
Once you have downloaded this module, open an elevated instance of Powershell ISE and run the functions contained:
88

9+
To register with Azure and enable marketplace syndication and usage data reporting:
910
```powershell
10-
CD "<path to RegisterWithAzure.psm1>"
11-
Import-Module RegisterWithAzure.psm1
12-
Add-AzSRegistration -CloudAdminCredential $cloudAdminCredential -AzureSubscriptionId $AzureSubscriptionId -JeaComputerName $JeaComputerName
11+
Import-Module "<path to RegisterWithAzure.psm1>" -Force -Verbose
12+
Add-AzsRegistration -CloudAdminCredential $cloudAdminCredential -AzureDirectoryTenantName $azureDirectoryTenantName -AzureSubscriptionId $azureSubscriptionId -PrivilegedEndpoint $privilegedEndpoint -BillingModel PayAsYouUse
13+
```
14+
15+
To switch the existing registration to a new subscription or directory:
16+
```powershell
17+
Set-AzsRegistrationSubscription -CloudAdminCredential $cloudAdminCredential -AzureDirectoryTenantName $azureDirectoryTenantName -NewAzureDirectoryTenantName $NewDirectoryTenantName -CurrentAzureSubscriptionId $azureSubscriptionId -NewAzureSubscriptionId $NewAzureSubscriptionId -PrivilegedEndpoint $privilegedEndpoint -BillingModel PayAsYouUse
18+
```
19+
20+
To remove the existing registration resource and disable marketplace syndication and usage data reporting:
21+
```powershell
22+
Remove-AzsRegistration -CloudAdminCredential $cloudAdminCredential -AzureDirectoryTenantName $azureDirectoryTenantName -AzureSubscriptionId $azureSubscriptionId -PrivilegedEndpoint $privilegedEndpoint -BillingModel PayAsYouUse
1323
```
1424

1525
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)