Skip to content

Commit 987902d

Browse files
Migrate StackHCI from generation to main (#24048)
* Move StackHCI to main * Update Changelog.md --------- Co-authored-by: Yunchi Wang <[email protected]>
1 parent 4f098ab commit 987902d

File tree

8 files changed

+258
-53
lines changed

8 files changed

+258
-53
lines changed

src/StackHCI/StackHCI.Autorest/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In this directory, run AutoRest:
4747
> see https://aka.ms/autorest
4848
4949
``` yaml
50-
branch: 5758cc23b0022e403d876662d9799f02c9bba3e6
50+
commit: 5758cc23b0022e403d876662d9799f02c9bba3e6
5151
require:
5252
- $(this-folder)/../../readme.azure.noprofile.md
5353
# lock the commit
@@ -65,6 +65,10 @@ inlining-threshold: 50
6565

6666
resourcegroup-append: true
6767

68+
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
69+
use-extension:
70+
"@autorest/powershell": "3.x"
71+
6872
directive:
6973
# Rename function
7074
- where:

src/StackHCI/StackHCI.Autorest/custom/stackhci.ps1

Lines changed: 205 additions & 48 deletions
Large diffs are not rendered by default.

src/StackHCI/StackHCI.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4492,6 +4492,11 @@ param(
44924492
# Specifying this parameter to $true will only unregister the cluster nodes with Arc for servers and Azure Stack HCI registration will not be altered.
44934493
${DisableOnlyAzureArcServer},
44944494

4495+
[Parameter()]
4496+
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
4497+
[System.Management.Automation.SwitchParameter]
4498+
${IsWAC},
4499+
44954500
[Parameter(Position=9)]
44964501
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
44974502
[System.Management.Automation.PSCredential]

src/StackHCI/StackHCI.Autorest/exports/Unregister-AzStackHCI.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ param(
111111
# Specifying this parameter to $true will only unregister the cluster nodes with Arc for servers and Azure Stack HCI registration will not be altered.
112112
${DisableOnlyAzureArcServer},
113113

114+
[Parameter()]
115+
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
116+
[System.Management.Automation.SwitchParameter]
117+
${IsWAC},
118+
114119
[Parameter(Position=9)]
115120
[Microsoft.Azure.PowerShell.Cmdlets.StackHCI.Category('Body')]
116121
[System.Management.Automation.PSCredential]

src/StackHCI/StackHCI.Autorest/help/Unregister-AzStackHCI.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The registered information available on the cluster is used to unregister the cl
1717
Unregister-AzStackHCI [[-SubscriptionId] <String>] [[-ResourceName] <String>] [[-TenantId] <String>]
1818
[[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>] [[-AccountId] <String>]
1919
[[-EnvironmentName] <String>] [[-Region] <String>] [[-ComputerName] <String>] [[-Credential] <PSCredential>]
20-
[-DisableOnlyAzureArcServer] [-Force] [-UseDeviceAuthentication] [-Confirm] [-WhatIf] [<CommonParameters>]
20+
[-DisableOnlyAzureArcServer] [-Force] [-IsWAC] [-UseDeviceAuthentication] [-Confirm] [-WhatIf]
21+
[<CommonParameters>]
2122
```
2223

2324
## DESCRIPTION
@@ -170,6 +171,21 @@ Accept wildcard characters: False
170171
### -Force
171172
Specifies that unregistration should continue even if we could not delete the Arc extensions on the nodes.
172173
174+
```yaml
175+
Type: System.Management.Automation.SwitchParameter
176+
Parameter Sets: (All)
177+
Aliases:
178+
179+
Required: False
180+
Position: Named
181+
Default value: None
182+
Accept pipeline input: False
183+
Accept wildcard characters: False
184+
```
185+
186+
### -IsWAC
187+
188+
173189
```yaml
174190
Type: System.Management.Automation.SwitchParameter
175191
Parameter Sets: (All)

src/StackHCI/StackHCI/Az.StackHCI.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 12/5/2023
6+
# Generated on: 1/26/2024
77
#
88

99
@{
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.2'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.15.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'StackHCI.Autorest/bin/Az.StackHCI.private.dll'

src/StackHCI/StackHCI/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed issue for WAC.
22+
* Restricted registration for 23H2 devices exclusively to cloud deployment.
2123

2224
## Version 2.2.3
2325
* Added support for ARC Onboarding using Cluster Managed Identity.

src/StackHCI/StackHCI/help/Unregister-AzStackHCI.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The registered information available on the cluster is used to unregister the cl
1717
Unregister-AzStackHCI [[-SubscriptionId] <String>] [[-ResourceName] <String>] [[-TenantId] <String>]
1818
[[-ResourceGroupName] <String>] [[-ArmAccessToken] <String>] [[-AccountId] <String>]
1919
[[-EnvironmentName] <String>] [[-Region] <String>] [[-ComputerName] <String>] [-UseDeviceAuthentication]
20-
[-DisableOnlyAzureArcServer] [[-Credential] <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
20+
[-DisableOnlyAzureArcServer] [-IsWAC] [[-Credential] <PSCredential>] [-Force] [-WhatIf] [-Confirm]
21+
[<CommonParameters>]
2122
```
2223

2324
## DESCRIPTION
@@ -182,6 +183,21 @@ Accept pipeline input: False
182183
Accept wildcard characters: False
183184
```
184185
186+
### -IsWAC
187+
{{ Fill IsWAC Description }}
188+
189+
```yaml
190+
Type: System.Management.Automation.SwitchParameter
191+
Parameter Sets: (All)
192+
Aliases:
193+
194+
Required: False
195+
Position: Named
196+
Default value: False
197+
Accept pipeline input: False
198+
Accept wildcard characters: False
199+
```
200+
185201
### -Region
186202
Specifies the Region the resource is created in Azure.
187203

0 commit comments

Comments
 (0)