@@ -16,8 +16,9 @@ The registered information available on the cluster is used to unregister the cl
16
16
```
17
17
Unregister-AzStackHCI [[-SubscriptionId] <String>] [[-ResourceName] <String>] [[-TenantId] <String>]
18
18
[[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>] [[-GraphAccessToken] <String>]
19
- [[-AccountId] <String>] [[-EnvironmentName] <String>] [[-ComputerName] <String>] [-UseDeviceAuthentication]
20
- [[-Credential] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
19
+ [[-AccountId] <String>] [[-EnvironmentName] <String>] [[-Region] <String>] [[-ComputerName] <String>]
20
+ [-UseDeviceAuthentication] [-DisableOnlyAzureArcServer] [[-Credential] <PSCredential>] [-Force] [-WhatIf]
21
+ [-Confirm] [<CommonParameters>]
21
22
```
22
23
23
24
## DESCRIPTION
@@ -31,27 +32,31 @@ The registered information available on the cluster is used to unregister the cl
31
32
C:\PS\>Unregister-AzStackHCI
32
33
Result: Success
33
34
```
35
+
34
36
Invoking on one of the cluster node
35
37
36
38
### EXAMPLE 2
37
39
``` powershell
38
40
C:\PS\>Unregister-AzStackHCI -ComputerName ClusterNode1
39
41
Result: Success
40
42
```
43
+
41
44
Invoking from the management node
42
45
43
46
### EXAMPLE 3
44
47
``` powershell
45
48
C:\PS\>Unregister-AzStackHCI -SubscriptionId "12a0f531-56cb-4340-9501-257726d741fd" -ArmAccessToken etyer..ere= -GraphAccessToken acyee..rerrer -AccountId [email protected] -ResourceName DemoHCICluster3 -ResourceGroupName DemoHCIRG -Confirm:$False
46
49
Result: Success
47
50
```
51
+
48
52
Invoking from WAC
49
53
50
54
### EXAMPLE 4
51
55
``` powershell
52
56
C:\PS\>Unregister-AzStackHCI -SubscriptionId "12a0f531-56cb-4340-9501-257726d741fd" -ResourceName HciCluster1 -TenantId "c31c0dbb-ce27-4c78-ad26-a5f717c14557" -ResourceGroupName HciClusterRG -ArmAccessToken eerrer..ere= -GraphAccessToken acee..rerrer -AccountId [email protected] -EnvironmentName AzureCloud -ComputerName node1hci -Credential Get-Credential
53
57
Result: Success
54
58
```
59
+
55
60
Invoking with all the parameters
56
61
57
62
## PARAMETERS
@@ -97,7 +102,7 @@ Parameter Sets: (All)
97
102
Aliases :
98
103
99
104
Required : False
100
- Position : 9
105
+ Position : 10
101
106
Default value : None
102
107
Accept pipeline input : False
103
108
Accept wildcard characters : False
@@ -113,12 +118,27 @@ Parameter Sets: (All)
113
118
Aliases :
114
119
115
120
Required : False
116
- Position : 10
121
+ Position : 11
117
122
Default value : None
118
123
Accept pipeline input : False
119
124
Accept wildcard characters : False
120
125
` ` `
121
126
127
+ ### -DisableOnlyAzureArcServer
128
+ Specifying this parameter to $true will only unregister the cluster nodes with Arc for servers and Azure Stack HCI registration will not be altered.
129
+
130
+ ` ` ` yaml
131
+ Type : System.Management.Automation.SwitchParameter
132
+ Parameter Sets : (All)
133
+ Aliases :
134
+
135
+ Required : False
136
+ Position : Named
137
+ Default value : False
138
+ Accept pipeline input : False
139
+ Accept wildcard characters : False
140
+ ` ` `
141
+
122
142
### -EnvironmentName
123
143
Specifies the Azure Environment.
124
144
Default is AzureCloud.
@@ -136,6 +156,21 @@ Accept pipeline input: False
136
156
Accept wildcard characters : False
137
157
` ` `
138
158
159
+ ### -Force
160
+ Specifies that unregistration should continue even if we could not delete the Arc extensions on the nodes.
161
+
162
+ ` ` ` yaml
163
+ Type : System.Management.Automation.SwitchParameter
164
+ Parameter Sets : (All)
165
+ Aliases :
166
+
167
+ Required : False
168
+ Position : Named
169
+ Default value : False
170
+ Accept pipeline input : False
171
+ Accept wildcard characters : False
172
+ ` ` `
173
+
139
174
### -GraphAccessToken
140
175
Specifies the Graph access token.
141
176
Specifying this along with ArmAccessToken and AccountId will avoid Azure interactive logon.
@@ -152,6 +187,21 @@ Accept pipeline input: False
152
187
Accept wildcard characters : False
153
188
` ` `
154
189
190
+ ### -Region
191
+ Specifies the Region the resource is created in Azure.
192
+
193
+ ` ` ` yaml
194
+ Type : System.String
195
+ Parameter Sets : (All)
196
+ Aliases :
197
+
198
+ Required : False
199
+ Position : 9
200
+ Default value : None
201
+ Accept pipeline input : False
202
+ Accept wildcard characters : False
203
+ ` ` `
204
+
155
205
### -ResourceGroupName
156
206
Specifies the Azure Resource Group name.
157
207
If not specified \< LocalClusterName\> -rg will be used as resource group name.
0 commit comments