You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Registration/RegisterWithAzure.ps1
+34-15Lines changed: 34 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,35 @@
6
6
.SYNOPSIS
7
7
8
8
This script can be used to register Azure Stack POC with Azure. To run this script, you must have a public Azure subscription of any type.
9
-
There must also be an account that is an owner or contributor of the subscription.
9
+
There must also be an account that is an owner or contributor of the subscription, and you must have registered the AzureStack resource provider
10
10
11
11
.DESCRIPTION
12
12
13
-
RegisterToAzure runs local scripts to connect your Azure Stack to Azure. After connecting with Azure, you can test marketplace syndication.
13
+
RegisterWithAzure runs scripts already present in Azure Stack (path: $root\CloudDeployment\Setup\Activation\Bridge)to connect your Azure Stack to Azure.
14
+
After connecting with Azure, you can test marketplace syndication by downloading products from the marketplace. Usage data will also default to being reported to Azure for billing purposes.
15
+
To turn these features off see examples below.
14
16
15
17
The script will follow four steps:
16
-
Configure bridge identity: configures Azure Stack so that it can call to Azure via your Azure subscription
17
-
Get registration request: get Azure Stack environment information to create a registration for this azure stack in azure
18
+
Configure bridge identity: Creates Azure AD application that is used by Azure Bridge for marketplace syndication and by Usage Bridge to send Usage records (if configured).
19
+
Get registration request: get Azure Stack environment information to create a registration for this Azure Stack in azure
18
20
Register with Azure: uses Azure powershell to create an "Azure Stack Registration" resource on your Azure subscription
19
21
Activate Azure Stack: final step in connecting Azure Stack to be able to call out to Azure
20
22
21
-
.PARAMETERazureSubscriptionId
22
-
23
-
24
-
Azure subscription ID that you want to register your Azure Stack with. This parameter is mandatory.
25
-
26
-
.PARAMETERazureDirectoryTenantName
23
+
.PARAMETERazureCredential
27
24
28
-
Name of your AAD Tenant which your Azure subscription is a part of. This parameter is mandatory.
25
+
Powershell object that contains credential information such as user name and password. If not supplied script will request login via gui
29
26
30
27
.PARAMETERazureAccountId
31
28
32
29
Username for an owner/contributor of the azure subscription. This user must not be an MSA or 2FA account. This parameter is mandatory.
33
30
34
-
.PARAMETERazureCredential
31
+
.PARAMETERazureSubscriptionId
35
32
36
-
Powershell object that contains credential information such as user name and password. If not supplied script will request login via gui
33
+
Azure subscription ID that you want to register your Azure Stack with. This parameter is mandatory.
34
+
35
+
.PARAMETERazureDirectoryTenantName
36
+
37
+
Name of your AAD Tenant which your Azure subscription is a part of. This parameter is mandatory.
37
38
38
39
.PARAMETERazureEnvironment
39
40
@@ -43,16 +44,34 @@ Environment name for use in retrieving tenant details and running several of the
43
44
44
45
URI used for ActivateBridge.ps1 that refers to the endpoint for Azure Resource Manager. Defaults to "https://management.azure.com"
45
46
47
+
.PARAMETERenableSyndication
48
+
49
+
Boolean value used in Register-AzureStack.ps1 to enable marketplace syndication. Defaults to $true
50
+
51
+
.PARAMETERreportUsage
52
+
53
+
Boolean value used in Register-AzureStack.ps1 to enable reporting of usage records to Azure. Defaults to $true
54
+
46
55
.EXAMPLE
47
56
57
+
This example registers your AzureStack account with Azure, enables syndication, and enables usage reporting to Azure.
48
58
This script must be run from the Host machine of the POC.
If you would like to un-Register with you azure by turning off marketplace syndication and usage reporting you can run this script again with both enableSyndication
74
+
and reportUsage set to false. This will unconfigure usage bridge so that syndication isn't possible and usage data is not reported.
0 commit comments