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
+26-35Lines changed: 26 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -10,26 +10,26 @@ You must also have access to an account that is an owner or contributor to that
10
10
11
11
.DESCRIPTION
12
12
13
-
RegisterWithAzure runs scripts already present in Azure Stack (path: $root\CloudDeployment\Setup\Activation\Bridge)to connect your Azure Stack to Azure.
13
+
RegisterWithAzure runs scripts already present in Azure Stack (path: $env:HOMEDRIVE\CloudDeployment\Setup\Activation\Bridge)to connect your Azure Stack to Azure.
14
14
After connecting with Azure, you can download products from the marketplace (See the documentation for more information: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-download-azure-marketplace-item).
15
15
Running this script with default parameters will enable marketplace syndication and usage data will default to being reported to Azure.
16
16
To turn these features off see examples below.
17
17
18
-
This script will create several resources by default:
19
-
- A registration resource group and resource in Azure Stack
18
+
This script will create the following resources by default:
19
+
- An activation resource group and resource in Azure Stack
20
20
- A resource group in Azure
21
21
- A registration resource in the created resource group in Azure
22
22
23
23
See documentation for more detail: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register
24
24
25
25
.PARAMETERCloudAdminCredential
26
26
27
-
Powershell object that contains credential information such as user name and password.The CloudADmin has access to the JEA Computer (also known as Emergency Console).
27
+
Powershell object that contains credential information i.e. user name and password.The CloudAdmin has access to the JEA Computer (also known as Emergency Console) to call whitelisted cmdlets and scripts.
28
28
If not supplied script will request manual input of username and password
29
29
30
30
.PARAMETERAzureSubscriptionId
31
31
32
-
The subscription Id that will be used for marketplace syndication and usage. The Azure Account Id used during registration must have access to this subscription.
32
+
The subscription Id that will be used for marketplace syndication and usage. The Azure Account Id used during registration must have resource creation access to this subscription.
33
33
34
34
.PARAMETERJeaComputerName
35
35
@@ -45,15 +45,15 @@ The location where the resource group will be created. Defaults to "westcentralu
45
45
46
46
.PARAMETERRegistrationName
47
47
48
-
The name of the registration resource that will be created in Azure. If none is supplied, defaults to "AzureStack-<CloudId>" where <CloudId> is the CloudId associated with the azure Stack environment
48
+
The name of the registration resource that will be created in Azure. If none is supplied, defaults to "AzureStack-<CloudId>" where <CloudId> is the CloudId associated with the Azure Stack environment
49
49
50
50
.PARAMETERAzureEnvironmentName
51
51
52
52
The name of the Azure Environment where resources will be created. Defaults to "AzureCloud"
53
53
54
54
.PARAMETERBillingModel
55
55
56
-
The billing model that the subscription uses. Select from "Capacity","PayAsYouUse", and "Development". Defaults to "Development"
56
+
The billing model that the subscription uses. Select from "Capacity","PayAsYouUse", and "Development". Defaults to "Development". Pleas see documentation for more information: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-billing-and-chargeback
57
57
58
58
.PARAMETERMarketplaceSyndicationEnabled
59
59
@@ -69,26 +69,25 @@ Used when the billing model is set to capacity. If this is the case you will nee
69
69
70
70
.EXAMPLE
71
71
72
-
This example registers your AzureStack account with Azure, enables syndication, and enables usage reporting to Azure.
73
-
This script must be run from the Host machine of the POC.
72
+
This example registers your AzureStack environment with Azure, enables syndication, and enables usage reporting to Azure.
This example registers your AzureStack account with Azure, enables syndication and usage and gives a specific name to the resource group and registration resource.
84
+
This example registers your AzureStack environment with Azure, enables syndication and usage and gives a specific name to the resource group and registration resource.
This example un-Registers by disabling syndication and stopping usage push to Azure. Note that usage will still be collected, just not pushed to Azure.
90
+
This example un-registers by disabling syndication and stopping usage sent to Azure. Note that usage will still be collected, just not sent to Azure.
if (($profileVersion-gt$maxVersion) -or ($resourcesVersion-gt$maxVersion))
153
-
{
154
-
Write-Error"You are using an incompatible version of Powershell Module: AzureRm. Please use the version outlined here: `r`n https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install"
155
-
}
156
-
157
148
functionConnect-AzureAccount
158
149
{
159
150
param(
@@ -215,25 +206,25 @@ function Connect-AzureAccount
0 commit comments